From a667897646448ed831074bce8f923845c77665af Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Jan 2016 21:09:32 +0000 Subject: Partially tested global visibility hidden in all projects --- Jamroot.jam | 8 ++++---- libtmdb/Jamfile.jam | 1 - p2pvr/carddaemon/Jamfile.jam | 1 - p2pvr/daemon/Jamfile.jam | 1 - p2pvr/daemon/unittests/mockDefs.h | 3 ++- p2pvr/daemonbase/Jamfile.jam | 1 - p2pvr/devices/Jamfile.jam | 1 - p2pvr/devices/mockTuner.h | 3 ++- p2pvr/dvb/Jamfile.jam | 1 - p2pvr/ice/Jamfile.jam | 1 - p2pvr/lib/Jamfile.jam | 1 - p2pvr/p2comp/Jamfile.jam | 1 - 12 files changed, 8 insertions(+), 15 deletions(-) diff --git a/Jamroot.jam b/Jamroot.jam index cc16698..f42f929 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -8,13 +8,13 @@ variant coverage : debug ; project : requirements - release:"-std=c++1y" + release:"-std=c++1y -fvisibility=hidden" release:"-Wl,-z,defs,--warn-once,--gc-sections" - debug:"-W -Wall -Werror -Wwrite-strings -std=c++1y" + debug:"-W -Wall -Werror -Wwrite-strings -std=c++1y -fvisibility=hidden" debug:"-Wl,-z,defs,--warn-once" - coverage:"-W -Wall -Werror -Wwrite-strings -std=c++1y --coverage" + coverage:"-W -Wall -Werror -Wwrite-strings -std=c++1y --coverage -fvisibility=hidden" coverage:"-Wl,-z,defs,--warn-once --coverage" - component:"-W -Wall -Werror -Wwrite-strings -std=c++1y -fPIC" + component:"-W -Wall -Werror -Wwrite-strings -std=c++1y -fPIC -fvisibility=hidden" component:"-Wl,-z,lazy,--warn-once,-fPIC" ; diff --git a/libtmdb/Jamfile.jam b/libtmdb/Jamfile.jam index 668af7d..0e87cb6 100644 --- a/libtmdb/Jamfile.jam +++ b/libtmdb/Jamfile.jam @@ -29,7 +29,6 @@ lib tmdb : curl adhocutil yes - -fvisibility=hidden : : . Ice diff --git a/p2pvr/carddaemon/Jamfile.jam b/p2pvr/carddaemon/Jamfile.jam index 2bbc750..7088966 100644 --- a/p2pvr/carddaemon/Jamfile.jam +++ b/p2pvr/carddaemon/Jamfile.jam @@ -5,5 +5,4 @@ lib p2pvrcarddaemon : ../ice//p2pvrice ../devices//p2pvrdevices ../daemonbase//p2pvrdaemonbase - -fvisibility=hidden ; diff --git a/p2pvr/daemon/Jamfile.jam b/p2pvr/daemon/Jamfile.jam index 0bd9c52..369e714 100644 --- a/p2pvr/daemon/Jamfile.jam +++ b/p2pvr/daemon/Jamfile.jam @@ -23,7 +23,6 @@ lib p2pvrdaemon : ../devices//p2pvrdevices ../daemonbase//p2pvrdaemonbase ..//adhocutil - -fvisibility=hidden ../../libtmdb//tmdb slicer slicer-db diff --git a/p2pvr/daemon/unittests/mockDefs.h b/p2pvr/daemon/unittests/mockDefs.h index bf5481d..b16b47d 100644 --- a/p2pvr/daemon/unittests/mockDefs.h +++ b/p2pvr/daemon/unittests/mockDefs.h @@ -2,8 +2,9 @@ #define MOCKDEFS_H #include +#include -#define DECLAREMOCK(Name) class Name : public PQ::Mock { public: Name(); } +#define DECLAREMOCK(Name) class DLL_PUBLIC Name : public PQ::Mock { public: Name(); } DECLAREMOCK(SchemaOnlyMockDatabase); DECLAREMOCK(StandardMockDatabase); diff --git a/p2pvr/daemonbase/Jamfile.jam b/p2pvr/daemonbase/Jamfile.jam index 76a4da9..f02a172 100644 --- a/p2pvr/daemonbase/Jamfile.jam +++ b/p2pvr/daemonbase/Jamfile.jam @@ -15,7 +15,6 @@ lib p2pvrdaemonbase : ../lib//p2pvrlib ../ice//p2pvrice ..//adhocutil - -fvisibility=hidden ../ice//p2pvrice : : ../ice//p2pvrice diff --git a/p2pvr/devices/Jamfile.jam b/p2pvr/devices/Jamfile.jam index 47a68bc..f39256b 100644 --- a/p2pvr/devices/Jamfile.jam +++ b/p2pvr/devices/Jamfile.jam @@ -25,7 +25,6 @@ lib p2pvrdevices : ..//p2common ..//adhocutil ../ice//p2pvrice - -fvisibility=hidden : : boost_filesystem ../ice//p2pvrice diff --git a/p2pvr/devices/mockTuner.h b/p2pvr/devices/mockTuner.h index aa51580..d640209 100644 --- a/p2pvr/devices/mockTuner.h +++ b/p2pvr/devices/mockTuner.h @@ -2,10 +2,11 @@ #define P2PVR_MOCKTUNER_H #include +#include #include #include -class MockTuner : public P2PVR::PrivateTuner { +class DLL_PUBLIC MockTuner : public P2PVR::PrivateTuner { public: MockTuner(); diff --git a/p2pvr/dvb/Jamfile.jam b/p2pvr/dvb/Jamfile.jam index 76f2058..e71093a 100644 --- a/p2pvr/dvb/Jamfile.jam +++ b/p2pvr/dvb/Jamfile.jam @@ -8,7 +8,6 @@ lib p2pvrdvb : : ../ice//p2pvrice ..//adhocutil - -fvisibility=hidden ../ice//p2pvrice : : ../ice//p2pvrice diff --git a/p2pvr/ice/Jamfile.jam b/p2pvr/ice/Jamfile.jam index 98d6018..ca27324 100644 --- a/p2pvr/ice/Jamfile.jam +++ b/p2pvr/ice/Jamfile.jam @@ -12,7 +12,6 @@ lib p2pvrice : ..//adhocutil ..//p2ice slicer - -fvisibility=hidden yes : : . diff --git a/p2pvr/lib/Jamfile.jam b/p2pvr/lib/Jamfile.jam index 25cc85b..31974b7 100644 --- a/p2pvr/lib/Jamfile.jam +++ b/p2pvr/lib/Jamfile.jam @@ -22,7 +22,6 @@ lib p2pvrlib : ..//adhocutil ../ice//p2pvrice slicer - -fvisibility=hidden : : boost_filesystem ../ice//p2pvrice diff --git a/p2pvr/p2comp/Jamfile.jam b/p2pvr/p2comp/Jamfile.jam index 95d27fa..a62751f 100644 --- a/p2pvr/p2comp/Jamfile.jam +++ b/p2pvr/p2comp/Jamfile.jam @@ -7,6 +7,5 @@ lib p2pvrp2comp : ..//p2ice ..//p2cgi ..//adhocutil - -fvisibility=hidden ../ice//p2pvrice ; -- cgit v1.2.3