]>
Commit | Line | Data |
---|---|---|
5148fc8e RD |
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 = 'installHelpers installLibDemo' | |
27 | ||
28 | ||
29 | OTHERRULES = """ | |
30 | lib$(HELPERLIB)$(SO) : helpers.o libpy.o | |
31 | $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@ | |
32 | ||
33 | installHelpers: $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) | |
34 | ||
35 | $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) : lib$(HELPERLIB)$(SO) | |
36 | cp $< $@ | |
37 | @echo --------------------------------------------------------- | |
38 | @echo You may have to run ldconfig, or set an environment | |
39 | @echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) | |
40 | @echo to be found at runtime. See your man pages for ld.so or | |
41 | @echo equivalent. | |
42 | @echo --------------------------------------------------------- | |
43 | ||
44 | ||
45 | installLibDemo: | |
f32bba38 | 46 | @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython"]; then \\ |
5148fc8e RD |
47 | mkdir $(TARGETDIR)/lib; \\ |
48 | mkdir $(TARGETDIR)/lib/sizers; \\ | |
49 | mkdir $(TARGETDIR)/demo; \\ | |
50 | mkdir $(TARGETDIR)/demo/bitmaps; \\ | |
51 | cp ../lib/*.py $(TARGETDIR)/lib; \\ | |
52 | cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\ | |
53 | cp ../demo/*.py $(TARGETDIR)/demo; \\ | |
54 | cp ../lib/*.txt $(TARGETDIR)/lib; \\ | |
55 | cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \\ | |
56 | cp ../demo/*.txt $(TARGETDIR)/demo; \\ | |
57 | cp ../demo/bitmaps/[a-z]* $(TARGETDIR)/demo/bitmaps; \\ | |
58 | $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py -l $(TARGETDIR); \\ | |
59 | $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py -l $(TARGETDIR); \\ | |
60 | fi | |
61 | ||
62 | ||
63 | dist: tgz rpm | |
64 | ||
65 | tgz: | |
66 | cd ../..; wxPython/distrib/maketgz $(VERSION) | |
67 | ||
68 | rpm: | |
69 | cd ../distrib; ./makerpm $(VERSION) | |
70 | ||
71 | ||
72 | ||
73 | """ | |
74 | ||
75 | ||
76 | ||
77 | ||
78 |