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