]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/build.cfg
added patch for _(v)snprintf protos in stdio.h
[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',
b1462dfa 8 'image.i', 'printfw.i', 'sizers.i', 'clip_dnd.i'
5148fc8e
RD
9 ]
10
2f90df85 11PYFILES = ['__init__.py', '__version__.py']
5148fc8e 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)
2f90df85 24
f0261a72
RD
25__version__.py: ../distrib/build.py build.cfg
26 echo ver = '$(VERSION)' > __version__.py
2f90df85 27
5148fc8e
RD
28"""
29
30else:
31 DEFAULTRULE = 'default: $(GENCODEDIR) lib$(HELPERLIB)$(SO) $(TARGET)'
fd4ff3bf 32 OTHERINSTALLTARGETS = 'installLibDemo installHelpers '
efc5f224 33 OTHERUNINSTALLTARGETS = 'uninstallLibDemo uninstallHelpers '
5148fc8e
RD
34
35
36 OTHERRULES = """
37lib$(HELPERLIB)$(SO) : helpers.o libpy.o
38 $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
39
efc5f224 40
5148fc8e
RD
41installHelpers: $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
42
efc5f224 43
5148fc8e
RD
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
54installLibDemo:
a35c9761 55 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
5148fc8e
RD
56 mkdir $(TARGETDIR)/lib; \\
57 mkdir $(TARGETDIR)/lib/sizers; \\
58 mkdir $(TARGETDIR)/demo; \\
59 mkdir $(TARGETDIR)/demo/bitmaps; \\
134d79dc 60 mkdir $(TARGETDIR)/demo/data; \\
5148fc8e
RD
61 cp ../lib/*.py $(TARGETDIR)/lib; \\
62 cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
63 cp ../demo/*.py $(TARGETDIR)/demo; \\
64 cp ../lib/*.txt $(TARGETDIR)/lib; \\
65 cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \\
66 cp ../demo/*.txt $(TARGETDIR)/demo; \\
67 cp ../demo/bitmaps/[a-z]* $(TARGETDIR)/demo/bitmaps; \\
134d79dc 68 cp ../demo/data/[a-z]* $(TARGETDIR)/demo/data; \\
fd4ff3bf
RD
69 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
70 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR); \\
5148fc8e
RD
71 fi
72
73
efc5f224
RD
74
75uninstallLibDemo:
76 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
77 rm -rf $(TARGETDIR)/lib; \\
78 rm -rf $(TARGETDIR)/demo; \\
79 fi
80
81
82uninstallHelpers:
83 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
84
85
f0261a72
RD
86__version__.py: ../distrib/build.py build.cfg
87 echo ver = \\'$(VERSION)\\' > __version__.py
88
2f90df85 89
efc5f224
RD
90#----------------------------------------------------------------------
91
5148fc8e
RD
92dist: tgz rpm
93
94tgz:
95 cd ../..; wxPython/distrib/maketgz $(VERSION)
96
97rpm:
98 cd ../distrib; ./makerpm $(VERSION)
99
100
101
102"""
103
104
105
106
107
2f90df85 108OTHERRULES = OTHERRULES + """
2f90df85
RD
109
110$(GENCODEDIR)/wx.py : _extras.py
111
112"""