X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d358552fcd68e15ecc192a3cdef82d101cb8b08..6f63ec3f93070e6824da775cf8d2565a025c2406:/utils/wxPython/src/Setup.in diff --git a/utils/wxPython/src/Setup.in b/utils/wxPython/src/Setup.in index 5213f7d9dd..66f164a264 100644 --- a/utils/wxPython/src/Setup.in +++ b/utils/wxPython/src/Setup.in @@ -1,7 +1,11 @@ # This file gives the details of what is needed to build this extension # module so the Makefile can be created. -*shared* +### +### This file should be created by configure. Currently it is tweaked by hand. +### + +#*shared* CCC=c++ WXWIN=../../.. @@ -10,19 +14,32 @@ srcdir=$(GENCODEDIR) # Depending on how your Python was built, you may have to set this # value to use the C++ driver to link with instead of the default -# C driver. Fo rexample: -MY_LDSHARED=$(CCC) -shared +# C driver. For example: +#MY_LDSHARED=$(CCC) -shared +# Same as above, but for statically linking Python and wxPython together, +# in other words, if you comment out the *shared* above. If this is the +# case then you should ensure that the main() function is Python's, not +# wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined +# to force this... +MY_LINKCC=$(CCC) -## Pick one of these, or set your own -#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython -TARGETDIR=.. -wxpc wxp.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \ - mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \ - -I. -I$(WXWIN)/include -I/usr/lib/glib/include -I$(WXWIN)/src \ -# -D__WXDEBUG__ -ldmalloc \ - -DSWIG_GLOBAL -D__WXGTK__ -L$(WXWIN)/lib/Linux -lwx_gtk \ - -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11 +## Pick one of these, or set your own. This is where the +## wxPython module should be installed. It should be a +## subdirectory named wxPython. +TARGETDIR=.. +#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython +wxc wx.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \ + mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \ + frames.cpp stattool.cpp utils.cpp \ + # CFLAGS + -I. -I$(WXWIN)/include -I/usr/local/lib/glib/include -I$(WXWIN)/src \ + -I/usr/X/include -DSWIG_GLOBAL -D__WXGTK__ \ + #-D__WXDEBUG__ \ + # LFLAGS + -L$(WXWIN)/lib/solaris2.6 -L/usr/X/lib \ + -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 \ + -lwx_gtk -lgtk -lgdk -lglib -lXext -lX11 -lstdc++ -lgcc