VER_MAJOR = 2 # The first three must match wxWindows
VER_MINOR = 5
-VER_RELEASE = 0
+VER_RELEASE = 1
VER_SUBREL = 0 # wxPython release num for x.y.z release of wxWindows
VER_FLAGS = "p1" # release flags, such as prerelease num, unicode, etc.
# wxWindows must have been built with /MD, not /MDd
# (using FINAL=hybrid will do it.)
-WXDLLVER = '25' # Version part of wxWindows DLL name
+ # Version part of wxWindows LIB/DLL names
+WXDLLVER = '%d%d' % (VER_MAJOR, VER_MINOR)
#----------------------------------------------------------------------
if os.name == 'posix':
libname = '%s_%s-%s' % (WXBASENAME, name, WXRELEASE)
else:
- libname = "FUBAR"
- #raise NotImplementedError
+ libname = 'wxmsw%s%s_%s' % (WXDLLVER, libFlag(), name)
return [libname]
def adjustCFLAGS(cflags, defines, includes):
- '''Extrace the raw -I, -D, and -U flags and put them into
+ '''Extract the raw -I, -D, and -U flags and put them into
defines and includes as needed.'''
newCFLAGS = []
for flag in cflags:
def adjustLFLAGS(lfags, libdirs, libs):
- '''Extrace the -L and -l flags and put them in libdirs and libs as needed'''
+ '''Extract the -L and -l flags and put them in libdirs and libs as needed'''
newLFLAGS = []
for flag in lflags:
if flag[:2] == '-L':
GENDIR = 'msw'
includes = ['src',
- opj(WXDIR, 'lib', 'vc_msw' + libFlag() + 'dll'),
+ opj(WXDIR, 'lib', 'vc_dll', 'msw' + libFlag()),
opj(WXDIR, 'include'),
opj(WXDIR, 'contrib', 'include'),
]
defines = [ ('WIN32', None),
('_WINDOWS', None),
-## ('__WIN32__', None),
-## ('__WINDOWS__', None),
-## ('WINVER', '0x0400'),
-## ('__WIN95__', None),
-## ('STRICT', None),
(WXPLAT, None),
('WXUSINGDLL', '1'),
if not FINAL or HYBRID:
defines.append( ('__WXDEBUG__', None) )
- libdirs = [ opj(WXDIR, 'lib', 'vc_msw' + libFlag() + 'dll') ]
- wxdll = 'wxmsw' + WXDLLVER + libFlag()
- libs = [ wxdll ]
+ libdirs = [ opj(WXDIR, 'lib', 'vc_dll') ]
+ libs = [ 'wxbase' + WXDLLVER + libFlag(), # TODO: trim this down to what is really needed for the core
+ 'wxbase' + WXDLLVER + libFlag() + '_net',
+ 'wxbase' + WXDLLVER + libFlag() + '_xml',
+ makeLibName('core')[0],
+ makeLibName('adv')[0],
+ makeLibName('html')[0],
+ ]
libs = libs + ['kernel32', 'user32', 'gdi32', 'comdlg32',
'winspool', 'winmm', 'shell32', 'oldnames', 'comctl32',
msg('Preparing GLCANVAS...')
location = 'contrib/glcanvas'
swig_files = ['glcanvas.i']
- other_sources = []
swig_sources = run_swig(swig_files, location, GENDIR, PKGDIR,
USE_SWIG, swig_force, swig_args, swig_deps)
gl_lflags = gl_config.split() + lflags
gl_libs = libs
else:
- other_sources = [opj(location, 'msw/myglcanvas.cpp')]
- gl_libs = libs + ['opengl32', 'glu32']
+ gl_libs = libs + ['opengl32', 'glu32'] + makeLibName('gl')
gl_lflags = lflags
ext = Extension('glcanvasc',
- swig_sources + other_sources,
+ swig_sources,
include_dirs = includes,
define_macros = defines,