]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/build.cfg
removed a test value left in by accident
[wxWidgets.git] / utils / wxPython / src / build.cfg
CommitLineData
5148fc8e
RD
1# -*- python -*-
2import sys
3
4MODULE = 'wxc'
5SWIGFILES = ['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
11PYFILES = ['__init__.py']
12
13
14if sys.platform == 'win32':
15 RESFILE = 1
16 SOURCES = ['helpers.cpp', 'libpy.c']
17 LIBS = '$(PYTHONLIB)'
18 OTHERRULES = """
19dist:
20 cd ..\..
21 wxPython\distrib\zipit.bat $(VERSION)
22"""
23
24else:
25 DEFAULTRULE = 'default: $(GENCODEDIR) lib$(HELPERLIB)$(SO) $(TARGET)'
fd4ff3bf 26 OTHERINSTALLTARGETS = 'installLibDemo installHelpers '
5148fc8e
RD
27
28
29 OTHERRULES = """
30lib$(HELPERLIB)$(SO) : helpers.o libpy.o
31 $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
32
33installHelpers: $(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
45installLibDemo:
a35c9761 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; \\
fd4ff3bf
RD
58 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
59 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR); \\
5148fc8e
RD
60 fi
61
62
63dist: tgz rpm
64
65tgz:
66 cd ../..; wxPython/distrib/maketgz $(VERSION)
67
68rpm:
69 cd ../distrib; ./makerpm $(VERSION)
70
71
72
73"""
74
75
76
77
78