making windows compilation work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,8 +43,8 @@
|
|||||||
</set>
|
</set>
|
||||||
|
|
||||||
<set var="VENDORTAG">
|
<set var="VENDORTAG">
|
||||||
<if cond="OFFICIAL_BUILD=='1'"></if>
|
<if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if>
|
||||||
<if cond="OFFICIAL_BUILD=='0'">_$(VENDOR)</if>
|
<if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)</if>
|
||||||
</set>
|
</set>
|
||||||
|
|
||||||
<set var="WXDEBUGFLAG">
|
<set var="WXDEBUGFLAG">
|
||||||
@@ -114,14 +114,30 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- =============================================================== -->
|
<!-- =============================================================== -->
|
||||||
<!-- Where to store built libraries: -->
|
<!-- Where to store built libraries and objects: -->
|
||||||
<!-- =============================================================== -->
|
<!-- =============================================================== -->
|
||||||
|
|
||||||
|
|
||||||
|
<if cond="FORMAT!='autoconf'">
|
||||||
|
<set var="WXDLLFLAG">
|
||||||
|
<if cond="SHARED=='1'">dll</if>
|
||||||
|
</set>
|
||||||
|
<set var="CFG_NAME_PART">
|
||||||
|
$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
|
||||||
|
</set>
|
||||||
|
<set var="OBJS" make_var="1">objs_$(COMPILER)_$(CFG_NAME_PART)</set>
|
||||||
|
<set var="BUILDDIR">$(OBJS)</set>
|
||||||
|
</if>
|
||||||
|
$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-$(WXVER_MAJOR).$(WXVER_MINOR)
|
||||||
|
|
||||||
<set var="LIBDIRNAME">
|
<set var="LIBDIRNAME">
|
||||||
<if cond="FORMAT=='autoconf'">$(top_builddir)lib</if>
|
<if cond="FORMAT=='autoconf'">$(top_builddir)lib</if>
|
||||||
<if cond="FORMAT!='autoconf'">$(TOP_SRCDIR)lib$(DIRSEP)$(COMPILER)</if>
|
<if cond="FORMAT!='autoconf'">
|
||||||
|
$(TOP_SRCDIR)lib$(DIRSEP)$(COMPILER)_$(CFG_NAME_PART)
|
||||||
|
</if>
|
||||||
</set>
|
</set>
|
||||||
|
|
||||||
|
|
||||||
<!-- =============================================================== -->
|
<!-- =============================================================== -->
|
||||||
<!-- Templates for libs: -->
|
<!-- Templates for libs: -->
|
||||||
<!-- =============================================================== -->
|
<!-- =============================================================== -->
|
||||||
|
@@ -61,6 +61,15 @@
|
|||||||
</description>
|
</description>
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
|
<option name="CFG">
|
||||||
|
<default-value></default-value>
|
||||||
|
<description>
|
||||||
|
Name of your custom configuration. This affects directory
|
||||||
|
where object files are stored as well as the location of
|
||||||
|
compiled .lib files and setup.h under the lib/ toplevel directory.
|
||||||
|
</description>
|
||||||
|
</option>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ================================================================== -->
|
<!-- ================================================================== -->
|
||||||
@@ -96,7 +105,6 @@
|
|||||||
<if cond="BUILDING_LIB=='0'">.</if>
|
<if cond="BUILDING_LIB=='0'">.</if>
|
||||||
</set>
|
</set>
|
||||||
<set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
|
<set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
|
||||||
<set var="BUILDDIR">objs_$(COMPILER)</set>
|
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
</makefile>
|
</makefile>
|
||||||
|
@@ -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):
|
def mk_wxid(id):
|
||||||
"""Creates wxWindows library identifier from bakefile target ID that
|
"""Creates wxWindows library identifier from bakefile target ID that
|
||||||
follows this convention: DLLs end with 'dll', static libraries
|
follows this convention: DLLs end with 'dll', static libraries
|
||||||
|
Reference in New Issue
Block a user