+if os.name == 'nt':
+ rc_file = ['src/wxc.rc']
+else:
+ rc_file = []
+
+
+ext = Extension('_core_', ['src/helpers.cpp',
+ 'src/libpy.c',
+ ] + rc_file + swig_sources,
+
+ include_dirs = includes,
+ define_macros = defines,
+
+ library_dirs = libdirs,
+ libraries = libs,
+
+ extra_compile_args = cflags,
+ extra_link_args = lflags,
+
+ depends = depends
+ )
+wxpExtensions.append(ext)
+
+
+
+
+
+# Extension for the GDI module
+swig_sources = run_swig(['gdi.i'], 'src', GENDIR, PKGDIR,
+ USE_SWIG, swig_force, swig_args, swig_deps +
+ ['src/__gdi_rename.i',
+ 'src/_bitmap.i',
+ 'src/_colour.i',
+ 'src/_dc.i',
+ 'src/_gdiobj.i',
+ 'src/_imaglist.i',
+ 'src/_region.i',
+ 'src/_stockobjs.i',
+ 'src/_effects.i',
+ 'src/_intl.i',
+ 'src/_intl_ex.py',
+ 'src/_brush.i',
+ 'src/_cursor.i',
+ 'src/_font.i',
+ 'src/_icon.i',
+ 'src/_pen.i',
+ 'src/_palette.i',
+ ],
+ True)
+ext = Extension('_gdi_', ['src/drawlist.cpp'] + swig_sources,
+ include_dirs = includes,
+ define_macros = defines,
+ library_dirs = libdirs,
+ libraries = libs,
+ extra_compile_args = cflags,
+ extra_link_args = lflags,
+ depends = depends
+ )
+wxpExtensions.append(ext)
+
+
+
+
+
+
+# Extension for the windows module
+swig_sources = run_swig(['windows.i'], 'src', GENDIR, PKGDIR,
+ USE_SWIG, swig_force, swig_args, swig_deps +
+ ['src/__windows_rename.i',
+ 'src/__windows_reverse.txt',
+ 'src/_panel.i',
+ 'src/_toplvl.i',
+ 'src/_statusbar.i',
+ 'src/_splitter.i',
+ 'src/_sashwin.i',
+ 'src/_popupwin.i',
+ 'src/_tipwin.i',
+ 'src/_vscroll.i',
+ 'src/_taskbar.i',
+ 'src/_cmndlgs.i',
+ 'src/_mdi.i',
+ 'src/_pywindows.i',
+ 'src/_printfw.i',
+ ],
+ True)
+ext = Extension('_windows_', swig_sources,
+ include_dirs = includes,
+ define_macros = defines,
+ library_dirs = libdirs,
+ libraries = libs,
+ extra_compile_args = cflags,
+ extra_link_args = lflags,
+ depends = depends
+ )
+wxpExtensions.append(ext)
+
+
+
+
+# Extension for the controls module
+swig_sources = run_swig(['controls.i'], 'src', GENDIR, PKGDIR,
+ USE_SWIG, swig_force, swig_args, swig_deps +
+ [ 'src/__controls_rename.i',
+ 'src/__controls_reverse.txt',
+ 'src/_toolbar.i',
+ 'src/_button.i',
+ 'src/_checkbox.i',
+ 'src/_choice.i',
+ 'src/_combobox.i',
+ 'src/_gauge.i',
+ 'src/_statctrls.i',
+ 'src/_listbox.i',
+ 'src/_textctrl.i',
+ 'src/_scrolbar.i',
+ 'src/_spin.i',
+ 'src/_radio.i',
+ 'src/_slider.i',
+ 'src/_tglbtn.i',
+ 'src/_notebook.i',
+ 'src/_listctrl.i',
+ 'src/_treectrl.i',
+ 'src/_dirctrl.i',
+ 'src/_pycontrol.i',
+ 'src/_cshelp.i',
+ 'src/_dragimg.i',
+ ],
+ True)
+ext = Extension('_controls_', swig_sources,
+ include_dirs = includes,
+ define_macros = defines,
+ library_dirs = libdirs,
+ libraries = libs,
+ extra_compile_args = cflags,
+ extra_link_args = lflags,
+ depends = depends
+ )
+wxpExtensions.append(ext)
+
+
+
+
+# Extension for the misc module
+swig_sources = run_swig(['misc.i'], 'src', GENDIR, PKGDIR,
+ USE_SWIG, swig_force, swig_args, swig_deps +
+ [ 'src/__misc_rename.i',
+ 'src/__misc_reverse.txt',
+ 'src/_settings.i',
+ 'src/_functions.i',
+ 'src/_misc.i',
+ 'src/_tipdlg.i',
+ 'src/_timer.i',
+ 'src/_log.i',
+ 'src/_process.i',
+ 'src/_joystick.i',
+ 'src/_sound.i',
+ 'src/_mimetype.i',
+ 'src/_artprov.i',
+ 'src/_config.i',
+ 'src/_datetime.i',
+ 'src/_dataobj.i',
+ 'src/_dnd.i',
+ 'src/_display.i',
+ 'src/_clipbrd.i',
+ ],
+ True)
+ext = Extension('_misc_', swig_sources,
+ include_dirs = includes,
+ define_macros = defines,
+ library_dirs = libdirs,
+ libraries = libs,
+ extra_compile_args = cflags,
+ extra_link_args = lflags,
+ depends = depends
+ )
+wxpExtensions.append(ext)
+
+
+
+##
+## Core modules that are not in the "core" namespace start here
+##
+
+swig_sources = run_swig(['calendar.i'], 'src', GENDIR, PKGDIR,
+ USE_SWIG, swig_force, swig_args, swig_deps)
+ext = Extension('_calendar', swig_sources,
+ include_dirs = includes,
+ define_macros = defines,
+ library_dirs = libdirs,
+ libraries = libs,
+ extra_compile_args = cflags,
+ extra_link_args = lflags,
+ depends = depends
+ )
+wxpExtensions.append(ext)
+
+
+swig_sources = run_swig(['grid.i'], 'src', GENDIR, PKGDIR,
+ USE_SWIG, swig_force, swig_args, swig_deps)
+ext = Extension('_grid', swig_sources,
+ include_dirs = includes,
+ define_macros = defines,
+ library_dirs = libdirs,
+ libraries = libs,
+ extra_compile_args = cflags,
+ extra_link_args = lflags,
+ depends = depends
+ )
+wxpExtensions.append(ext)
+
+
+
+swig_sources = run_swig(['html.i'], 'src', GENDIR, PKGDIR,
+ USE_SWIG, swig_force, swig_args, swig_deps)
+ext = Extension('_html', swig_sources,
+ include_dirs = includes,
+ define_macros = defines,
+ library_dirs = libdirs,
+ libraries = libs,
+ extra_compile_args = cflags,
+ extra_link_args = lflags,
+ depends = depends
+ )
+wxpExtensions.append(ext)
+
+
+
+swig_sources = run_swig(['wizard.i'], 'src', GENDIR, PKGDIR,
+ USE_SWIG, swig_force, swig_args, swig_deps)
+ext = Extension('_wizard', swig_sources,
+ include_dirs = includes,
+ define_macros = defines,
+ library_dirs = libdirs,
+ libraries = libs,
+ extra_compile_args = cflags,
+ extra_link_args = lflags,
+ depends = depends
+ )
+wxpExtensions.append(ext)
+
+
+
+swig_sources = run_swig(['xrc.i'], 'src', GENDIR, PKGDIR,
+ USE_SWIG, swig_force, swig_args, swig_deps +
+ [ 'src/_xrc_rename.i',
+ 'src/_xrc_ex.py',
+ 'src/_xmlres.i',
+ 'src/_xmlsub.i',
+ 'src/_xml.i',
+ 'src/_xmlhandler.i',
+ ])
+ext = Extension('_xrc',
+ swig_sources,
+
+ include_dirs = includes + CONTRIBS_INC,
+ define_macros = defines,
+
+ library_dirs = libdirs,
+ libraries = libs,
+
+ extra_compile_args = cflags,
+ extra_link_args = lflags,
+ )
+wxpExtensions.append(ext)