more intelligent build for gtk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -11,14 +11,22 @@ SWIGFILES = ['glcanvas.i', ]
|
||||
# file ourselves...
|
||||
if sys.platform == 'win32':
|
||||
OTHERLIBS = '$(WXDIR)\lib\glcanvas.lib glu32.lib opengl32.lib'
|
||||
OTHERCFLAGS = '-DWITH_GLCANVAS -I$(WXDIR)\utils\glcanvas\win'
|
||||
OTHERCFLAGS = '-DWITH_GLCANVAS -I$(WXDIR)/utils/glcanvas/win'
|
||||
|
||||
else:
|
||||
SOURCES = [GENCODEDIR+'/_glcanvas.cpp']
|
||||
|
||||
# SOURCES = [GENCODEDIR+'/_glcanvas.cpp']
|
||||
print "Warning: Assuming MesaGL libraries. Override OTHERLIBS in build.local\n"\
|
||||
" if you have native GL!"
|
||||
OTHERCFLAGS = '-DWITH_GLCANVAS -I$(WXDIR)\utils\glcanvas\gtk'
|
||||
OTHERLIBS = "-lMesaGL -lMesaGLU"
|
||||
OTHERRULES = """
|
||||
$(GENCODEDIR)/_glcanvas.cpp :
|
||||
cp $(WXDIR)/utils/glcanvas/$(GENCODEDIR)/glcanvas.cpp $@
|
||||
"""
|
||||
OTHERCFLAGS = '-DWITH_GLCANVAS -I$(WXDIR)/utils/glcanvas/gtk'
|
||||
OTHERLIBS = "-lwxglcanvas -lMesaGL -lMesaGLU"
|
||||
# OTHERRULES = """
|
||||
#$(GENCODEDIR)/_glcanvas.cpp : $(WXDIR)/utils/glcanvas/$(GENCODEDIR)/glcanvas.cpp
|
||||
# cp $< $@
|
||||
#glcanvas.h : $(WXDIR)/utils/glcanvas/$(GENCODEDIR)/glcanvas.h
|
||||
# cp $< $@
|
||||
#_glcanvas.o : glcanvas.h
|
||||
#"""
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user