- 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
19 lines
615 B
Python
19 lines
615 B
Python
# -*- python -*-
|
|
import sys
|
|
|
|
MODULE = 'glcanvasc'
|
|
SWIGFILES = ['glcanvas.i', ]
|
|
OTHERCFLAGS = '-DWITH_GLCANVAS -I$(WXDIR)\utils\glcanvas\%s' % (GENCODEDIR,)
|
|
# Special action; for win32 we require you make the glcanvas lib. The
|
|
# makefile will copy it to WXWIN\lib
|
|
# Unix make system isn't so advanced, so we'll go looking for the source
|
|
# file ourselves...
|
|
if sys.platform == 'win32':
|
|
OTHERLIBS = '$(WXDIR)\lib\glcanvas.lib glu32.lib opengl32.lib'
|
|
else:
|
|
SOURCES = [GENCODEDIR+'/_glcanvas.cpp']
|
|
OTHERRULES = """
|
|
$(GENCODEDIR)/_glcanvas.cpp :
|
|
cp $(WXDIR)/utils/glcanvas/$(GENCODEDIR)/glcanvas.cpp $@
|
|
"""
|