From 4a1b63fc1343fc3d2fedc56bd18b776c9f409635 Mon Sep 17 00:00:00 2001 From: DietmarSchwertberger Date: Sun, 15 Sep 2024 01:20:15 +0200 Subject: [PATCH] fix siplib build on Windows --- wscript | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/wscript b/wscript index 79bdf3e15..6e8debb9d 100644 --- a/wscript +++ b/wscript @@ -9,6 +9,7 @@ import sys import os +import glob import setuptools try: @@ -542,19 +543,12 @@ def build(bld): # Create the build tasks for each of our extension modules. addRelwithdebugFlags(bld, 'siplib') + module_src = sorted(glob.glob('sip/siplib/*.c')) + if isWindows: module_src.append('sip/siplib/bool.cpp') siplib = bld( features = 'c cxx cshlib cxxshlib pyext', target = makeTargetName(bld, 'siplib'), - source = ['sip/siplib/apiversions.c', - 'sip/siplib/descriptors.c', - 'sip/siplib/int_convertors.c', - 'sip/siplib/objmap.c', - 'sip/siplib/qtlib.c', - 'sip/siplib/sip_array.c', - 'sip/siplib/siplib.c', - 'sip/siplib/threads.c', - 'sip/siplib/voidptr.c', - ], + source = module_src, uselib = 'siplib WX WXPY', ) makeExtCopyRule(bld, 'siplib')