]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/build.cfg
ifdef'd out wxEmptyString. This is defined in string.cpp.
[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',
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
26 """
27
28 else:
29 DEFAULTRULE = 'default: $(GENCODEDIR) lib$(HELPERLIB)$(SO) $(TARGET)'
30 OTHERINSTALLTARGETS = 'installLibDemo installHelpers '
31 OTHERUNINSTALLTARGETS = 'uninstallLibDemo uninstallHelpers '
32
33
34 OTHERRULES = """
35 lib$(HELPERLIB)$(SO) : helpers.o libpy.o
36 $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
37
38
39 installHelpers: $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
40
41
42 $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) : lib$(HELPERLIB)$(SO)
43 cp $< $@
44 @echo ---------------------------------------------------------
45 @echo You may have to run ldconfig, or set an environment
46 @echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
47 @echo to be found at runtime. See your man pages for ld.so or
48 @echo equivalent.
49 @echo ---------------------------------------------------------
50
51
52 installLibDemo:
53 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
54 mkdir $(TARGETDIR)/lib; \\
55 mkdir $(TARGETDIR)/lib/sizers; \\
56 mkdir $(TARGETDIR)/demo; \\
57 mkdir $(TARGETDIR)/demo/bitmaps; \\
58 cp ../lib/*.py $(TARGETDIR)/lib; \\
59 cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
60 cp ../demo/*.py $(TARGETDIR)/demo; \\
61 cp ../lib/*.txt $(TARGETDIR)/lib; \\
62 cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \\
63 cp ../demo/*.txt $(TARGETDIR)/demo; \\
64 cp ../demo/bitmaps/[a-z]* $(TARGETDIR)/demo/bitmaps; \\
65 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
66 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR); \\
67 fi
68
69
70
71 uninstallLibDemo:
72 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
73 rm -rf $(TARGETDIR)/lib; \\
74 rm -rf $(TARGETDIR)/demo; \\
75 fi
76
77
78 uninstallHelpers:
79 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
80
81
82
83 #----------------------------------------------------------------------
84
85 dist: tgz rpm
86
87 tgz:
88 cd ../..; wxPython/distrib/maketgz $(VERSION)
89
90 rpm:
91 cd ../distrib; ./makerpm $(VERSION)
92
93
94
95 """
96
97
98
99
100
101 OTHERRULES = OTHERRULES + """
102 __version__.py: ../distrib/build.py build.cfg
103 echo ver = \\'$(VERSION)\\' > __version__.py
104
105
106 $(GENCODEDIR)/wx.py : _extras.py
107
108 """