- Updated gtk SWIGged files to SWIG 1.1 cvs level

- changed SOURCES treatment in build.py; the path is stripped from the source
file when the object name is derived; this means sources can be anywhere
(typically might be in GENCODEDIR) but the compiled object will always be
in the current dir. (This is how the implicit makefile rule already behaved)
- updated glcanvas/build.cfg for unix builds to copy glcanvas.cpp from
utils/glcanvas (like Setup.in did)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Harco de Hilster
1999-08-24 12:51:54 +00:00
parent d50c81d3ad
commit f786a3b23d
13 changed files with 4692 additions and 2916 deletions

View File

@@ -209,6 +209,18 @@ def splitlines(st):
#----------------------------------------------------------------------------
def strippath(st):
# remove any leading paths, retrieve only file name. Used while
# parsing the SOURCES file list, so that object files are local,
# while source may be anywere)
if sys.platform == 'win32':
sep = '\\'
else:
sep = '/'
return string.split(st,sep)[-1]
#----------------------------------------------------------------------------
class BuildConfig:
def __init__(self, **kw):
self.__dict__.update(kw)
@@ -287,7 +299,13 @@ class BuildConfig:
raise SystemExit, "Python development files not found"
self.CCC = self.findMFValue(mfText, 'CCC')
if not self.CCC:
print "Warning: C++ compiler not specified (CCC). Assuming c++"
self.CCC = 'c++'
self.CC = self.findMFValue(mfText, 'CC')
if not self.CC:
print "Warning: C compiler not specified (CCC). Assuming cc"
self.CC = 'cc'
self.OPT = self.findMFValue(mfText, 'OPT')
self.SO = self.findMFValue(mfText, 'SO')
self.LDSHARED = self.findMFValue(mfText, 'LDSHARED')
@@ -325,7 +343,8 @@ class BuildConfig:
for name in self.SWIGFILES:
objects = objects + os.path.splitext(name)[0] + self.OBJEXT + ' '
for name in self.SOURCES:
objects = objects + os.path.splitext(name)[0] + self.OBJEXT + ' '
obj = strippath(name)
objects = objects + os.path.splitext(obj)[0] + self.OBJEXT + ' '
self.OBJECTS = splitlines(objects)