diff options
author | David Robillard <d@drobilla.net> | 2021-01-02 13:23:16 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-02 14:13:59 +0100 |
commit | 07c361def50e6a95e2f34a338c4d316efa0e3397 (patch) | |
tree | eed60f3a78ab936a113ebdb3d502c4aa17679fdc /wscript | |
parent | bbc9b1c424f80414eff33dd5ef513e4ef7844d93 (diff) | |
download | sratom-07c361def50e6a95e2f34a338c4d316efa0e3397.tar.gz sratom-07c361def50e6a95e2f34a338c4d316efa0e3397.tar.bz2 sratom-07c361def50e6a95e2f34a338c4d316efa0e3397.zip |
Use SRATOM_STATIC instead of SRATOM_SHARED to control visibility
For consistency, this seems to be the most common convention.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -121,7 +121,7 @@ def build(bld): target = 'sratom-%s' % SRATOM_MAJOR_VERSION, vnum = SRATOM_VERSION, install_path = '${LIBDIR}', - defines = defines + ['SRATOM_SHARED', 'SRATOM_INTERNAL'], + defines = defines + ['SRATOM_INTERNAL'], cflags = libflags) # Static library @@ -136,7 +136,7 @@ def build(bld): target = 'sratom-%s' % SRATOM_MAJOR_VERSION, vnum = SRATOM_VERSION, install_path = '${LIBDIR}', - defines = defines + ['SRATOM_INTERNAL']) + defines = defines + ['SRATOM_STATIC', 'SRATOM_INTERNAL']) if bld.env.BUILD_TESTS: test_libs = libs @@ -155,7 +155,7 @@ def build(bld): name = 'libsratom_profiled', target = 'sratom_profiled', install_path = '', - defines = defines + ['SRATOM_INTERNAL'], + defines = defines + ['SRATOM_STATIC', 'SRATOM_INTERNAL'], cflags = test_cflags, linkflags = test_linkflags) @@ -168,7 +168,7 @@ def build(bld): uselib = 'SERD SORD LV2', target = 'test_sratom', install_path = '', - defines = defines, + defines = defines + ['SRATOM_STATIC'], cflags = test_cflags, linkflags = test_linkflags) |