From 71a2ff5170caaa052814cce19b3de927d10d0e24 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 11 Jan 2021 14:21:49 +0100 Subject: Fix test build for Windows --- wscript | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 7005967..9810fed 100644 --- a/wscript +++ b/wscript @@ -357,7 +357,7 @@ def build(bld): target = 'lilv-%s' % LILV_MAJOR_VERSION, vnum = LILV_VERSION, install_path = '${LIBDIR}', - defines = ['LILV_INTERNAL'], + defines = ['LILV_INTERNAL', 'ZIX_STATIC'], cflags = libflags, lib = lib, uselib = 'SERD SORD SRATOM LV2') @@ -372,7 +372,10 @@ def build(bld): target = 'lilv-%s' % LILV_MAJOR_VERSION, vnum = LILV_VERSION, install_path = '${LIBDIR}', - defines = defines + ['LILV_STATIC', 'LILV_INTERNAL'], + defines = defines + ['LILV_STATIC', + 'LILV_INTERNAL', + 'ZIX_STATIC', + 'ZIX_INTERNAL'], uselib = 'SERD SORD SRATOM LV2') # Python bindings @@ -411,7 +414,7 @@ def build(bld): name = p, target = 'test/%s.lv2/%s' % (p, p), install_path = None, - defines = defines + ['LILV_STATIC'], + defines = defines + ['LILV_STATIC', 'ZIX_STATIC'], cflags = test_cflags, linkflags = test_linkflags, lib = test_libs, @@ -428,7 +431,7 @@ def build(bld): includes = ['.', 'include', './src'], use = 'liblilv_profiled', install_path = None, - defines = defines + ['LILV_STATIC'], + defines = defines + ['LILV_STATIC', 'ZIX_STATIC'], cflags = test_cflags, linkflags = test_linkflags, lib = test_libs, @@ -451,7 +454,11 @@ def build(bld): name = 'liblilv_profiled', target = 'lilv_profiled', install_path = None, - defines = defines + ['LILV_STATIC', 'LILV_INTERNAL'], + defines = defines + ['LILV_STATIC', + 'LILV_INTERNAL', + 'ZIX_STATIC', + 'ZIX_INTERNAL', + ], cflags = test_cflags, linkflags = test_linkflags, lib = test_libs, @@ -475,7 +482,8 @@ def build(bld): defines = (defines + ['LILV_STATIC'] + ['LILV_TEST_BUNDLE=\"%s/\"' % bpath] + - ['LILV_TEST_DIR=\"%s/\"' % testdir]), + ['LILV_TEST_DIR=\"%s/\"' % testdir] + + ['ZIX_STATIC']), cflags = test_cflags, linkflags = test_linkflags) @@ -489,7 +497,7 @@ def build(bld): uselib = 'SERD SORD SRATOM LV2', target = 'test/lilv_cxx_test', install_path = None, - defines = ['LILV_STATIC'], + defines = ['LILV_STATIC', 'ZIX_STATIC'], cxxflags = test_cflags, linkflags = test_linkflags) -- cgit v1.2.1