diff options
author | David Robillard <d@drobilla.net> | 2021-01-02 21:32:51 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-02 21:40:08 +0100 |
commit | 09df1497605ec344543a712705ecdf01147e9e9e (patch) | |
tree | 6918d8a035ede9606bd18b0cba028275e08559f1 /wscript | |
parent | 4fea00687038ac08f7fa271826b82e4de2b95983 (diff) | |
download | pugl-09df1497605ec344543a712705ecdf01147e9e9e.tar.gz pugl-09df1497605ec344543a712705ecdf01147e9e9e.tar.bz2 pugl-09df1497605ec344543a712705ecdf01147e9e9e.zip |
Simplify visibility boilerplate
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -421,7 +421,7 @@ def build(bld): bld(features = 'c cshlib', name = name, target = 'pugl_%s-%s' % (name, PUGL_MAJOR_VERSION), - defines = ['PUGL_INTERNAL', 'PUGL_SHARED'], + defines = ['PUGL_INTERNAL'], cflags = flags, linkflags = flags, **args) @@ -430,7 +430,7 @@ def build(bld): bld(features = 'c cstlib', name = 'pugl_%s_static' % name, target = 'pugl_%s-%s' % (name, PUGL_MAJOR_VERSION), - defines = ['PUGL_INTERNAL', 'PUGL_DISABLE_DEPRECATED'], + defines = ['PUGL_STATIC', 'PUGL_INTERNAL', 'PUGL_DISABLE_DEPRECATED'], cflags = flags, linkflags = flags, **args) @@ -566,6 +566,8 @@ def build(bld): deps.get(platform, {}).get(k, []) + deps.get(backend_lib, {}).get(k, []))}) + kwargs['defines'] = kwargs.get('defines', []) + ['PUGL_STATIC'] + bld(features = '%s %sprogram' % (lang, lang), source = source, target = target, @@ -612,6 +614,7 @@ def build(bld): source = 'test/test_%s.c' % test, target = 'test/test_%s' % test, install_path = '', + defines = ['PUGL_STATIC'], use = ['pugl_%s_static' % platform, 'pugl_%s_gl_static' % platform], uselib = deps[platform]['uselib'] + ['GL']) @@ -641,7 +644,7 @@ def build(bld): ['examples/pugl_vulkan_cxx_demo.cpp', 'examples/file_utils.c'], platform, 'vulkan', - defines=['PUGL_DISABLE_DEPRECATED'], + defines=['PUGL_STATIC', 'PUGL_DISABLE_DEPRECATED'], uselib=['DL', 'M', 'PTHREAD', 'VULKAN']) if bld.env.HAVE_CAIRO: @@ -654,6 +657,7 @@ def build(bld): source = 'test/test_%s.c' % test, target = 'test/test_%s' % test, install_path = '', + defines = ['PUGL_STATIC'], use = ['pugl_%s_static' % platform, 'pugl_%s_stub_static' % platform, 'pugl_%s_gl_static' % platform], |