Skip to content

Commit

Permalink
fix siplib build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DietmarSchwertberger committed Sep 14, 2024
1 parent 656020b commit 4a1b63f
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import sys
import os
import glob
import setuptools

try:
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 4a1b63f

Please sign in to comment.