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