summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-02 13:23:32 +0100
committerDavid Robillard <d@drobilla.net>2021-01-02 14:13:00 +0100
commitfd3d431a84bea557f71dfd9246d557080447648e (patch)
tree9303a3a6b9101722852b0a73f92fbe8346fa45bf /wscript
parent9f07922f0f92d655d47226502faed719ef0f7892 (diff)
downloadlilv-fd3d431a84bea557f71dfd9246d557080447648e.tar.gz
lilv-fd3d431a84bea557f71dfd9246d557080447648e.tar.bz2
lilv-fd3d431a84bea557f71dfd9246d557080447648e.zip
Use LILV_STATIC instead of LILV_SHARED to control visibility
For consistency, this seems to be the most common convention.
Diffstat (limited to 'wscript')
-rw-r--r--wscript12
1 files changed, 7 insertions, 5 deletions
diff --git a/wscript b/wscript
index 713c0f9..db4a1bd 100644
--- a/wscript
+++ b/wscript
@@ -352,7 +352,7 @@ def build(bld):
target = 'lilv-%s' % LILV_MAJOR_VERSION,
vnum = LILV_VERSION,
install_path = '${LIBDIR}',
- defines = ['LILV_SHARED', 'LILV_INTERNAL'],
+ defines = ['LILV_INTERNAL'],
cflags = libflags,
lib = lib,
uselib = 'SERD SORD SRATOM LV2')
@@ -367,7 +367,7 @@ def build(bld):
target = 'lilv-%s' % LILV_MAJOR_VERSION,
vnum = LILV_VERSION,
install_path = '${LIBDIR}',
- defines = defines + ['LILV_INTERNAL'],
+ defines = defines + ['LILV_STATIC', 'LILV_INTERNAL'],
uselib = 'SERD SORD SRATOM LV2')
# Python bindings
@@ -406,7 +406,7 @@ def build(bld):
name = p,
target = 'test/%s.lv2/%s' % (p, p),
install_path = None,
- defines = defines,
+ defines = defines + ['LILV_STATIC'],
cflags = test_cflags,
linkflags = test_linkflags,
lib = test_libs,
@@ -423,7 +423,7 @@ def build(bld):
includes = ['.', 'include', './src'],
use = 'liblilv_profiled',
install_path = None,
- defines = defines,
+ defines = defines + ['LILV_STATIC'],
cflags = test_cflags,
linkflags = test_linkflags,
lib = test_libs,
@@ -446,7 +446,7 @@ def build(bld):
name = 'liblilv_profiled',
target = 'lilv_profiled',
install_path = None,
- defines = defines + ['LILV_INTERNAL'],
+ defines = defines + ['LILV_STATIC', 'LILV_INTERNAL'],
cflags = test_cflags,
linkflags = test_linkflags,
lib = test_libs,
@@ -468,6 +468,7 @@ def build(bld):
target = 'test/' + test,
install_path = None,
defines = (defines +
+ ['LILV_STATIC'] +
['LILV_TEST_BUNDLE=\"%s/\"' % bpath] +
['LILV_TEST_DIR=\"%s/\"' % testdir]),
cflags = test_cflags,
@@ -483,6 +484,7 @@ def build(bld):
uselib = 'SERD SORD SRATOM LV2',
target = 'test/lilv_cxx_test',
install_path = None,
+ defines = ['LILV_STATIC'],
cxxflags = test_cflags,
linkflags = test_linkflags)