# flags and values that affect this script
#----------------------------------------------------------------------
-VERSION = "2.3.3rc"
+VERSION = "2.3.3pre"
DESCRIPTION = "Cross platform GUI toolkit for Python"
AUTHOR = "Robin Dunn"
AUTHOR_EMAIL = "Robin Dunn <robin@alldunn.com>"
BUILD_STC = 1 # If true, build the contrib/stc extension module
BUILD_XRC = 1 # XML based resource system
BUILD_GIZMOS = 1 # Build a module for the gizmos contrib library
-BUILD_DLLWIDGET = 1# Build a module for the gizmos contrib library
+BUILD_DLLWIDGET = 1# Build a module for that enables unknown wx widgets
+ # to be loaded from a DLL to be used from Python.
BUILD_IEWIN = 0 # Internet Explorer wrapper (experimental)
USE_SWIG = 0 # Should we actually execute SWIG, or just use the
# files already in the distribution?
+USE_UNICODE = 0 # This will pass the 'wxUSE_UNICODE' flag to SWIG.
+ # At the moment only tested for 'CORE_ONLY = 1'
+
IN_CVS_TREE = 0 # Set to true if building in a full wxWindows CVS
# tree, otherwise will assume all needed files are
# available in the wxPython source distribution
def libFlag():
if FINAL:
- return ''
+ rv = ''
elif HYBRID:
- return 'h'
+ rv = 'h'
else:
- return 'd'
+ rv = 'd'
+ if USE_UNICODE:
+ rv = 'u' + rv
+ return rv
#----------------------------------------------------------------------
for flag in ['BUILD_GLCANVAS', 'BUILD_OGL', 'BUILD_STC', 'BUILD_XRC',
'BUILD_GIZMOS', 'BUILD_DLLWIDGET',
- 'CORE_ONLY', 'USE_SWIG', 'IN_CVS_TREE',
+ 'CORE_ONLY', 'USE_SWIG', 'IN_CVS_TREE', 'USE_UNICODE',
'FINAL', 'HYBRID', ]:
for x in range(len(sys.argv)):
if string.find(sys.argv[x], flag) == 0:
sys.argv = filter(None, sys.argv)
+
+#----------------------------------------------------------------------
+# sanity checks
+
if CORE_ONLY:
BUILD_GLCANVAS = 0
BUILD_OGL = 0
BUILD_DLLWIDGET = 0
+if USE_UNICODE and os.name != 'nt':
+ print "UNICODE is currently only supported on Win32"
+ sys.exit()
+
#----------------------------------------------------------------------
# Setup some platform specific stuff
#----------------------------------------------------------------------
#'-docstring', '-Sbefore',
'-I./src', '-D'+WXPLAT,
]
+if USE_UNICODE:
+ swig_args.append('-DwxUSE_UNICODE')
+
swig_deps = ['src/my_typemaps.i']