Files
wxWidgets/wxPython/src/build.cfg
Bryan Petty f6bcfd974e merged 2.2 branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-15 19:51:35 +00:00

154 lines
4.7 KiB
Python

# -*- python -*-
import sys
MODULE = 'wxc'
SWIGFILES = ['wx.i', 'windows.i', 'windows2.i', 'windows3.i', 'events.i',
'misc.i', 'misc2.i', 'utils.i', 'gdi.i', 'mdi.i', 'controls.i',
'controls2.i', 'cmndlgs.i', 'stattool.i', 'frames.i',
'image.i', 'printfw.i', 'sizers.i', 'clip_dnd.i', 'grid.i',
'html.i', 'htmlhelp.i', 'calendar.i'
]
PYFILES = ['__init__.py', '__version__.py']
SWIGDEPS = '_defs.i my_typemaps.i'
OTHERDEPS = 'helpers.h'
if sys.platform == 'win32':
RESFILE = 1
SOURCES = ['helpers.cpp', 'libpy.c']
LIBS = '$(PYTHONLIB)'
OTHERRULES = """
dist:
cd ..
distrib\zipit.bat $(VERSION)
dbg:
cd ..\distrib
makedbg.bat $(VERSION)
dev:
cd ..\distrib
makedev.bat $(VERSION)
__version__.py: ../distrib/build.py build.cfg
echo ver = '$(VERSION)' > __version__.py
"""
else:
DEFAULTRULE = 'default: $(GENCODEDIR) helperlib $(TARGET) $(BUILDDIR)/$(TARGET) bldpycfiles'
OTHERINSTALLTARGETS = 'installLib installDemo installHelpers '
OTHERUNINSTALLTARGETS = 'uninstallLib uninstallDemo uninstallHelpers '
OTHERCFLAGS = '`gtk-config --cflags`'
OTHERRULES = """
HELPERLIBNAME = lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER).0.0
helperlib: $(HELPERLIBNAME)
$(HELPERLIBNAME) : helpers.o libpy.o
$(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
ln -s $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER)
ln -s $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO)
ln -s $(HELPERLIBNAME) lib$(HELPERLIB)$(SO)
installHelpers: $(HELPERLIBDIR)/$(HELPERLIBNAME)
$(HELPERLIBDIR)/$(HELPERLIBNAME) : $(HELPERLIBNAME)
cp $(HELPERLIBNAME) $(HELPERLIBDIR)
cd $(HELPERLIBDIR); \
ln -sf $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER); \
ln -sf $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO); \
ln -sf $(HELPERLIBNAME) lib$(HELPERLIB)$(SO)
@echo ---------------------------------------------------------
@echo You may have to run ldconfig, or set an environment
@echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
@echo to be found at runtime. See your man pages for ld.so or
@echo equivalent.
@echo ---------------------------------------------------------
installLib:
mkdir $(TARGETDIR)/lib; \\
mkdir $(TARGETDIR)/lib/sizers; \\
mkdir $(TARGETDIR)/lib/editor; \\
cp ../wxPython/lib/*.py $(TARGETDIR)/lib; \\
cp ../wxPython/lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
cp ../wxPython/lib/editor/*.py $(TARGETDIR)/lib/editor; \\
cp ../wxPython/lib/*.txt $(TARGETDIR)/lib; \\
cp ../wxPython/lib/sizers/*.txt $(TARGETDIR)/lib/sizers;\\
cp ../wxPython/lib/editor/*.txt $(TARGETDIR)/lib/editor;\\
$(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
$(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR);
installDemo:
mkdir $(TARGETDIR)/demo; \\
mkdir $(TARGETDIR)/demo/bitmaps; \\
mkdir $(TARGETDIR)/demo/data; \\
cp ../demo/*.py $(TARGETDIR)/demo; \\
cp ../demo/*.xml $(TARGETDIR)/demo; \\
cp ../demo/*.txt $(TARGETDIR)/demo; \\
cp ../demo/bitmaps/*.bmp $(TARGETDIR)/demo/bitmaps; \\
cp ../demo/bitmaps/*.ico $(TARGETDIR)/demo/bitmaps; \\
cp ../demo/bitmaps/*.gif $(TARGETDIR)/demo/bitmaps; \\
cp ../demo/bitmaps/*.png $(TARGETDIR)/demo/bitmaps; \\
cp ../demo/bitmaps/*.jpg $(TARGETDIR)/demo/bitmaps; \\
cp ../demo/data/*.png $(TARGETDIR)/demo/data; \\
cp ../demo/data/*.htm $(TARGETDIR)/demo/data; \\
cp ../demo/data/*.bmp $(TARGETDIR)/demo/data; \\
cp ../demo/data/*.txt $(TARGETDIR)/demo/data; \\
cp ../demo/data/*.i $(TARGETDIR)/demo/data; \\
cp ../demo/data/*.h $(TARGETDIR)/demo/data; \\
echo "(1,0)" > $(TARGETDIR)/demo/data/showTips; \\
chmod 666 $(TARGETDIR)/demo/data/showTips; \\
$(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR)/demo;\\
$(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR)/demo;
uninstallLib:
rm -rf $(TARGETDIR)/lib;
uninstallDemo:
rm -rf $(TARGETDIR)/demo;
uninstallHelpers:
rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
rm -f $(HELPERLIBDIR)/$(HELPERLIBNAME)
rm -f $(HELPERLIBDIR)/lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER)
rm -f $(HELPERLIBDIR)/lib$(HELPERLIB).$(MAJVER)$(SO)
rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
__version__.py: ../distrib/build.py build.cfg
echo ver = \\'$(VERSION)\\' > __version__.py
#----------------------------------------------------------------------
dist: tgz rpm
tgz:
cd ..; distrib/maketgz $(VERSION)
rpm:
cd ../distrib; ./makerpm $(VERSION)
"""
OTHERRULES = OTHERRULES + """
$(GENCODEDIR)/wx.py : _extras.py
$(GENCODEDIR)/grid.py : _gridextras.py
$(GENCODEDIR)/html.py : _htmlextras.py
$(GENCODEDIR)/calendar.py : _calextras.py
"""