]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/build.cfg
bug #103 (encodings not enumerated correctly) fixed
[wxWidgets.git] / 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', 'utils.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', 'grid.i',
9 'html.i', 'htmlhelp.i', 'calendar.i'
10 ]
11
12 PYFILES = ['__init__.py', '__version__.py']
13
14 SWIGDEPS = '_defs.i my_typemaps.i'
15 OTHERDEPS = 'helpers.h'
16
17 if sys.platform == 'win32':
18 RESFILE = 1
19 SOURCES = ['helpers.cpp', 'libpy.c']
20 LIBS = '$(PYTHONLIB)'
21 OTHERRULES = """
22 dist:
23 cd ..
24 distrib\zipit.bat $(VERSION)
25
26 dbg:
27 cd ..\distrib
28 makedbg.bat $(VERSION)
29
30 dev:
31 cd ..\distrib
32 makedev.bat $(VERSION)
33
34 __version__.py: ../distrib/build.py build.cfg
35 echo ver = '$(VERSION)' > __version__.py
36
37 """
38
39 else:
40 DEFAULTRULE = 'default: $(GENCODEDIR) helperlib $(TARGET) $(BUILDDIR)/$(TARGET) bldpycfiles'
41 OTHERINSTALLTARGETS = 'installLib installDemo installHelpers '
42 OTHERUNINSTALLTARGETS = 'uninstallLib uninstallDemo uninstallHelpers '
43
44 OTHERCFLAGS = '`gtk-config --cflags`'
45 OTHERRULES = """
46 HELPERLIBNAME = lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER).0.0
47 helperlib: $(HELPERLIBNAME)
48
49 $(HELPERLIBNAME) : helpers.o libpy.o
50 $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
51 ln -s $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER)
52 ln -s $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO)
53 ln -s $(HELPERLIBNAME) lib$(HELPERLIB)$(SO)
54
55
56 installHelpers: $(HELPERLIBDIR)/$(HELPERLIBNAME)
57
58
59 $(HELPERLIBDIR)/$(HELPERLIBNAME) : $(HELPERLIBNAME)
60 cp $(HELPERLIBNAME) $(HELPERLIBDIR)
61 cd $(HELPERLIBDIR); \
62 ln -sf $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER); \
63 ln -sf $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO); \
64 ln -sf $(HELPERLIBNAME) lib$(HELPERLIB)$(SO)
65 @echo ---------------------------------------------------------
66 @echo You may have to run ldconfig, or set an environment
67 @echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
68 @echo to be found at runtime. See your man pages for ld.so or
69 @echo equivalent.
70 @echo ---------------------------------------------------------
71
72
73 installLib:
74 mkdir $(TARGETDIR)/lib; \\
75 mkdir $(TARGETDIR)/lib/sizers; \\
76 mkdir $(TARGETDIR)/lib/editor; \\
77 cp ../wxPython/lib/*.py $(TARGETDIR)/lib; \\
78 cp ../wxPython/lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
79 cp ../wxPython/lib/editor/*.py $(TARGETDIR)/lib/editor; \\
80 cp ../wxPython/lib/*.txt $(TARGETDIR)/lib; \\
81 cp ../wxPython/lib/sizers/*.txt $(TARGETDIR)/lib/sizers;\\
82 cp ../wxPython/lib/editor/*.txt $(TARGETDIR)/lib/editor;\\
83 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
84 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR);
85
86 installDemo:
87 mkdir $(TARGETDIR)/demo; \\
88 mkdir $(TARGETDIR)/demo/bitmaps; \\
89 mkdir $(TARGETDIR)/demo/data; \\
90 cp ../demo/*.py $(TARGETDIR)/demo; \\
91 cp ../demo/*.xml $(TARGETDIR)/demo; \\
92 cp ../demo/*.txt $(TARGETDIR)/demo; \\
93 cp ../demo/bitmaps/*.bmp $(TARGETDIR)/demo/bitmaps; \\
94 cp ../demo/bitmaps/*.ico $(TARGETDIR)/demo/bitmaps; \\
95 cp ../demo/bitmaps/*.gif $(TARGETDIR)/demo/bitmaps; \\
96 cp ../demo/bitmaps/*.png $(TARGETDIR)/demo/bitmaps; \\
97 cp ../demo/bitmaps/*.jpg $(TARGETDIR)/demo/bitmaps; \\
98 cp ../demo/data/*.png $(TARGETDIR)/demo/data; \\
99 cp ../demo/data/*.htm $(TARGETDIR)/demo/data; \\
100 cp ../demo/data/*.bmp $(TARGETDIR)/demo/data; \\
101 cp ../demo/data/*.txt $(TARGETDIR)/demo/data; \\
102 cp ../demo/data/*.i $(TARGETDIR)/demo/data; \\
103 cp ../demo/data/*.h $(TARGETDIR)/demo/data; \\
104 echo "(1,0)" > $(TARGETDIR)/demo/data/showTips; \\
105 chmod 666 $(TARGETDIR)/demo/data/showTips; \\
106 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR)/demo;\\
107 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR)/demo;
108
109
110 uninstallLib:
111 rm -rf $(TARGETDIR)/lib;
112
113 uninstallDemo:
114 rm -rf $(TARGETDIR)/demo;
115
116
117 uninstallHelpers:
118 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
119 rm -f $(HELPERLIBDIR)/$(HELPERLIBNAME)
120 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER)
121 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB).$(MAJVER)$(SO)
122 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
123
124
125 __version__.py: ../distrib/build.py build.cfg
126 echo ver = \\'$(VERSION)\\' > __version__.py
127
128
129 #----------------------------------------------------------------------
130
131 dist: tgz rpm
132
133 tgz:
134 cd ..; distrib/maketgz $(VERSION)
135
136 rpm:
137 cd ../distrib; ./makerpm $(VERSION)
138
139
140 """
141
142
143
144
145
146 OTHERRULES = OTHERRULES + """
147
148 $(GENCODEDIR)/wx.py : _extras.py
149 $(GENCODEDIR)/grid.py : _gridextras.py
150 $(GENCODEDIR)/html.py : _htmlextras.py
151 $(GENCODEDIR)/calendar.py : _calextras.py
152
153 """