aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-02 13:23:00 +0100
committerDavid Robillard <d@drobilla.net>2021-01-02 14:13:19 +0100
commit2f0a55007f9dda3371b7aa42b54b4786740ac0c0 (patch)
treea7a31e5edfc4e51447a26a0aeca12c73aa4c8709 /wscript
parent4a54d784af0bec03fdc1f9889157a8c653969db9 (diff)
downloadserd-2f0a55007f9dda3371b7aa42b54b4786740ac0c0.tar.gz
serd-2f0a55007f9dda3371b7aa42b54b4786740ac0c0.tar.bz2
serd-2f0a55007f9dda3371b7aa42b54b4786740ac0c0.zip
Use SERD_STATIC instead of SERD_SHARED to control visibility
For consistency, this seems to be the most common convention.
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 4 insertions, 4 deletions
diff --git a/wscript b/wscript
index 397278c2..ecf3c8de 100644
--- a/wscript
+++ b/wscript
@@ -206,7 +206,7 @@ def build(bld):
source = lib_source,
name = 'libserd',
target = 'serd-%s' % SERD_MAJOR_VERSION,
- defines = defines + ['SERD_SHARED', 'SERD_INTERNAL'],
+ defines = defines + ['SERD_INTERNAL'],
**lib_args)
# Static library
@@ -215,7 +215,7 @@ def build(bld):
source = lib_source,
name = 'libserd_static',
target = 'serd-%s' % SERD_MAJOR_VERSION,
- defines = defines + ['SERD_INTERNAL'],
+ defines = defines + ['SERD_STATIC', 'SERD_INTERNAL'],
**lib_args)
if bld.env.BUILD_TESTS:
@@ -231,7 +231,7 @@ def build(bld):
source = lib_source,
name = 'libserd_profiled',
target = 'serd_profiled',
- defines = defines + ['SERD_INTERNAL'],
+ defines = defines + ['SERD_STATIC', 'SERD_INTERNAL'],
**test_args)
# Test programs
@@ -247,7 +247,7 @@ def build(bld):
source = prog[1],
use = 'libserd_profiled',
target = prog[0],
- defines = defines,
+ defines = defines + ['SERD_STATIC'],
**test_args)
# Utilities