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