From cff5df9f18b1e9010baa3f4048cc48b000e8e4ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 30 Jun 2003 21:41:29 +0000 Subject: [PATCH] making windows compilation work git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- build/bakefiles/common.bkl | 24 ++++++++++++++++++++---- build/bakefiles/config.bkl | 10 +++++++++- build/bakefiles/wxwin.py | 11 +++++++++++ 3 files changed, 40 insertions(+), 5 deletions(-) diff --git a/build/bakefiles/common.bkl b/build/bakefiles/common.bkl index d046fd6a58..fd09757a59 100644 --- a/build/bakefiles/common.bkl +++ b/build/bakefiles/common.bkl @@ -43,8 +43,8 @@ - - _$(VENDOR) + + _$(VENDOR) @@ -114,13 +114,29 @@ - + + + + + dll + + + $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) + + objs_$(COMPILER)_$(CFG_NAME_PART) + $(OBJS) + + $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-$(WXVER_MAJOR).$(WXVER_MINOR) + $(top_builddir)lib - $(TOP_SRCDIR)lib$(DIRSEP)$(COMPILER) + + $(TOP_SRCDIR)lib$(DIRSEP)$(COMPILER)_$(CFG_NAME_PART) + + diff --git a/build/bakefiles/config.bkl b/build/bakefiles/config.bkl index 72ac723d29..c7bcbd6d4d 100644 --- a/build/bakefiles/config.bkl +++ b/build/bakefiles/config.bkl @@ -60,6 +60,15 @@ Use this to name your customized DLLs differently + + @@ -96,7 +105,6 @@ . $(SRCDIR)/$(WXTOPDIR) - objs_$(COMPILER) diff --git a/build/bakefiles/wxwin.py b/build/bakefiles/wxwin.py index f2e9b2fa75..1d83108f64 100644 --- a/build/bakefiles/wxwin.py +++ b/build/bakefiles/wxwin.py @@ -5,6 +5,17 @@ # +import utils + +# We use 'CFG' option in places where bakefile doesn't like it, so we must +# register a substitution function for it that provides additional knowledge +# about the option (in this case that it does not contain dir separators and +# so utils.nativePaths() doesn't have to do anything with it): +def __noopSubst(func, opt): + return '$(%s)' % opt.name +utils.addSubstituteCallback('CFG', __noopSubst) + + def mk_wxid(id): """Creates wxWindows library identifier from bakefile target ID that follows this convention: DLLs end with 'dll', static libraries