]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/build.cfg
Prep for wxPython 2.1b3 release
[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',
9 ]
10
11 PYFILES = ['__init__.py']
12
13
14 if sys.platform == 'win32':
15 RESFILE = 1
16 SOURCES = ['helpers.cpp', 'libpy.c']
17 LIBS = '$(PYTHONLIB)'
18 OTHERRULES = """
19 dist:
20 cd ..\..
21 wxPython\distrib\zipit.bat $(VERSION)
22 """
23
24 else:
25 DEFAULTRULE = 'default: $(GENCODEDIR) lib$(HELPERLIB)$(SO) $(TARGET)'
26 OTHERINSTALLTARGETS = 'installLibDemo installHelpers '
27 OTHERUNINSTALLTARGETS = 'uninstallLibDemo uninstallHelpers '
28
29
30 OTHERRULES = """
31 lib$(HELPERLIB)$(SO) : helpers.o libpy.o
32 $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
33
34
35 installHelpers: $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
36
37
38 $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) : lib$(HELPERLIB)$(SO)
39 cp $< $@
40 @echo ---------------------------------------------------------
41 @echo You may have to run ldconfig, or set an environment
42 @echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
43 @echo to be found at runtime. See your man pages for ld.so or
44 @echo equivalent.
45 @echo ---------------------------------------------------------
46
47
48 installLibDemo:
49 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
50 mkdir $(TARGETDIR)/lib; \\
51 mkdir $(TARGETDIR)/lib/sizers; \\
52 mkdir $(TARGETDIR)/demo; \\
53 mkdir $(TARGETDIR)/demo/bitmaps; \\
54 cp ../lib/*.py $(TARGETDIR)/lib; \\
55 cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
56 cp ../demo/*.py $(TARGETDIR)/demo; \\
57 cp ../lib/*.txt $(TARGETDIR)/lib; \\
58 cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \\
59 cp ../demo/*.txt $(TARGETDIR)/demo; \\
60 cp ../demo/bitmaps/[a-z]* $(TARGETDIR)/demo/bitmaps; \\
61 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
62 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR); \\
63 fi
64
65
66
67 uninstallLibDemo:
68 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
69 rm -rf $(TARGETDIR)/lib; \\
70 rm -rf $(TARGETDIR)/demo; \\
71 fi
72
73
74 uninstallHelpers:
75 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
76
77
78 #----------------------------------------------------------------------
79
80 dist: tgz rpm
81
82 tgz:
83 cd ../..; wxPython/distrib/maketgz $(VERSION)
84
85 rpm:
86 cd ../distrib; ./makerpm $(VERSION)
87
88
89
90 """
91
92
93
94
95