]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/build.cfg
added wxUSE_DEBUG_NEW_ALWAYS to --enable-mem_tracing (quite useless otherwise)
[wxWidgets.git] / utils / wxPython / src / build.cfg
1 # -*- python -*-
2 import sys
3
4 MODULE = 'wxc'
5 SWIGFILES = ['wx.i', 'windows.i', 'windows2.i', 'windows3.i', 'events.i',
6 'misc.i', 'misc2.i', 'gdi.i', 'mdi.i', 'controls.i',
7 'controls2.i', 'cmndlgs.i', 'stattool.i', 'frames.i',
8 'image.i', 'printfw.i', 'sizers.i', 'clip_dnd.i'
9 ]
10
11 PYFILES = ['__init__.py', '__version__.py']
12
13 SWIGDEPS = '_defs.i my_typemaps.i'
14 OTHERDEPS = 'helpers.h'
15
16 if sys.platform == 'win32':
17 RESFILE = 1
18 SOURCES = ['helpers.cpp', 'libpy.c']
19 LIBS = '$(PYTHONLIB)'
20 OTHERRULES = """
21 dist:
22 cd ..\..
23 wxPython\distrib\zipit.bat $(VERSION)
24
25 dbg:
26 cd ..\distrib
27 makedbg.bat $(VERSION)
28
29 dev:
30 cd ..\distrib
31 makedev.bat $(VERSION)
32
33 __version__.py: ../distrib/build.py build.cfg
34 echo ver = '$(VERSION)' > __version__.py
35
36 """
37
38 else:
39 DEFAULTRULE = 'default: $(GENCODEDIR) lib$(HELPERLIB)$(SO) $(TARGET)'
40 OTHERINSTALLTARGETS = 'installLibDemo installHelpers '
41 OTHERUNINSTALLTARGETS = 'uninstallLibDemo uninstallHelpers '
42
43
44 OTHERRULES = """
45 lib$(HELPERLIB)$(SO) : helpers.o libpy.o
46 $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
47
48
49 installHelpers: $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
50
51
52 $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) : lib$(HELPERLIB)$(SO)
53 cp $< $@
54 @echo ---------------------------------------------------------
55 @echo You may have to run ldconfig, or set an environment
56 @echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
57 @echo to be found at runtime. See your man pages for ld.so or
58 @echo equivalent.
59 @echo ---------------------------------------------------------
60
61
62 installLibDemo:
63 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
64 mkdir $(TARGETDIR)/lib; \\
65 mkdir $(TARGETDIR)/lib/sizers; \\
66 mkdir $(TARGETDIR)/lib/editor; \\
67 mkdir $(TARGETDIR)/demo; \\
68 mkdir $(TARGETDIR)/demo/bitmaps; \\
69 mkdir $(TARGETDIR)/demo/data; \\
70 cp ../lib/*.py $(TARGETDIR)/lib; \\
71 cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
72 cp ../lib/editor/*.py $(TARGETDIR)/lib/editor; \\
73 cp ../demo/*.py $(TARGETDIR)/demo; \\
74 cp ../lib/*.txt $(TARGETDIR)/lib; \\
75 cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \\
76 cp ../lib/editor/*.txt $(TARGETDIR)/lib/editor; \\
77 cp ../demo/*.txt $(TARGETDIR)/demo; \\
78 cp ../demo/bitmaps/* $(TARGETDIR)/demo/bitmaps; \\
79 cp ../demo/data/* $(TARGETDIR)/demo/data; \\
80 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
81 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR); \\
82 fi
83
84
85
86 uninstallLibDemo:
87 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
88 rm -rf $(TARGETDIR)/lib; \\
89 rm -rf $(TARGETDIR)/demo; \\
90 fi
91
92
93 uninstallHelpers:
94 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
95
96
97 __version__.py: ../distrib/build.py build.cfg
98 echo ver = \\'$(VERSION)\\' > __version__.py
99
100
101 #----------------------------------------------------------------------
102
103 dist: tgz rpm
104
105 tgz:
106 cd ../..; wxPython/distrib/maketgz $(VERSION)
107
108 rpm:
109 cd ../distrib; ./makerpm $(VERSION)
110
111
112
113 """
114
115
116
117
118
119 OTHERRULES = OTHERRULES + """
120
121 $(GENCODEDIR)/wx.py : _extras.py
122
123 """