"""
-BUILD_GLCANVAS = 1 # If true, build the contrib/glcanvas extension module
+BUILD_GLCANVAS = 0 #1 # If true, build the contrib/glcanvas extension module
BUILD_OGL = 1 # If true, build the contrib/ogl extension module
BUILD_STC = 1 # If true, build the contrib/stc extension module
BUILD_IEWIN = 0 # Internet Explorer wrapper (experimental)
CORE_ONLY = 0 # if true, don't build any of the above
-GL_ONLY = 0 # Only used when making the -gl RPM. See the "b" script
+GL_ONLY = 0 #1 #0 # Only used when making the -gl RPM. See the "b" script
# for the ugly details
USE_SWIG = 0 # Should we actually execute SWIG, or just use the
WXDLLVER = '23_1' # Version part of DLL name
+#----------------------------------------------------------------------
+
+def msg(text):
+ if __name__ == "__main__":
+ print text
+
+
#----------------------------------------------------------------------
# Some other globals
#----------------------------------------------------------------------
bcpp_compiling = '-c' in sys.argv and 'my_bcpp' in sys.argv # Bad heuristic
if bcpp_compiling:
- print "Compiling wxPython by Borland C/C++ Compiler"
+ msg("Compiling wxPython by Borland C/C++ Compiler")
HYBRID=0
WXBCPPLIBVER = string.replace(WXDLLVER,"_","")
# Version part of BCPP build LIBRARY name
if CORE_ONLY:
- BUILD_GLCANVAS = 0
+ BUILD_GLCANVAS = 0 #0
BUILD_OGL = 0
BUILD_STC = 0
BUILD_XRC = 0
#----------------------------------------------------------------------
if not GL_ONLY:
- print 'Preparing CORE...'
+ msg('Preparing CORE...')
swig_files = [ 'wx.i', 'windows.i', 'windows2.i', 'windows3.i', 'events.i',
'misc.i', 'misc2.i', 'gdi.i', 'mdi.i', 'controls.i',
'controls2.i', 'cmndlgs.i', 'stattool.i', 'frames.i', 'image.i',
#----------------------------------------------------------------------
if BUILD_GLCANVAS or GL_ONLY:
- print 'Preparing GLCANVAS...'
+ msg('Preparing GLCANVAS...')
location = 'contrib/glcanvas'
swig_files = ['glcanvas.i']
other_sources = []
#----------------------------------------------------------------------
if not GL_ONLY and BUILD_OGL:
- print 'Preparing OGL...'
+ msg('Preparing OGL...')
location = 'contrib/ogl'
OGLLOC = location + '/contrib/src/ogl'
OGLINC = location + '/contrib/include'
#----------------------------------------------------------------------
if not GL_ONLY and BUILD_STC:
- print 'Preparing STC...'
+ msg('Preparing STC...')
location = 'contrib/stc'
STCLOC = location + '/contrib/src/stc'
STCINC = location + '/contrib/include'
[STC_H+'/stc.h'])
# copy a project specific py module to the main package dir
- copy_file(location+'/stc.py', PKGDIR, update=1, verbose=1)
+ copy_file(location+'/stc.py', PKGDIR, update=1, verbose=0)
# add some include dirs to the standard set
stc_includes = includes[:]
#----------------------------------------------------------------------
if not GL_ONLY and BUILD_IEWIN:
- print 'Preparing IEWIN...'
+ msg('Preparing IEWIN...')
location = 'contrib/iewin'
swig_files = ['iewin.i', ]
#----------------------------------------------------------------------
if not GL_ONLY and BUILD_XRC:
- print 'Preparing XRC...'
+ msg('Preparing XRC...')
location = 'contrib/xrc'
XMLLOC = location + '/contrib/src/xrc'
XMLINC = location + '/contrib/include'