From 328f5196bbe6a5e8507ee21f0ef08d011102f185 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 26 Oct 2003 20:45:27 +0000 Subject: [PATCH] added C++BuilderX support (disabled by default) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- build/bakefiles/Bakefiles.bkgen | 62 +++++++++++++++-- build/bakefiles/common.bkl | 14 ++-- build/bakefiles/config.bkl | 20 ++++++ build/bakefiles/formats/FORMATS.bkmanifest | 9 +++ build/bakefiles/formats/README | 1 + build/bakefiles/formats/__fake.bkl | 10 +++ build/bakefiles/formats/cbx_unix.bkl | 21 ++++++ build/bakefiles/formats/cbx_unix.empy | 77 ++++++++++++++++++++++ 8 files changed, 203 insertions(+), 11 deletions(-) create mode 100644 build/bakefiles/formats/cbx_unix.bkl create mode 100644 build/bakefiles/formats/cbx_unix.empy diff --git a/build/bakefiles/Bakefiles.bkgen b/build/bakefiles/Bakefiles.bkgen index a93cd7ddd2..0bd1f2b165 100644 --- a/build/bakefiles/Bakefiles.bkgen +++ b/build/bakefiles/Bakefiles.bkgen @@ -3,6 +3,30 @@ + + + dmars,cbx_unix,cbuilderx + + wx.bkl @@ -23,14 +47,28 @@ - autoconf,borland,mingw,msvc,msvc6prj,watcom + + autoconf,borland,dmars,mingw,msvc,msvc6prj,watcom,cbuilderx,cbx_unix + - autoconf,msvc6prj - msvc6prj - msvc6prj - msvc6prj - msvc6prj - msvc6prj + + autoconf,msvc6prj,cbuilderx,cbx_unix + + + msvc6prj,cbuilderx,cbx_unix + + + msvc6prj,cbuilderx,cbx_unix + + + msvc6prj,cbuilderx,cbx_unix + + + msvc6prj,cbuilderx,cbx_unix + + + msvc6prj,cbuilderx,cbx_unix + @@ -59,9 +97,19 @@ -o../msw/wx.dsw + + -o../../wx.cbx + -o../../contrib/src/$(INPUT_FILE_BASENAME_NOEXT)/Makefile.in + + -o../../contrib/src/$(INPUT_FILE_BASENAME_NOEXT)/$(INPUT_FILE_BASENAME_NOEXT)Unix.cbx + + + + -o../../contrib/src/$(INPUT_FILE_BASENAME_NOEXT)/$(INPUT_FILE_BASENAME_NOEXT).cbx + -DSRCDIR=../../src/$(INPUT_FILE_BASENAME_NOEXT) diff --git a/build/bakefiles/common.bkl b/build/bakefiles/common.bkl index bd4ac24a21..36fb51ee46 100644 --- a/build/bakefiles/common.bkl +++ b/build/bakefiles/common.bkl @@ -157,7 +157,13 @@ $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) - $(COMPILER)_$(CFG_NAME_PART) + + $(COMPILER)_$(CFG_NAME_PART) + + build_cbx_$(CFG_NAME_PART) + + $(OBJS) @@ -295,10 +301,10 @@ $(UNICOWS_LIB) - + ole2w32 - + kernel32 user32 gdi32 @@ -315,7 +321,7 @@ advapi32 wsock32 - + oleacc diff --git a/build/bakefiles/config.bkl b/build/bakefiles/config.bkl index 7ed5d13dfb..c936f48f3b 100644 --- a/build/bakefiles/config.bkl +++ b/build/bakefiles/config.bkl @@ -243,6 +243,13 @@ Set the version of your Mingw installation here. $(GCCFLAGS) -DHAVE_W32API_H + + + -DHAVE_W32API_H + + + + @@ -262,6 +269,19 @@ Set the version of your Mingw installation here. + + + 0 + 1 + . + $(SRCDIR)/$(WXTOPDIR) + 0 + + + diff --git a/build/bakefiles/formats/FORMATS.bkmanifest b/build/bakefiles/formats/FORMATS.bkmanifest index 006dedd3bd..7e380ffe6a 100644 --- a/build/bakefiles/formats/FORMATS.bkmanifest +++ b/build/bakefiles/formats/FORMATS.bkmanifest @@ -15,5 +15,14 @@ xxx.spec + + + + C++BuilderX projects for Unix (use configure) + + + $(os.path.splitext(os.path.basename(INPUT_FILE))[0])Unix.cbx + + diff --git a/build/bakefiles/formats/README b/build/bakefiles/formats/README index d21a6a4f9b..039ed338fc 100644 --- a/build/bakefiles/formats/README +++ b/build/bakefiles/formats/README @@ -3,3 +3,4 @@ This directory contains misc Bakefile backends that are wxWindows-specific: wx24dsp - generates wx2.4-compatible VC++ project file (src/wxWindows.dsp) rpmspec - generates part of .spec files with list of wxBase headers +cbx_unix - Borland C++BuilderX project files for configure-based build diff --git a/build/bakefiles/formats/__fake.bkl b/build/bakefiles/formats/__fake.bkl index 704b4dd37f..21ab4a6d93 100644 --- a/build/bakefiles/formats/__fake.bkl +++ b/build/bakefiles/formats/__fake.bkl @@ -12,6 +12,11 @@ makefiles, e.g. wx24dsp or rpmspec ones. + + + @@ -49,6 +54,11 @@ makefiles, e.g. wx24dsp or rpmspec ones. + + + + + diff --git a/build/bakefiles/formats/cbx_unix.bkl b/build/bakefiles/formats/cbx_unix.bkl new file mode 100644 index 0000000000..6707e61a04 --- /dev/null +++ b/build/bakefiles/formats/cbx_unix.bkl @@ -0,0 +1,21 @@ + + + + + + + vc + + + + fake + + + + exe + + + + type + + diff --git a/build/bakefiles/formats/cbx_unix.empy b/build/bakefiles/formats/cbx_unix.empy new file mode 100644 index 0000000000..b9309a1930 --- /dev/null +++ b/build/bakefiles/formats/cbx_unix.empy @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@{ +ALL_EXES = [x for x in targets if x.type=='exe'] +if len(ALL_EXES) == 1: + DEFAULT_EXE = 0 +else: + DEFAULT_EXE = -1 +}@ + +@[for i in range(0,len(ALL_EXES))]@ + + + + + + +@[end for]@ + + + + + + + -- 2.45.2