misc win32 fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -92,13 +92,22 @@
|
|||||||
<!-- =============================================================== -->
|
<!-- =============================================================== -->
|
||||||
<!-- Where to store built libraries: -->
|
<!-- Where to store built libraries: -->
|
||||||
<!-- =============================================================== -->
|
<!-- =============================================================== -->
|
||||||
|
|
||||||
<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'">
|
<if cond="FORMAT!='autoconf'">$(TOP_SRCDIR)lib$(DIRSEP)$(COMPILER)</if>
|
||||||
$(WXTOPDIR)lib$(DIRSEP)$(COMPILER)
|
|
||||||
</if>
|
|
||||||
</set>
|
</set>
|
||||||
|
|
||||||
|
<!-- =============================================================== -->
|
||||||
|
<!-- Templates for libs: -->
|
||||||
|
<!-- =============================================================== -->
|
||||||
|
|
||||||
|
<template id="anylib">
|
||||||
|
<depends cond="FORMAT!='autoconf' and BUILDING_LIB=='1'">setup.h</depends>
|
||||||
|
<dirname>$(LIBDIRNAME)</dirname>
|
||||||
|
<install-to>$(LIBDIR)</install-to>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<!-- =============================================================== -->
|
<!-- =============================================================== -->
|
||||||
<!-- 3rd party libs: -->
|
<!-- 3rd party libs: -->
|
||||||
@@ -117,32 +126,35 @@
|
|||||||
<!-- Templates for wxWindows libs: -->
|
<!-- Templates for wxWindows libs: -->
|
||||||
<!-- =============================================================== -->
|
<!-- =============================================================== -->
|
||||||
|
|
||||||
<set var="WXTOPDIR"></set>
|
|
||||||
|
|
||||||
<template id="wx">
|
<template id="wx">
|
||||||
<set var="wxid">$(wxwin.mk_wxid(id))</set>
|
<set var="wxid">$(wxwin.mk_wxid(id))</set>
|
||||||
<define>__WX$(TOOLKIT)__</define>
|
<define>__WX$(TOOLKIT)__</define>
|
||||||
<define>$(WXUNIV_DEFINE)</define>
|
<define>$(WXUNIV_DEFINE)</define>
|
||||||
<include>$(SRCDIR)/$(WXTOPDIR)include</include>
|
<include>$(TOP_SRCDIR)include</include>
|
||||||
<lib-path>$(LIBDIRNAME)</lib-path>
|
<lib-path>$(LIBDIRNAME)</lib-path>
|
||||||
|
<include cond="FORMAT!='autoconf'">$(LIBDIRNAME)</include>
|
||||||
|
<include>$(INC_TIFF)</include>
|
||||||
|
<include>$(INC_JPEG)</include>
|
||||||
|
<include>$(INC_PNG)</include>
|
||||||
|
<include>$(INC_ZLIB)</include>
|
||||||
|
<include>$(INC_ODBC)</include>
|
||||||
|
<include>$(INC_REGEX)</include>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template id="wx_append">
|
<template id="wx_append">
|
||||||
<ldflags>$(EXTRALIBS)</ldflags>
|
<ldflags>$(EXTRALIBS)</ldflags>
|
||||||
<!-- link against builtin 3rd party libs, if needed: -->
|
<!-- link against builtin 3rd party libs, if needed: -->
|
||||||
|
<sys-lib>$(LIB_TIFF)</sys-lib>
|
||||||
<sys-lib>$(LIB_JPEG)</sys-lib>
|
<sys-lib>$(LIB_JPEG)</sys-lib>
|
||||||
<sys-lib>$(LIB_PNG)</sys-lib>
|
<sys-lib>$(LIB_PNG)</sys-lib>
|
||||||
<sys-lib>$(LIB_ZLIB)</sys-lib>
|
<sys-lib>$(LIB_ZLIB)</sys-lib>
|
||||||
<sys-lib>$(LIB_TIFF)</sys-lib>
|
|
||||||
<sys-lib>$(LIB_ODBC)</sys-lib>
|
<sys-lib>$(LIB_ODBC)</sys-lib>
|
||||||
<sys-lib>$(LIB_REGEX)</sys-lib>
|
<sys-lib>$(LIB_REGEX)</sys-lib>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template id="wx_lib_b" template="wx">
|
<template id="wx_lib_b" template="wx,anylib">
|
||||||
<set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set>
|
<set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set>
|
||||||
<dirname>$(LIBDIRNAME)</dirname>
|
|
||||||
<libname>$(WXLIBNAME)</libname>
|
<libname>$(WXLIBNAME)</libname>
|
||||||
<install-to>$(LIBDIR)</install-to>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template id="wx_dll_b" template="wx_lib_b">
|
<template id="wx_dll_b" template="wx_lib_b">
|
||||||
|
@@ -55,6 +55,7 @@
|
|||||||
<option name="TOOLKIT_VERSION"/>
|
<option name="TOOLKIT_VERSION"/>
|
||||||
<option name="EXTRALIBS"/>
|
<option name="EXTRALIBS"/>
|
||||||
<option name="SAMPLES_RPATH_FLAG"/>
|
<option name="SAMPLES_RPATH_FLAG"/>
|
||||||
|
<set var="TOP_SRCDIR">$(top_srcdir)/</set>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|
||||||
@@ -63,6 +64,8 @@
|
|||||||
<!-- ================================================================== -->
|
<!-- ================================================================== -->
|
||||||
|
|
||||||
<if cond="FORMAT!='autoconf'">
|
<if cond="FORMAT!='autoconf'">
|
||||||
|
<set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
|
||||||
|
|
||||||
<set var="TOOLKIT">MSW</set>
|
<set var="TOOLKIT">MSW</set>
|
||||||
<set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set>
|
<set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set>
|
||||||
<set var="TOOLKIT_VERSION"/>
|
<set var="TOOLKIT_VERSION"/>
|
||||||
@@ -70,6 +73,7 @@
|
|||||||
<option name="EXTRALIBS"/>
|
<option name="EXTRALIBS"/>
|
||||||
|
|
||||||
<set var="SRCDIR">..</set>
|
<set var="SRCDIR">..</set>
|
||||||
|
<set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
|
||||||
<set var="BUILDDIR">objs_$(COMPILER)</set>
|
<set var="BUILDDIR">objs_$(COMPILER)</set>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user