+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/_brush.i',
+ 'src/_colour.i', 'src/_cursor.i',
+ 'src/_dc.i', 'src/_font.i',
+ 'src/_gdiobj.i', 'src/_icon.i',
+ 'src/_imaglist.i', 'src/_pen.i',
+ 'src/_region.i', 'src/_palette.i',
+ 'src/_stockobjs.i',
+ 'src/_effects.i',
+ 'src/_intl.i',
+ 'src/_intl_ex.py',
+ ])
+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',
+ ])
+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',
+ ])
+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/_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/_clipbrd.i',
+ ])
+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)