diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-08-28 00:31:12 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-08-28 00:31:12 +0100 |
commit | eb213bd8b5e8e2e86417e6d0c2945bce34652677 (patch) | |
tree | 2bf7cf4a9e25fe4bfd02db0b7db851464327a55e | |
parent | Visibility hidden (diff) | |
download | libadhocutil-eb213bd8b5e8e2e86417e6d0c2945bce34652677.tar.bz2 libadhocutil-eb213bd8b5e8e2e86417e6d0c2945bce34652677.tar.xz libadhocutil-eb213bd8b5e8e2e86417e6d0c2945bce34652677.zip |
Beginnings of libadhocutil
-rw-r--r-- | libadhocutil/Jamfile.jam | 30 | ||||
-rw-r--r-- | libadhocutil/definedDirs.h | 17 | ||||
-rw-r--r-- | libadhocutil/visibility.h | 8 |
3 files changed, 55 insertions, 0 deletions
diff --git a/libadhocutil/Jamfile.jam b/libadhocutil/Jamfile.jam new file mode 100644 index 0000000..8169ad0 --- /dev/null +++ b/libadhocutil/Jamfile.jam @@ -0,0 +1,30 @@ +import package ; + +alias glibmm : : : : + <cflags>"`pkg-config --cflags glibmm-2.4`" + <linkflags>"`pkg-config --libs glibmm-2.4`" + ; +lib boost_utf : : <name>boost_unit_test_framework ; +lib Ice ; +lib IceUtil ; +lib pthread ; +lib curl ; +alias ice : : : : + <library>Ice + <library>IceUtil + <library>pthread ; + +lib adhocutil : + [ glob *.cpp *.ice : bin ] + : + <include>. + <library>ice + <library>curl + <cflags>-fvisibility=hidden + <variant>release:<cflags>-flto + : : + <include>. + ; + +package.install install : <install-source-root>. : : adhocutil : [ glob *.h ] ; + diff --git a/libadhocutil/definedDirs.h b/libadhocutil/definedDirs.h new file mode 100644 index 0000000..cbed012 --- /dev/null +++ b/libadhocutil/definedDirs.h @@ -0,0 +1,17 @@ +#ifndef P2_UT_DEFINEDDIRS +#define P2_UT_DEFINEDDIRS + +#include <boost/filesystem/path.hpp> +#include <boost/filesystem/convenience.hpp> + +#ifndef ROOT +#error "ROOT needs to be defined at compilation time" +#endif + +#define XSTR(s) STR(s) +#define STR(s) #s +const auto BinDir = boost::filesystem::canonical("/proc/self/exe").parent_path(); +const boost::filesystem::path RootDir(XSTR(ROOT)); + +#endif + diff --git a/libadhocutil/visibility.h b/libadhocutil/visibility.h new file mode 100644 index 0000000..63378b7 --- /dev/null +++ b/libadhocutil/visibility.h @@ -0,0 +1,8 @@ +#ifndef DLL_PUBLIC +#define DLL_PUBLIC __attribute__ ((visibility ("default"))) +#endif + +#ifndef DLL_PRIVATE +#define DLL_PRIVATE __attribute__ ((visibility ("hidden"))) +#endif + |