mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 22:55:44 +01:00
reverse the visibility.h files assumptions that we don't build shared libs by default
This avoids having to define define LIBFOO_DLL=1 all over the place. If we ever go with static libs we will need to define LIBFOO_STATIC=1 but hopefully in some central location like the top level wscript. Oh, and I also dropped support for gcc older than version 4.x because ardour will already not build on such an old version.
This commit is contained in:
parent
683496c501
commit
f85c67501c
26 changed files with 89 additions and 183 deletions
|
|
@ -30,27 +30,21 @@
|
|||
#define LIBCONTROLCP_DLL_EXPORT __declspec(dllexport)
|
||||
#define LIBCONTROLCP_DLL_LOCAL
|
||||
#else
|
||||
#if __GNUC__ >= 4
|
||||
#define LIBCONTROLCP_DLL_IMPORT __attribute__ ((visibility ("default")))
|
||||
#define LIBCONTROLCP_DLL_EXPORT __attribute__ ((visibility ("default")))
|
||||
#define LIBCONTROLCP_DLL_LOCAL __attribute__ ((visibility ("hidden")))
|
||||
#else
|
||||
#define LIBCONTROLCP_DLL_IMPORT
|
||||
#define LIBCONTROLCP_DLL_EXPORT
|
||||
#define LIBCONTROLCP_DLL_LOCAL
|
||||
#endif
|
||||
#define LIBCONTROLCP_DLL_IMPORT __attribute__ ((visibility ("default")))
|
||||
#define LIBCONTROLCP_DLL_EXPORT __attribute__ ((visibility ("default")))
|
||||
#define LIBCONTROLCP_DLL_LOCAL __attribute__ ((visibility ("hidden")))
|
||||
#endif
|
||||
|
||||
#ifdef LIBCONTROLCP_DLL // libcontrolcp is a DLL
|
||||
#ifdef LIBCONTROLCP_DLL_EXPORTS // defined if we are building the libcontrolcp DLL (instead of using it)
|
||||
#define LIBCONTROLCP_API LIBCONTROLCP_DLL_EXPORT
|
||||
#ifdef LIBCONTROLCP_STATIC // libcontrolcp is not a DLL
|
||||
#define LIBCONTROLCP_API
|
||||
#define LIBCONTROLCP_LOCAL
|
||||
#else
|
||||
#ifdef LIBCONTROLCP_DLL_EXPORTS // defined if we are building the libcontrolcp DLL (instead of using it)
|
||||
#define LIBCONTROLCP_API LIBCONTROLCP_DLL_EXPORT
|
||||
#else
|
||||
#define LIBCONTROLCP_API LIBCONTROLCP_DLL_IMPORT
|
||||
#endif
|
||||
#define LIBCONTROLCP_LOCAL LIBCONTROLCP_DLL_LOCAL
|
||||
#else /* static lib, not DLL */
|
||||
#define LIBCONTROLCP_API
|
||||
#define LIBCONTROLCP_LOCAL
|
||||
#endif
|
||||
#define LIBCONTROLCP_LOCAL LIBCONTROLCP_DLL_LOCAL
|
||||
#endif
|
||||
|
||||
#endif /* __libcontrolcp_visibility_h__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue