]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/Setup.in
jconfig.h uses configures results
[wxWidgets.git] / utils / wxPython / src / Setup.in
1 ## This file gives the details of what is needed to build this extension
2 ## module so the Makefile can be created.
3
4 ## If you have not done "make install" for wxWindows then see Setup.in.linux
5 ## for a more verbose version of this file.
6
7 *shared*
8
9 CCC=c++
10 GENCODEDIR=gtk
11 srcdir=$(GENCODEDIR)
12 WX_CONFIG_CFLAGS=`wx-config --cflags`
13 WX_CONFIG_LIBS=`wx-config --libs`
14
15
16 ## Depending on how your Python was built, you may have to set this
17 ## value to use the C++ driver to link with instead of the default
18 ## C driver. For example:
19 MY_LDSHARED=$(CCC) -shared
20
21 ## Same as above, but for statically linking Python and wxPython together,
22 ## in other words, if you comment out the *shared* above. If this is the
23 ## case then you should ensure that the main() function is Python's, not
24 ## wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined
25 ## to force this...
26 MY_LINKCC=$(CCC)
27
28
29 ## Pick one of these, or set your own. This is where the wxPython module
30 ## should be installed. It should be a subdirectory named wxPython.
31 TARGETDIR=..
32 #TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
33 #TARGETDIR=$(BINLIBDEST)/wxPython
34
35 SEPARATE=-DSEPARATE
36
37 utilsc utils.cpp \
38 -I. $(WX_CONFIG_CFLAGS) \
39 -DSWIG_GLOBAL -DWXP_WITH_THREAD $(SEPARATE) -Xlinker $(WX_CONFIG_LIBS)
40
41 wxc wx.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \
42 mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
43 frames.cpp stattool.cpp windows3.cpp \
44 -I. $(WX_CONFIG_CFLAGS) -I/usr/local/lib/glib/include \
45 -DSWIG_GLOBAL -DWXP_WITH_THREAD $(SEPARATE) -Xlinker $(WX_CONFIG_LIBS)
46
47