]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/build.cfg
fixed interpretation of <font size>: was always relative to current size, now conform...
[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
694759cf
RD
25dbg:
26 cd ..\distrib
27 makedbg.bat $(VERSION)
28
29dev:
30 cd ..\distrib
31 makedev.bat $(VERSION)
32
f0261a72
RD
33__version__.py: ../distrib/build.py build.cfg
34 echo ver = '$(VERSION)' > __version__.py
2f90df85 35
5148fc8e
RD
36"""
37
38else:
39 DEFAULTRULE = 'default: $(GENCODEDIR) lib$(HELPERLIB)$(SO) $(TARGET)'
fd4ff3bf 40 OTHERINSTALLTARGETS = 'installLibDemo installHelpers '
efc5f224 41 OTHERUNINSTALLTARGETS = 'uninstallLibDemo uninstallHelpers '
5148fc8e
RD
42
43
44 OTHERRULES = """
45lib$(HELPERLIB)$(SO) : helpers.o libpy.o
46 $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
47
efc5f224 48
5148fc8e
RD
49installHelpers: $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
50
efc5f224 51
5148fc8e
RD
52$(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) : lib$(HELPERLIB)$(SO)
53 cp $< $@
54 @echo ---------------------------------------------------------
55 @echo You may have to run ldconfig, or set an environment
56 @echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
57 @echo to be found at runtime. See your man pages for ld.so or
58 @echo equivalent.
59 @echo ---------------------------------------------------------
60
61
62installLibDemo:
a35c9761 63 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
5148fc8e
RD
64 mkdir $(TARGETDIR)/lib; \\
65 mkdir $(TARGETDIR)/lib/sizers; \\
66 mkdir $(TARGETDIR)/demo; \\
67 mkdir $(TARGETDIR)/demo/bitmaps; \\
134d79dc 68 mkdir $(TARGETDIR)/demo/data; \\
5148fc8e
RD
69 cp ../lib/*.py $(TARGETDIR)/lib; \\
70 cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
71 cp ../demo/*.py $(TARGETDIR)/demo; \\
72 cp ../lib/*.txt $(TARGETDIR)/lib; \\
73 cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \\
74 cp ../demo/*.txt $(TARGETDIR)/demo; \\
6230a84f
RD
75 cp ../demo/bitmaps/* $(TARGETDIR)/demo/bitmaps; \\
76 cp ../demo/data/* $(TARGETDIR)/demo/data; \\
fd4ff3bf
RD
77 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
78 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR); \\
5148fc8e
RD
79 fi
80
81
efc5f224
RD
82
83uninstallLibDemo:
84 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
85 rm -rf $(TARGETDIR)/lib; \\
86 rm -rf $(TARGETDIR)/demo; \\
87 fi
88
89
90uninstallHelpers:
91 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
92
93
f0261a72
RD
94__version__.py: ../distrib/build.py build.cfg
95 echo ver = \\'$(VERSION)\\' > __version__.py
96
2f90df85 97
efc5f224
RD
98#----------------------------------------------------------------------
99
5148fc8e
RD
100dist: tgz rpm
101
102tgz:
103 cd ../..; wxPython/distrib/maketgz $(VERSION)
104
105rpm:
106 cd ../distrib; ./makerpm $(VERSION)
107
108
109
110"""
111
112
113
114
115
2f90df85 116OTHERRULES = OTHERRULES + """
2f90df85
RD
117
118$(GENCODEDIR)/wx.py : _extras.py
119
120"""