-#----------------------------------------------------------------------
-# Define the XRC extension module
-#----------------------------------------------------------------------
-
-if BUILD_XRC:
- msg('Preparing XRC...')
- location = 'contrib/xrc'
-
- swig_sources = run_swig(['xrc.i'], location, GENDIR, PKGDIR,
- USE_SWIG, swig_force, swig_args, swig_deps +
- [ '%s/_xrc_rename.i' % location,
- '%s/_xrc_ex.py' % location,
- '%s/_xmlres.i' % location,
- '%s/_xmlsub.i' % location,
- '%s/_xml.i' % location,
- '%s/_xmlhandler.i' % location,
- ])
-
- ext = Extension('_xrc',
- swig_sources,
-
- include_dirs = includes + CONTRIBS_INC,
- define_macros = defines,
-
- library_dirs = libdirs,
- libraries = libs + makeLibName('xrc'),
-
- extra_compile_args = cflags,
- extra_link_args = lflags,
- )
-
- wxpExtensions.append(ext)
-
-
-