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