Skip to content

Commit e0ccf4e

Browse files
committed
Fix code generation of stc module, and link with more libraries
1 parent 9825810 commit e0ccf4e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,9 @@ def cmd_cffi_gen(options, args):
930930
else:
931931
WX_CONFIG = 'wx-config' # hope it is on the PATH
932932

933-
libs = runcmd(WX_CONFIG + ' --libs', True, False)
933+
# TODO(amauryfa): have different libs for each module
934+
libnames = 'core,base,net,adv,stc'
935+
libs = runcmd(WX_CONFIG + ' --libs %s' % libnames, True, False)
934936
cxxflags = runcmd(WX_CONFIG + ' --cxxflags', True, False)
935937
if '-D__WXGTK__' in cxxflags:
936938
cxxflags += ' ' + runcmd('pkg-config --cflags gtk+-2.0', True, False)

etg/_adv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def run():
7979
module.addPyCode("import wx", order=10)
8080
module.addInclude(INCLUDES)
8181

82+
tools.runGeneratorSpecificScript(module)
8283

8384
#-----------------------------------------------------------------
8485
tools.doCommonTweaks(module)

etg/_stc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def run():
138138

139139
#-----------------------------------------------------------------
140140

141+
tools.runGeneratorSpecificScript(module)
141142

142143
#-----------------------------------------------------------------
143144
tools.doCommonTweaks(module)

0 commit comments

Comments
 (0)