summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libtmdb/Jamfile.jam1
-rw-r--r--libtmdb/httpClient.h6
-rw-r--r--libtmdb/tmdb-proxy.h2
-rw-r--r--slice.jam4
4 files changed, 8 insertions, 5 deletions
diff --git a/libtmdb/Jamfile.jam b/libtmdb/Jamfile.jam
index 9ec2e7a..3c719b6 100644
--- a/libtmdb/Jamfile.jam
+++ b/libtmdb/Jamfile.jam
@@ -27,6 +27,7 @@ lib tmdb :
<library>glibmm
<library>curl
<slicer>yes
+ <cflags>-fvisibility=hidden
: :
<include>.
<library>Ice
diff --git a/libtmdb/httpClient.h b/libtmdb/httpClient.h
index 4f35937..e171323 100644
--- a/libtmdb/httpClient.h
+++ b/libtmdb/httpClient.h
@@ -26,7 +26,7 @@ namespace TMDb {
value(v ? boost::lexical_cast<std::string>(*v) : IceUtil::Optional<std::string>())
{
}
-
+
IceUtil::Optional<std::string> value;
};
typedef std::map<std::string, ParameterValue> Parameters;
@@ -53,7 +53,7 @@ namespace TMDb {
return Slicer::Deserialize<Slicer::JsonValueDeserializer, ReturnModel>(data);
}
- static void packParams(boost::format &);
+ DLL_PUBLIC static void packParams(boost::format &);
template <typename T, typename ... Ts>
static void packParams(boost::format & fmt, const T & param, const Ts & ... params)
@@ -62,7 +62,7 @@ namespace TMDb {
packParams(fmt, params...);
}
- void appendQueryParameters(std::string & path, const Parameters & parameters) const;
+ DLL_PUBLIC void appendQueryParameters(std::string & path, const Parameters & parameters) const;
void appendQueryParameters(std::string & path, const Parameters::value_type & nvp) const;
json::Value FetchJson(const std::string & path) const;
diff --git a/libtmdb/tmdb-proxy.h b/libtmdb/tmdb-proxy.h
index 6ff8b38..c5490a3 100644
--- a/libtmdb/tmdb-proxy.h
+++ b/libtmdb/tmdb-proxy.h
@@ -1,6 +1,7 @@
#include <tmdb-api.h>
#include "httpClient.h"
+#pragma GCC visibility push(default)
namespace TMDb {
class Proxy : public API, private HttpClient {
public:
@@ -14,4 +15,5 @@ namespace TMDb {
TvSeriesPtr GetTvSeries(Ice::Int, const Ice::Current&) override;
};
};
+#pragma GCC visibility pop
diff --git a/slice.jam b/slice.jam
index 5b6429c..5534092 100644
--- a/slice.jam
+++ b/slice.jam
@@ -29,12 +29,12 @@ toolset.flags slice.slicer INCLUDES <include> ;
actions slice.slice2cpp
{
- slice2cpp -I"$(INCLUDES)" --checksum --output-dir $(1[1]:D) $(2)
+ slice2cpp -I"$(INCLUDES)" --checksum --output-dir $(1[1]:D) $(2) --dll-export JAM_DLL_PUBLIC
}
actions slice.slicer
{
- slice2cpp -I"$(INCLUDES)" --checksum --output-dir $(1[1]:D) $(2)
+ slice2cpp -I"$(INCLUDES)" --checksum --output-dir $(1[1]:D) $(2) --dll-export JAM_DLL_PUBLIC
slicer -I"$(INCLUDES)" $(2) $(1[1])
}