2003-06-23 15:50:43 -04:00
|
|
|
<?xml version="1.0" ?>
|
2003-06-24 18:05:29 -04:00
|
|
|
<!-- $Id$ -->
|
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<makefile>
|
2004-02-10 06:19:46 -05:00
|
|
|
|
2009-10-22 02:43:52 -04:00
|
|
|
<requires version="0.2.7"/>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- bakefile modules we need: -->
|
|
|
|
<using module="datafiles"/>
|
|
|
|
|
|
|
|
<!-- load python module with wxwindows helpers: -->
|
|
|
|
<using module="wxwin"/>
|
|
|
|
|
2004-10-31 23:57:21 -05:00
|
|
|
<!-- DFE: Add a platform meaning regular MacOS (not OS X) -->
|
|
|
|
<!-- FIXME: This will be handled in Bakefile but for now I wanted to
|
2004-11-04 13:31:20 -05:00
|
|
|
get my changes to the wx bakefiles in the tree but invisible to
|
|
|
|
windows toolkits and their config.xxx settings -->
|
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
|
|
<option name="PLATFORM_MACOS"/>
|
|
|
|
</if>
|
|
|
|
<if cond="FORMAT!='autoconf'">
|
|
|
|
<set var="PLATFORM_MACOS">0</set>
|
|
|
|
</if>
|
2004-10-31 23:57:21 -05:00
|
|
|
|
2005-03-04 02:18:47 -05:00
|
|
|
<!-- FIXME: PalmOS is another candidate to bakefiles -->
|
|
|
|
<set var="PLATFORM_PALMOS">0</set>
|
|
|
|
|
2007-11-25 06:14:40 -05:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<include file="config.bkl"/>
|
2004-02-01 13:31:54 -05:00
|
|
|
|
|
|
|
<include file="plugins_deps.bkl"/>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-07-25 08:38:48 -04:00
|
|
|
|
2005-06-29 17:53:53 -04:00
|
|
|
<!-- wxWidgets version numbers logic: -->
|
|
|
|
<include file="version.bkl"/>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- ================================================================== -->
|
|
|
|
<!-- Names of libraries and DLLs: -->
|
|
|
|
<!-- ================================================================== -->
|
|
|
|
|
|
|
|
<set var="PORTNAME">
|
|
|
|
<if cond="USE_GUI=='0'">base</if>
|
|
|
|
<if cond="USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)</if>
|
|
|
|
</set>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-07-05 17:08:03 -04:00
|
|
|
<set var="WXBASEPORT">
|
|
|
|
<if cond="TOOLKIT=='MAC'">_carbon</if>
|
|
|
|
</set>
|
2003-06-23 15:50:43 -04:00
|
|
|
|
|
|
|
<set var="COMPILERORGCC">
|
|
|
|
<if cond="isdefined('COMPILER')">$(COMPILER)</if>
|
|
|
|
<if cond="not isdefined('COMPILER')">gcc</if>
|
|
|
|
</set>
|
|
|
|
<set var="WXCOMPILER">
|
|
|
|
<if cond="PLATFORM_WIN32=='1'">_$(COMPILERORGCC)</if>
|
|
|
|
</set>
|
2003-06-28 20:03:46 -04:00
|
|
|
|
|
|
|
<set var="VENDORTAG">
|
2003-06-30 17:41:29 -04:00
|
|
|
<if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if>
|
|
|
|
<if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)</if>
|
2003-06-28 20:03:46 -04:00
|
|
|
</set>
|
|
|
|
|
2009-09-12 07:29:11 -04:00
|
|
|
<!-- debug suffix used for Windows libraries which use debug CRT -->
|
2003-06-23 15:50:43 -04:00
|
|
|
<set var="WXDEBUGFLAG">
|
2009-09-12 07:29:11 -04:00
|
|
|
<if cond="BUILD=='debug' and DEBUG_RUNTIME_LIBS=='default'">d</if>
|
|
|
|
<if cond="DEBUG_RUNTIME_LIBS=='1'">d</if>
|
2003-06-23 15:50:43 -04:00
|
|
|
</set>
|
|
|
|
<set var="WXUNICODEFLAG">
|
2004-04-01 15:20:57 -05:00
|
|
|
<!-- WinCE is Unicode-only platform: -->
|
|
|
|
<if cond="UNICODE=='1' and FORMAT!='msevc4prj'">u</if>
|
2003-06-23 15:50:43 -04:00
|
|
|
</set>
|
2009-09-12 07:29:11 -04:00
|
|
|
<set var="WX_U_D_SUFFIX">
|
|
|
|
$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
|
|
|
</set>
|
2003-06-23 15:50:43 -04:00
|
|
|
<set var="WXNAMESUFFIX">
|
2009-09-12 07:29:11 -04:00
|
|
|
$(WX_U_D_SUFFIX)$(WX_LIB_FLAVOUR)
|
2003-06-23 15:50:43 -04:00
|
|
|
</set>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<set var="WXUNIVNAME">
|
|
|
|
<if cond="WXUNIV=='1'">univ</if>
|
|
|
|
</set>
|
|
|
|
<set var="WXUNIV_DEFINE">
|
|
|
|
<if cond="WXUNIV=='1'">__WXUNIVERSAL__</if>
|
|
|
|
</set>
|
|
|
|
|
2003-06-27 15:22:12 -04:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
2003-07-05 17:08:03 -04:00
|
|
|
<set var="WXNAMEPREFIX">wx_base$(WXBASEPORT)</set>
|
2003-06-27 15:22:12 -04:00
|
|
|
<set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set>
|
2004-09-26 04:46:55 -04:00
|
|
|
<set var="WXVERSIONTAG">-$(WX_RELEASE)</set>
|
2003-06-27 15:22:12 -04:00
|
|
|
</if>
|
|
|
|
<if cond="FORMAT!='autoconf'">
|
2003-07-05 17:08:03 -04:00
|
|
|
<set var="WXNAMEPREFIX">
|
2004-09-26 04:46:55 -04:00
|
|
|
wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)
|
2003-07-05 17:08:03 -04:00
|
|
|
</set>
|
|
|
|
<set var="WXNAMEPREFIXGUI">
|
2004-09-26 04:46:55 -04:00
|
|
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)</set>
|
2003-06-27 15:22:12 -04:00
|
|
|
<set var="WXVERSIONTAG"></set>
|
|
|
|
</if>
|
2003-06-28 20:03:46 -04:00
|
|
|
<set var="WXDLLNAMEPREFIX">
|
2003-07-05 17:08:03 -04:00
|
|
|
<if cond="PLATFORM_WIN32=='1'">
|
2003-07-25 08:38:48 -04:00
|
|
|
wxbase$(WXBASEPORT)$(WXWIN32DLLVERSION)
|
2003-07-05 17:08:03 -04:00
|
|
|
</if>
|
2003-06-28 20:03:46 -04:00
|
|
|
<if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)</if>
|
|
|
|
</set>
|
|
|
|
<set var="WXDLLNAMEPREFIXGUI">
|
|
|
|
<if cond="PLATFORM_WIN32=='1'">
|
2003-07-25 08:38:48 -04:00
|
|
|
wx$(PORTNAME)$(WXUNIVNAME)$(WXWIN32DLLVERSION)
|
2003-06-28 20:03:46 -04:00
|
|
|
</if>
|
|
|
|
<if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIXGUI)</if>
|
|
|
|
</set>
|
|
|
|
<set var="WXDLLVERSIONTAG">
|
|
|
|
<if cond="PLATFORM_WIN32=='1'"></if>
|
|
|
|
<if cond="PLATFORM_WIN32=='0'">$(WXVERSIONTAG)</if>
|
|
|
|
</set>
|
2003-06-23 15:50:43 -04:00
|
|
|
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Names of component libraries: -->
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
2003-06-25 12:29:51 -04:00
|
|
|
<set var="WXLIB_BASE">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if>
|
|
|
|
</set>
|
2003-07-27 18:41:06 -04:00
|
|
|
<set var="WXLIB_NET">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))</if>
|
|
|
|
</set>
|
2005-03-20 19:11:06 -05:00
|
|
|
<set var="WXLIB_QA">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('qa')))</if>
|
|
|
|
</set>
|
2003-06-23 15:50:43 -04:00
|
|
|
<set var="WXLIB_CORE">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if>
|
|
|
|
</set>
|
2003-08-01 21:07:39 -04:00
|
|
|
<set var="WXLIB_ADV">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('adv')))</if>
|
|
|
|
</set>
|
2004-11-11 00:30:21 -05:00
|
|
|
<set var="WXLIB_MEDIA">
|
2006-03-07 10:01:59 -05:00
|
|
|
<if cond="MONOLITHIC=='0' and USE_MEDIA=='1'">$(mk.evalExpr(wxwin.mkLibName('media')))</if>
|
2004-11-11 00:30:21 -05:00
|
|
|
</set>
|
2003-06-25 07:00:44 -04:00
|
|
|
<set var="WXLIB_HTML">
|
2003-06-25 12:29:51 -04:00
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))</if>
|
2003-06-25 07:00:44 -04:00
|
|
|
</set>
|
2003-07-20 18:00:40 -04:00
|
|
|
<set var="WXLIB_XML">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))</if>
|
|
|
|
</set>
|
2004-09-21 06:11:43 -04:00
|
|
|
<set var="WXLIB_XRC">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xrc')))</if>
|
|
|
|
</set>
|
2006-06-06 09:12:07 -04:00
|
|
|
<set var="WXLIB_AUI">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('aui')))</if>
|
|
|
|
</set>
|
2009-09-16 08:06:02 -04:00
|
|
|
<set var="WXLIB_RIBBON">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('ribbon')))</if>
|
|
|
|
</set>
|
2008-09-12 16:57:41 -04:00
|
|
|
<set var="WXLIB_PROPGRID">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('propgrid')))</if>
|
|
|
|
</set>
|
2006-06-29 03:16:39 -04:00
|
|
|
<set var="WXLIB_RICHTEXT">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('richtext')))</if>
|
|
|
|
</set>
|
2007-04-05 02:27:23 -04:00
|
|
|
<set var="WXLIB_STC">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('stc')))</if>
|
|
|
|
</set>
|
2011-08-19 06:45:16 -04:00
|
|
|
<set var="WXLIB_WEBVIEW">
|
2011-10-30 10:19:59 -04:00
|
|
|
<if cond="MONOLITHIC=='0' and USE_WEBVIEW=='1'">$(mk.evalExpr(wxwin.mkLibName('webview')))</if>
|
2011-05-04 11:40:00 -04:00
|
|
|
</set>
|
2003-06-23 15:50:43 -04:00
|
|
|
<set var="WXLIB_MONO">
|
|
|
|
<if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if>
|
|
|
|
</set>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- =============================================================== -->
|
2003-06-30 17:41:29 -04:00
|
|
|
<!-- Where to store built libraries and objects: -->
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- =============================================================== -->
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2004-04-01 15:20:57 -05:00
|
|
|
<set var="DIR_SUFFIX_CPU">
|
|
|
|
<if cond="FORMAT=='msevc4prj'">_$(CPU)</if>
|
2005-11-30 15:13:48 -05:00
|
|
|
<if cond="TARGET_CPU=='amd64'">_amd64</if>
|
2005-10-16 16:25:10 -04:00
|
|
|
<if cond="TARGET_CPU=='AMD64'">_amd64</if>
|
2005-11-30 15:13:48 -05:00
|
|
|
<if cond="TARGET_CPU=='ia64'">_ia64</if>
|
2005-10-16 16:25:10 -04:00
|
|
|
<if cond="TARGET_CPU=='IA64'">_ia64</if>
|
2004-04-01 15:20:57 -05:00
|
|
|
</set>
|
2003-06-30 17:41:29 -04:00
|
|
|
|
|
|
|
<if cond="FORMAT!='autoconf'">
|
|
|
|
<set var="WXDLLFLAG">
|
|
|
|
<if cond="SHARED=='1'">dll</if>
|
|
|
|
</set>
|
|
|
|
<set var="CFG_NAME_PART">
|
2009-09-12 07:29:11 -04:00
|
|
|
$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)$(WXDLLFLAG)$(CFG)
|
2003-06-30 17:41:29 -04:00
|
|
|
</set>
|
2007-05-15 08:48:26 -04:00
|
|
|
|
2011-03-22 10:17:38 -04:00
|
|
|
<!-- NB: this is make_var so that it can be overridden on command line
|
2007-05-15 08:48:26 -04:00
|
|
|
like this: nmake -f makefile.vc COMPILER_PREFIX=vc6 -->
|
|
|
|
<set var="COMPILER_PREFIX" make_var="1">$(COMPILER)</set>
|
|
|
|
|
2003-10-26 15:45:27 -05:00
|
|
|
<set var="OBJS" make_var="1">
|
2007-05-15 08:48:26 -04:00
|
|
|
$(COMPILER_PREFIX)_$(CFG_NAME_PART)$(DIR_SUFFIX_CPU)
|
2003-10-26 15:45:27 -05:00
|
|
|
</set>
|
|
|
|
|
2003-06-30 17:41:29 -04:00
|
|
|
<set var="BUILDDIR">$(OBJS)</set>
|
|
|
|
</if>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2005-01-17 08:02:12 -05:00
|
|
|
<set var="LIBTYPE_SUFFIX" make_var="1">
|
2005-07-22 08:44:44 -04:00
|
|
|
<if cond="FORMAT!='autoconf' and SHARED=='0' and PLATFORM_WIN32=='1'">lib</if>
|
|
|
|
<if cond="FORMAT!='autoconf' and SHARED=='1' and PLATFORM_WIN32=='1'">dll</if>
|
|
|
|
<if cond="FORMAT=='watcom' and SHARED=='0' and PLATFORM_WIN32=='0'">$(TOOLKIT_LOWERCASE)_lib</if>
|
|
|
|
<if cond="FORMAT=='watcom' and SHARED=='1' and PLATFORM_WIN32=='0'">$(TOOLKIT_LOWERCASE)_dll</if>
|
2005-01-17 08:02:12 -05:00
|
|
|
</set>
|
|
|
|
|
2003-07-27 05:50:55 -04:00
|
|
|
<set var="LIBDIRNAME" make_var="1">
|
2006-11-04 12:08:49 -05:00
|
|
|
<if cond="FORMAT=='autoconf'">$(wx_top_builddir)/lib</if>
|
2005-01-17 08:02:12 -05:00
|
|
|
<if cond="FORMAT!='autoconf'">
|
2007-05-15 08:48:26 -04:00
|
|
|
$(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
|
2003-06-30 17:41:29 -04:00
|
|
|
</if>
|
2003-06-23 15:50:43 -04:00
|
|
|
</set>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-08-15 17:20:32 -04:00
|
|
|
<if cond="FORMAT!='autoconf'">
|
|
|
|
<set var="SETUPHDIR" make_var="1">
|
2009-09-12 07:29:11 -04:00
|
|
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)
|
2003-08-15 17:20:32 -04:00
|
|
|
</set>
|
|
|
|
</if>
|
2003-06-30 17:41:29 -04:00
|
|
|
|
2004-11-04 13:31:20 -05:00
|
|
|
|
|
|
|
|
2003-06-27 09:47:59 -04:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Templates for libs: -->
|
|
|
|
<!-- =============================================================== -->
|
2003-06-27 15:22:12 -04:00
|
|
|
|
2003-08-01 09:33:02 -04:00
|
|
|
<set var="DEBUGINFO">
|
|
|
|
<if cond="BUILD=='debug' and DEBUG_INFO=='default'">on</if>
|
|
|
|
<if cond="DEBUG_INFO=='1'">on</if>
|
|
|
|
<if cond="BUILD=='release' and DEBUG_INFO=='default'">off</if>
|
|
|
|
<if cond="DEBUG_INFO=='0'">off</if>
|
|
|
|
</set>
|
|
|
|
<set var="DEBUGRUNTIME">
|
2005-04-16 09:16:06 -04:00
|
|
|
<if cond="DEBUG_RUNTIME_LIBS=='default' and BUILD=='debug'">on</if>
|
|
|
|
<if cond="DEBUG_RUNTIME_LIBS=='default' and BUILD=='release'">off</if>
|
2003-08-01 09:33:02 -04:00
|
|
|
<if cond="DEBUG_RUNTIME_LIBS=='0'">off</if>
|
|
|
|
<if cond="DEBUG_RUNTIME_LIBS=='1'">on</if>
|
2003-06-27 15:22:12 -04:00
|
|
|
</set>
|
|
|
|
<set var="OPTIMIZEFLAG">
|
2003-06-27 19:24:12 -04:00
|
|
|
<if cond="BUILD=='debug'">off</if>
|
|
|
|
<if cond="BUILD=='release'">speed</if>
|
2003-06-27 15:22:12 -04:00
|
|
|
</set>
|
2003-09-18 18:46:53 -04:00
|
|
|
<set var="EXCEPTIONSFLAG">
|
|
|
|
<if cond="USE_EXCEPTIONS=='1'">on</if>
|
|
|
|
<if cond="USE_EXCEPTIONS=='0'">off</if>
|
|
|
|
</set>
|
2005-02-20 09:14:08 -05:00
|
|
|
<set var="RTTIFLAG">
|
|
|
|
<if cond="USE_RTTI=='1'">on</if>
|
|
|
|
<if cond="USE_RTTI=='0'">off</if>
|
|
|
|
</set>
|
2005-02-20 08:22:24 -05:00
|
|
|
<set var="THREADSFLAG">
|
|
|
|
<if cond="USE_THREADS=='1'">multi</if>
|
|
|
|
<if cond="USE_THREADS=='0'">single</if>
|
|
|
|
</set>
|
2003-07-01 09:26:33 -04:00
|
|
|
|
2005-03-20 17:08:19 -05:00
|
|
|
<set var="RTTI_DEFINE">
|
2005-07-21 13:44:06 -04:00
|
|
|
<if cond="USE_RTTI=='0'">wxNO_RTTI</if>
|
2005-03-20 17:08:19 -05:00
|
|
|
</set>
|
|
|
|
<set var="EXCEPTIONS_DEFINE">
|
2005-07-21 13:44:06 -04:00
|
|
|
<if cond="USE_EXCEPTIONS=='0'">wxNO_EXCEPTIONS</if>
|
2005-03-20 17:08:19 -05:00
|
|
|
</set>
|
|
|
|
<set var="THREAD_DEFINE">
|
2005-07-21 13:44:06 -04:00
|
|
|
<if cond="USE_THREADS=='0'">wxNO_THREADS</if>
|
2005-03-20 17:08:19 -05:00
|
|
|
</set>
|
|
|
|
|
2003-07-01 09:26:33 -04:00
|
|
|
<set var="DEBUG_DEFINE">
|
2009-09-12 07:29:11 -04:00
|
|
|
<if cond="DEBUG_FLAG=='0'">wxDEBUG_LEVEL=0</if>
|
2003-07-01 09:26:33 -04:00
|
|
|
</set>
|
2009-12-15 10:38:05 -05:00
|
|
|
<set var="NDEBUG_DEFINE">
|
|
|
|
<if cond="FORMAT!='autoconf' and DEBUG_RUNTIME_LIBS=='default' and BUILD=='release'">NDEBUG</if>
|
|
|
|
<if cond="FORMAT!='autoconf' and DEBUG_RUNTIME_LIBS=='0'">NDEBUG</if>
|
|
|
|
</set>
|
|
|
|
|
2003-09-12 18:34:06 -04:00
|
|
|
<!-- does not cover all cases, but better than nothing -->
|
|
|
|
<set var="NO_VC_CRTDBG">
|
|
|
|
<if cond="FORMAT=='msvc' and BUILD=='debug' and DEBUG_RUNTIME_LIBS=='0'">__NO_VC_CRTDBG__</if>
|
|
|
|
<if cond="FORMAT=='msvc' and BUILD=='release' and DEBUG_FLAG=='1'">__NO_VC_CRTDBG__</if>
|
|
|
|
</set>
|
2003-07-01 09:26:33 -04:00
|
|
|
<set var="UNICODE_DEFINE">
|
2003-08-27 14:09:15 -04:00
|
|
|
<if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if>
|
2007-11-22 10:29:51 -05:00
|
|
|
<if cond="FORMAT!='autoconf' and UNICODE=='0'">wxUSE_UNICODE=0</if>
|
2003-07-01 09:26:33 -04:00
|
|
|
</set>
|
2005-07-29 20:17:24 -04:00
|
|
|
<set var="MSLU_DEFINE">
|
2005-07-29 20:22:40 -04:00
|
|
|
<if cond="FORMAT!='autoconf' and MSLU=='1'">wxUSE_UNICODE_MSLU=1</if>
|
2005-07-29 20:17:24 -04:00
|
|
|
</set>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2005-01-25 07:22:56 -05:00
|
|
|
<!-- fill for the specific case of the format/compiler -->
|
|
|
|
<set var="WIN32_WINNT">
|
|
|
|
<if cond="FORMAT=='dmars' or FORMAT=='dmars_smake'">_WIN32_WINNT=0x0400</if>
|
|
|
|
</set>
|
|
|
|
|
2003-08-08 07:49:35 -04:00
|
|
|
<set var="UNICOWS_LIB">
|
|
|
|
<if cond="MSLU=='1'">unicows</if>
|
|
|
|
</set>
|
2009-11-18 14:22:58 -05:00
|
|
|
<set var="CAIRO_LIB">
|
|
|
|
<if cond="USE_CAIRO=='1'">cairo</if>
|
|
|
|
</set>
|
|
|
|
<set var="CAIRO_LIBDIR">
|
|
|
|
<if cond="USE_CAIRO=='1'">$(DOLLAR)(CAIRO_ROOT)/lib</if>
|
|
|
|
</set>
|
|
|
|
<set var="CAIRO_INCLUDEDIR">
|
|
|
|
<if cond="USE_CAIRO=='1'">$(DOLLAR)(CAIRO_ROOT)/include/cairo</if>
|
|
|
|
</set>
|
2006-10-05 18:45:17 -04:00
|
|
|
|
2005-10-16 16:25:10 -04:00
|
|
|
<set var="LINK_TARGET_CPU">
|
2009-12-08 11:36:37 -05:00
|
|
|
<if cond="TARGET_CPU=='amd64'">/MACHINE:X64</if>
|
|
|
|
<if cond="TARGET_CPU=='AMD64'">/MACHINE:X64</if>
|
2005-11-30 15:13:48 -05:00
|
|
|
<if cond="TARGET_CPU=='ia64'">/MACHINE:IA64</if>
|
2005-10-16 16:25:10 -04:00
|
|
|
<if cond="TARGET_CPU=='IA64'">/MACHINE:IA64</if>
|
|
|
|
</set>
|
|
|
|
|
2003-07-05 10:25:35 -04:00
|
|
|
<template id="common_settings">
|
2003-08-01 09:33:02 -04:00
|
|
|
<debug-info>$(DEBUGINFO)</debug-info>
|
|
|
|
<debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs>
|
2003-07-05 10:19:41 -04:00
|
|
|
<optimize>$(OPTIMIZEFLAG)</optimize>
|
2005-02-20 08:22:24 -05:00
|
|
|
<threading>$(THREADSFLAG)</threading>
|
2003-07-14 16:28:04 -04:00
|
|
|
<runtime-libs>$(RUNTIME_LIBS)</runtime-libs>
|
2005-02-20 09:14:08 -05:00
|
|
|
<cxx-rtti>$(RTTIFLAG)</cxx-rtti>
|
2003-09-18 18:46:53 -04:00
|
|
|
<cxx-exceptions>$(EXCEPTIONSFLAG)</cxx-exceptions>
|
2003-07-05 10:19:41 -04:00
|
|
|
<if cond="FORMAT!='autoconf'">
|
|
|
|
<cppflags>$(EXTRACFLAGS)</cppflags>
|
|
|
|
</if>
|
2003-09-12 18:34:06 -04:00
|
|
|
<define>$(NO_VC_CRTDBG)</define>
|
2005-01-25 07:22:56 -05:00
|
|
|
<define>$(WIN32_WINNT)</define>
|
2005-10-16 16:25:10 -04:00
|
|
|
<if cond="FORMAT=='msvc'">
|
|
|
|
<ldflags>$(LINK_TARGET_CPU)</ldflags>
|
|
|
|
</if>
|
2006-05-20 17:32:34 -04:00
|
|
|
<include cond="FORMAT=='msevc4prj'">$(TOP_SRCDIR)build/wince/missing</include>
|
2003-07-05 10:19:41 -04:00
|
|
|
</template>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-06-27 09:47:59 -04:00
|
|
|
<template id="anylib">
|
|
|
|
<dirname>$(LIBDIRNAME)</dirname>
|
|
|
|
<install-to>$(LIBDIR)</install-to>
|
|
|
|
</template>
|
|
|
|
|
2003-07-05 10:25:35 -04:00
|
|
|
<template id="3rdparty_lib" template="common_settings,anylib">
|
2004-09-26 04:46:55 -04:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
2009-09-12 07:29:11 -04:00
|
|
|
<libname>$(id)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)</libname>
|
2004-09-26 04:46:55 -04:00
|
|
|
</if>
|
|
|
|
<if cond="FORMAT!='autoconf'">
|
2004-10-08 07:20:24 -04:00
|
|
|
<libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname>
|
2004-09-26 04:46:55 -04:00
|
|
|
</if>
|
2003-08-10 07:54:20 -04:00
|
|
|
<!--
|
|
|
|
we want to install 3rd party libs system-wide only with static
|
2004-05-23 10:56:36 -04:00
|
|
|
version of wxWidgets; otherwise they are embedded in shared libs:
|
2003-08-10 07:54:20 -04:00
|
|
|
-->
|
|
|
|
<install-if>SHARED=='0'</install-if>
|
2004-04-01 15:20:57 -05:00
|
|
|
<pic>$(substituteFromDict(SHARED, {'0':'off', '1':'on'}))</pic>
|
2009-09-18 12:15:54 -04:00
|
|
|
|
|
|
|
<!--
|
|
|
|
we don't want to have asserts in the 3rd party libraries code,
|
|
|
|
neither we nor wx users are interested in debugging them anyhow
|
|
|
|
-->
|
|
|
|
<define>NDEBUG</define>
|
2009-11-30 19:42:19 -05:00
|
|
|
|
|
|
|
<if cond="IS_MSVC">
|
|
|
|
<!--
|
|
|
|
we're not interested in deprecation warnings about the use of
|
|
|
|
standard C functions in the 3rd party libraries (these warnings
|
|
|
|
are only given by VC8+ but it's simpler to just always define
|
|
|
|
this symbol which disables them, even for previous VC versions)
|
|
|
|
-->
|
|
|
|
<define>_CRT_SECURE_NO_WARNINGS</define>
|
|
|
|
</if>
|
2003-06-27 17:29:07 -04:00
|
|
|
</template>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
|
|
|
|
2004-02-01 17:41:33 -05:00
|
|
|
<!-- deal with the need to copy setup.h here: -->
|
2003-06-27 17:29:07 -04:00
|
|
|
|
2004-02-01 17:41:33 -05:00
|
|
|
<define-tag name="msvc-headers" rules="dll,lib">
|
2004-04-01 15:20:57 -05:00
|
|
|
<if cond="IS_MSVC_PRJ">
|
2006-11-19 08:24:05 -05:00
|
|
|
<msvc-project-files>
|
|
|
|
$(addPrefixToList('include\\', wxwin.headersOnly(value)))
|
|
|
|
</msvc-project-files>
|
2004-02-01 17:41:33 -05:00
|
|
|
</if>
|
|
|
|
</define-tag>
|
|
|
|
|
2005-08-08 09:34:42 -04:00
|
|
|
<set var="msvc_copy_setup_h_script">
|
2011-02-13 12:09:33 -05:00
|
|
|
<if cond="IS_MSVC_PRJ=='1' and FORMAT not in ['msvc6prj','msevc4prj']">
|
|
|
|
Creating $(SETUPHDIR)\wx\setup.h
|
|
|
|
InputPath=..\..\include\wx\%s
|
|
|
|
|
|
|
|
"$(SETUPHDIR)\wx\setup.h" :
|
|
|
|
$(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
|
|
|
|
</if>
|
|
|
|
<if cond="IS_MSVC_PRJ=='1' and FORMAT in ['msvc6prj','msevc4prj']">
|
2004-02-01 17:41:33 -05:00
|
|
|
Creating $(SETUPHDIR)\wx\setup.h
|
2007-01-26 07:41:04 -05:00
|
|
|
InputPath=..\..\include\wx\%s
|
2004-02-01 17:41:33 -05:00
|
|
|
|
|
|
|
"$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
|
|
|
|
$(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
|
2005-08-08 09:34:42 -04:00
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
|
|
|
|
<define-tag name="msvc-headers-setup-h" rules="dll,lib">
|
|
|
|
<if cond="IS_MSVC_PRJ">
|
|
|
|
<msvc-headers>
|
|
|
|
$(addPrefixToList('wx/', value))
|
|
|
|
</msvc-headers>
|
|
|
|
<set var="_custom_build_files" append="1">
|
|
|
|
$(nativePaths(addPrefixToList('include/wx/', value)))
|
2004-02-01 17:41:33 -05:00
|
|
|
</set>
|
|
|
|
</if>
|
|
|
|
</define-tag>
|
|
|
|
|
2005-08-08 09:34:42 -04:00
|
|
|
<define-tag name="msvc-copy-setup-h" rules="dll,lib">
|
|
|
|
<if cond="IS_MSVC_PRJ">
|
|
|
|
<if cond="FORMAT=='msevc4prj'">
|
|
|
|
<msvc-headers-setup-h>
|
|
|
|
msw/wince/setup.h
|
|
|
|
</msvc-headers-setup-h>
|
|
|
|
<set var="_custom_build_include_wx_msw_wince_setup_h">
|
|
|
|
$(msvc_copy_setup_h_script % 'msw\wince\setup.h')
|
|
|
|
</set>
|
|
|
|
</if>
|
|
|
|
<if cond="FORMAT!='msevc4prj'">
|
|
|
|
<msvc-headers-setup-h>
|
|
|
|
msw/setup.h
|
|
|
|
univ/setup.h
|
|
|
|
</msvc-headers-setup-h>
|
|
|
|
<set var="_custom_build_include_wx_msw_setup_h">
|
|
|
|
<if cond="WXUNIV=='0'">
|
|
|
|
$(msvc_copy_setup_h_script % 'msw\setup.h')
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
<set var="_custom_build_include_wx_univ_setup_h">
|
|
|
|
<if cond="WXUNIV=='1'">
|
|
|
|
$(msvc_copy_setup_h_script % 'univ\setup.h')
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</define-tag>
|
|
|
|
|
2005-11-08 17:49:46 -05:00
|
|
|
<define-tag name="msvc-create-rcdefs-h" rules="dll,lib">
|
|
|
|
<if cond="IS_MSVC_PRJ">
|
|
|
|
<msvc-headers-setup-h>
|
|
|
|
msw/genrcdefs.h
|
|
|
|
</msvc-headers-setup-h>
|
2005-11-08 18:17:24 -05:00
|
|
|
<!-- FIXME: we need another way to get the compiler name -->
|
2005-11-08 17:49:46 -05:00
|
|
|
<set var="VC_COMPILER">
|
|
|
|
<if cond="FORMAT=='msevc4prj'">$(_COMPILER)</if>
|
|
|
|
<if cond="FORMAT!='msevc4prj'">cl</if>
|
|
|
|
</set>
|
|
|
|
<set var="_custom_build_include_wx_msw_genrcdefs_h">
|
|
|
|
Creating $(SETUPHDIR)\wx\msw\rcdefs.h
|
2007-01-26 07:41:04 -05:00
|
|
|
InputPath=..\..\include\wx\msw\genrcdefs.h
|
2005-11-08 17:49:46 -05:00
|
|
|
|
2007-01-17 03:40:56 -05:00
|
|
|
"$(SETUPHDIR)\wx\msw\rcdefs.h" : "$(DOLLAR)(SOURCE)" "$(SETUPHDIR)\wx\msw"
|
2005-11-08 17:49:46 -05:00
|
|
|
$(TAB)$(VC_COMPILER) /EP /nologo "$(DOLLAR)(InputPath)" > "$(SETUPHDIR)\wx\msw\rcdefs.h"
|
|
|
|
</set>
|
|
|
|
</if>
|
|
|
|
</define-tag>
|
|
|
|
|
2004-02-01 17:41:33 -05:00
|
|
|
<template id="msvc_setup_h">
|
|
|
|
<msvc-copy-setup-h/>
|
2005-11-08 17:49:46 -05:00
|
|
|
<msvc-create-rcdefs-h/>
|
2004-02-01 17:41:33 -05:00
|
|
|
</template>
|
2003-06-23 15:50:43 -04:00
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- 3rd party libs: -->
|
|
|
|
<!-- =============================================================== -->
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- 3rd party libraries: -->
|
|
|
|
<include file="regex.bkl"/>
|
|
|
|
<include file="zlib.bkl"/>
|
|
|
|
<include file="png.bkl"/>
|
|
|
|
<include file="jpeg.bkl"/>
|
|
|
|
<include file="tiff.bkl"/>
|
2003-07-20 18:00:40 -04:00
|
|
|
<include file="expat.bkl"/>
|
2007-04-05 02:27:23 -04:00
|
|
|
<include file="scintilla.bkl"/>
|
2003-06-23 15:50:43 -04:00
|
|
|
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- =============================================================== -->
|
2004-05-23 10:56:36 -04:00
|
|
|
<!-- Templates for wxWidgets libs: -->
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- =============================================================== -->
|
2003-06-27 15:22:12 -04:00
|
|
|
|
2004-10-15 17:05:02 -04:00
|
|
|
<!-- NB: in monolithic build, even wxBase-only must be linked against
|
|
|
|
GUI extralibs, otherwise there would be unresolved references.
|
|
|
|
The variables below are defined so that all libs are used
|
|
|
|
in monolithic build, but not in multilib one. -->
|
|
|
|
<set var="EXTRALIBS_FOR_BASE">
|
2011-12-25 08:28:01 -05:00
|
|
|
<if cond="MONOLITHIC=='1'">$(EXTRALIBS) $(EXTRALIBS_XML) $(EXTRALIBS_GUI)</if>
|
2004-10-15 17:05:02 -04:00
|
|
|
<if cond="MONOLITHIC=='0'">$(EXTRALIBS)</if>
|
|
|
|
</set>
|
|
|
|
<set var="EXTRALIBS_FOR_GUI">
|
|
|
|
<if cond="MONOLITHIC=='1'"></if>
|
|
|
|
<if cond="MONOLITHIC=='0'">$(EXTRALIBS_GUI)</if>
|
|
|
|
</set>
|
|
|
|
|
2006-01-08 18:58:18 -05:00
|
|
|
<if cond="TOOLKIT=='MGL' and FORMAT=='watcom'">
|
|
|
|
<set var="MGLLIBPATH">$(DOLLAR)(%SCITECH)/lib/$(BUILD)/dos32/ow10</set>
|
|
|
|
<set var="MGLPMLIBPATH">
|
|
|
|
<if cond="DOS32=='DOS4GW'">dos4gw</if>
|
|
|
|
</set>
|
|
|
|
</if>
|
|
|
|
|
2003-07-05 10:25:35 -04:00
|
|
|
<template id="wx" template="common_settings">
|
2003-06-23 15:50:43 -04:00
|
|
|
<set var="wxid">$(wxwin.mk_wxid(id))</set>
|
|
|
|
<define>__WX$(TOOLKIT)__</define>
|
|
|
|
<define>$(WXUNIV_DEFINE)</define>
|
2003-07-01 09:26:33 -04:00
|
|
|
<define>$(DEBUG_DEFINE)</define>
|
2009-12-15 10:38:05 -05:00
|
|
|
<define>$(NDEBUG_DEFINE)</define>
|
2005-03-20 17:08:19 -05:00
|
|
|
<define>$(EXCEPTIONS_DEFINE)</define>
|
|
|
|
<define>$(RTTI_DEFINE)</define>
|
|
|
|
<define>$(THREAD_DEFINE)</define>
|
2003-07-01 09:26:33 -04:00
|
|
|
<define>$(UNICODE_DEFINE)</define>
|
2005-07-29 20:17:24 -04:00
|
|
|
<define>$(MSLU_DEFINE)</define>
|
2005-11-08 17:49:46 -05:00
|
|
|
<include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
|
2003-11-26 06:03:41 -05:00
|
|
|
<include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include>
|
2009-11-18 14:22:58 -05:00
|
|
|
<include cond="FORMAT!='autoconf'">$(CAIRO_INCLUDEDIR)</include>
|
2004-11-04 13:31:20 -05:00
|
|
|
<lib-path>$(LIBDIRNAME)</lib-path>
|
2006-01-08 18:58:18 -05:00
|
|
|
<if cond="TOOLKIT=='MGL' and FORMAT=='watcom'">
|
|
|
|
<lib-path>$(MGLLIBPATH)</lib-path>
|
|
|
|
<lib-path>$(MGLLIBPATH)/$(MGLPMLIBPATH)</lib-path>
|
|
|
|
</if>
|
2007-04-14 15:05:45 -04:00
|
|
|
|
2003-09-09 16:12:38 -04:00
|
|
|
<warnings>max</warnings>
|
2007-04-14 15:05:45 -04:00
|
|
|
<cxxflags cond="FORMAT=='autoconf'">$(CXXWARNINGS)</cxxflags>
|
2004-11-10 14:06:24 -05:00
|
|
|
<cppflags-watcom>
|
|
|
|
-wcd=549 <!-- 'sizeof' operand contains compiler generated information -->
|
|
|
|
-wcd=656 <!-- define this function inside its class definition (may improve code quality) -->
|
|
|
|
-wcd=657 <!-- define this function inside its class definition (could have improved code quality) -->
|
|
|
|
-wcd=667 <!-- 'va_start' macro will not work without an argument before '...' -->
|
|
|
|
</cppflags-watcom>
|
2005-01-18 11:31:17 -05:00
|
|
|
<cxxflags-mingw>
|
2004-12-12 06:55:37 -05:00
|
|
|
-Wno-ctor-dtor-privacy <!-- only defines a private destructor and has no friends -->
|
2005-01-18 11:31:17 -05:00
|
|
|
</cxxflags-mingw>
|
2003-06-23 15:50:43 -04:00
|
|
|
</template>
|
|
|
|
|
2003-07-06 14:55:09 -04:00
|
|
|
<!-- for both GUI and wxBase libs/samples: -->
|
2003-07-19 12:26:36 -04:00
|
|
|
<template id="wx_append_base_nomono">
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- link against builtin 3rd party libs, if needed: -->
|
|
|
|
<sys-lib>$(LIB_ZLIB)</sys-lib>
|
|
|
|
<sys-lib>$(LIB_REGEX)</sys-lib>
|
2003-07-20 18:00:40 -04:00
|
|
|
<sys-lib>$(LIB_EXPAT)</sys-lib>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2004-10-15 17:05:02 -04:00
|
|
|
<ldlibs>$(EXTRALIBS_FOR_BASE)</ldlibs>
|
2003-07-01 09:26:33 -04:00
|
|
|
|
2005-07-22 08:44:44 -04:00
|
|
|
<!-- system libraries on os2: -->
|
|
|
|
<if cond="FORMAT!='autoconf' and PLATFORM_OS2=='1'">
|
|
|
|
<if cond="FORMAT=='watcom'">
|
|
|
|
<sys-lib>upm32</sys-lib>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
2006-01-08 18:58:18 -05:00
|
|
|
<!-- system libraries on mgl: -->
|
|
|
|
<if cond="FORMAT=='watcom' and TOOLKIT=='MGL'">
|
|
|
|
<sys-lib>mgl</sys-lib>
|
|
|
|
<sys-lib>mglcpp</sys-lib>
|
|
|
|
<sys-lib>pm</sys-lib>
|
|
|
|
</if>
|
|
|
|
|
2003-07-01 09:26:33 -04:00
|
|
|
<!-- system libraries on windows: -->
|
2005-07-22 08:44:44 -04:00
|
|
|
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
|
2003-08-08 07:49:35 -04:00
|
|
|
<sys-lib>$(UNICOWS_LIB)</sys-lib>
|
2009-11-18 14:22:58 -05:00
|
|
|
<sys-lib>$(CAIRO_LIB)</sys-lib>
|
|
|
|
<lib-path>$(CAIRO_LIBDIR)</lib-path>
|
2003-10-26 15:45:27 -05:00
|
|
|
<if cond="FORMAT=='borland'">
|
2003-07-02 18:29:29 -04:00
|
|
|
<sys-lib>ole2w32</sys-lib>
|
|
|
|
</if>
|
2004-04-03 15:50:12 -05:00
|
|
|
<if cond="FORMAT=='msevc4prj'">
|
|
|
|
<sys-lib>ole32</sys-lib>
|
|
|
|
<sys-lib>oleaut32</sys-lib>
|
|
|
|
<sys-lib>uuid</sys-lib>
|
|
|
|
<sys-lib>commctrl</sys-lib>
|
|
|
|
<sys-lib>winsock</sys-lib>
|
|
|
|
<sys-lib>wininet</sys-lib>
|
|
|
|
</if>
|
|
|
|
<if cond="FORMAT!='borland' and FORMAT!='msevc4prj'">
|
2003-07-02 18:29:29 -04:00
|
|
|
<sys-lib>kernel32</sys-lib>
|
|
|
|
<sys-lib>user32</sys-lib>
|
|
|
|
<sys-lib>gdi32</sys-lib>
|
|
|
|
<sys-lib>comdlg32</sys-lib>
|
|
|
|
<sys-lib>winspool</sys-lib>
|
|
|
|
<sys-lib>winmm</sys-lib>
|
|
|
|
<sys-lib>shell32</sys-lib>
|
|
|
|
<sys-lib>comctl32</sys-lib>
|
|
|
|
<sys-lib>ole32</sys-lib>
|
|
|
|
<sys-lib>oleaut32</sys-lib>
|
|
|
|
<sys-lib>uuid</sys-lib>
|
|
|
|
<sys-lib>rpcrt4</sys-lib>
|
|
|
|
<sys-lib>advapi32</sys-lib>
|
|
|
|
<sys-lib>wsock32</sys-lib>
|
2009-01-15 08:33:51 -05:00
|
|
|
<!-- this one is only used if wxUSE_URL_NATIVE==1 but we don't
|
|
|
|
know if it is here so just add it unconditionally -->
|
|
|
|
<sys-lib>wininet</sys-lib>
|
2003-07-01 09:26:33 -04:00
|
|
|
</if>
|
2006-01-21 17:50:46 -05:00
|
|
|
<if cond="FORMAT=='borland'">
|
2003-09-11 15:22:18 -04:00
|
|
|
<sys-lib>oleacc</sys-lib>
|
|
|
|
</if>
|
2003-11-10 07:47:46 -05:00
|
|
|
</if>
|
2003-06-23 15:50:43 -04:00
|
|
|
</template>
|
|
|
|
|
2003-07-30 18:03:11 -04:00
|
|
|
|
2003-07-06 14:55:09 -04:00
|
|
|
<!-- for GUI libs/samples: -->
|
2006-04-23 12:38:47 -04:00
|
|
|
<template id="wx_append_nomono" template_append="wx_append_base_nomono">
|
|
|
|
<sys-lib>$(LIB_TIFF)</sys-lib>
|
|
|
|
<sys-lib>$(LIB_JPEG)</sys-lib>
|
|
|
|
<sys-lib>$(LIB_PNG)</sys-lib>
|
2004-10-15 17:05:02 -04:00
|
|
|
<ldlibs>$(EXTRALIBS_FOR_GUI)</ldlibs>
|
2003-07-06 14:55:09 -04:00
|
|
|
</template>
|
|
|
|
|
2011-02-05 15:25:09 -05:00
|
|
|
<set var="LIB_PNG_IF_MONO">
|
|
|
|
<if cond="MONOLITHIC=='1'">$(LIB_PNG)</if>
|
|
|
|
</set>
|
2003-07-19 12:26:36 -04:00
|
|
|
|
|
|
|
<template id="wx_append_base" template_append="wx_append_base_nomono">
|
2011-02-05 15:25:09 -05:00
|
|
|
<!-- Always link against the full wx library in monolithic build and
|
|
|
|
also against the PNG one as core code references it for Tango
|
|
|
|
icons and so it is pulled in even by the console programs. -->
|
2003-07-19 12:26:36 -04:00
|
|
|
<sys-lib>$(WXLIB_MONO)</sys-lib>
|
2011-02-05 15:25:09 -05:00
|
|
|
<sys-lib>$(LIB_PNG_IF_MONO)</sys-lib>
|
2003-07-19 12:26:36 -04:00
|
|
|
</template>
|
|
|
|
<template id="wx_append" template_append="wx_append_nomono">
|
|
|
|
<!-- Always link against the wxWin library in monolithic build: -->
|
|
|
|
<sys-lib>$(WXLIB_MONO)</sys-lib>
|
|
|
|
</template>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-07-19 12:26:36 -04:00
|
|
|
|
2003-07-25 05:04:09 -04:00
|
|
|
<set var="WX_DISABLE_PRECOMP_HEADERS" overwrite="0">0</set>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-06-27 09:47:59 -04:00
|
|
|
<template id="wx_lib_b" template="wx,anylib">
|
2003-06-23 15:50:43 -04:00
|
|
|
<set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set>
|
|
|
|
<libname>$(WXLIBNAME)</libname>
|
2003-07-02 18:29:29 -04:00
|
|
|
|
2007-06-15 11:08:51 -04:00
|
|
|
<define>WXBUILDING</define>
|
|
|
|
|
2003-07-25 05:04:09 -04:00
|
|
|
<if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
|
2006-05-31 08:10:38 -04:00
|
|
|
<if cond="FORMAT!='autoconf' and TOOLKIT in ['MSW','MGL','PM','WINCE']">
|
2006-05-31 07:48:45 -04:00
|
|
|
<sources>$(WXTOPDIR)src/common/dummy.cpp</sources>
|
2003-07-25 05:04:09 -04:00
|
|
|
<precomp-headers-gen>
|
2006-05-31 07:48:45 -04:00
|
|
|
$(WXTOPDIR)src/common/dummy.cpp
|
2003-07-25 05:04:09 -04:00
|
|
|
</precomp-headers-gen>
|
|
|
|
</if>
|
2005-02-09 05:56:07 -05:00
|
|
|
<precomp-headers-location>$(WXTOPDIR)include</precomp-headers-location>
|
2003-07-25 05:04:09 -04:00
|
|
|
<precomp-headers-header>wx/wxprec.h</precomp-headers-header>
|
|
|
|
<precomp-headers>on</precomp-headers>
|
|
|
|
<precomp-headers-file>wxprec_$(id)</precomp-headers-file>
|
2003-07-27 15:56:54 -04:00
|
|
|
<precomp-headers-exclude>
|
|
|
|
src/common/extended.c
|
|
|
|
</precomp-headers-exclude>
|
2003-07-02 18:29:29 -04:00
|
|
|
</if>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2004-04-22 04:26:14 -04:00
|
|
|
<if cond="IS_MSVC_PRJ=='1' and BUILDING_LIB=='1'">
|
2003-07-30 18:03:11 -04:00
|
|
|
<msvc-file-group>Common Sources:src/common/*</msvc-file-group>
|
|
|
|
<msvc-file-group>MSW Sources:src/msw/*</msvc-file-group>
|
|
|
|
<msvc-file-group>Generic Sources:src/generic/*</msvc-file-group>
|
|
|
|
<msvc-file-group>wxUniv Sources:src/univ/*</msvc-file-group>
|
|
|
|
<msvc-file-group>wxHTML Sources:src/html/*</msvc-file-group>
|
|
|
|
<msvc-file-group>Setup Headers:*/setup.h</msvc-file-group>
|
|
|
|
<msvc-file-group>MSW Headers:*wx/msw/*.h</msvc-file-group>
|
|
|
|
<msvc-file-group>Generic Headers:*wx/generic/*.h</msvc-file-group>
|
|
|
|
<msvc-file-group>wxUniv Headers:*wx/univ/*.h</msvc-file-group>
|
|
|
|
<msvc-file-group>wxHTML Headers:*wx/html/*.h</msvc-file-group>
|
2003-08-08 08:20:30 -04:00
|
|
|
<msvc-file-group>Common Headers:*wx/*.h</msvc-file-group>
|
2003-07-30 18:03:11 -04:00
|
|
|
</if>
|
2003-06-23 15:50:43 -04:00
|
|
|
</template>
|
2003-07-02 18:29:29 -04:00
|
|
|
|
2005-11-08 17:49:46 -05:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
|
|
<set var="RCDEFDIR">
|
|
|
|
<if cond="TOOLKIT=='MSW'">
|
|
|
|
$(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</if>
|
|
|
|
|
2003-06-25 07:00:44 -04:00
|
|
|
<template id="wx_dll_b" template="wx_lib_b">
|
2003-06-23 15:50:43 -04:00
|
|
|
<set var="WXDLLNAME">$(wxwin.mkDllName(wxid))</set>
|
|
|
|
<dllname>$(WXDLLNAME)</dllname>
|
|
|
|
<version>$(WX_VERSION)</version>
|
|
|
|
<so_version>$(WXSOVERSION)</so_version>
|
2005-07-21 13:44:06 -04:00
|
|
|
|
2005-07-04 05:58:07 -04:00
|
|
|
<!-- FIXME: until libtool scheme is implemented in bakefile -->
|
|
|
|
<ldflags cond="FORMAT=='autoconf'">$(WXMACVERSION_CMD)</ldflags>
|
2005-02-27 07:03:11 -05:00
|
|
|
|
|
|
|
<!-- version info resources: -->
|
2006-11-19 08:24:05 -05:00
|
|
|
<res-define>WXDLLNAME=$(WXDLLNAME)</res-define>
|
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
|
|
<res-include>$(RCDEFDIR)</res-include>
|
|
|
|
<res-include>$(TOP_SRCDIR)include</res-include>
|
2009-03-15 12:07:56 -04:00
|
|
|
<postlink-command>$(DYLIB_RPATH_POSTLINK)</postlink-command>
|
2005-02-28 18:05:13 -05:00
|
|
|
</if>
|
2005-03-24 05:29:47 -05:00
|
|
|
<win32-res>$(WXTOPDIR)src/msw/version.rc</win32-res>
|
2009-03-15 12:07:56 -04:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
</template>
|
2003-06-24 19:52:06 -04:00
|
|
|
|
2004-11-18 03:14:18 -05:00
|
|
|
<template id="wx_3rdparty_dependencies_gui" cond="USE_GUI=='1'">
|
2003-07-27 15:56:54 -04:00
|
|
|
<depends>wxtiff</depends>
|
|
|
|
<depends>wxjpeg</depends>
|
|
|
|
<depends>wxpng</depends>
|
2007-05-03 05:32:58 -04:00
|
|
|
<depends>wxscintilla</depends>
|
2004-11-18 03:14:18 -05:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="wx_3rdparty_dependencies"
|
|
|
|
template="wx_3rdparty_dependencies_gui">
|
2003-07-27 05:50:55 -04:00
|
|
|
<depends>wxexpat</depends>
|
2003-07-06 14:55:09 -04:00
|
|
|
<depends>wxzlib</depends>
|
|
|
|
<depends>wxregex</depends>
|
|
|
|
</template>
|
2003-08-15 17:20:32 -04:00
|
|
|
|
2004-11-18 03:14:18 -05:00
|
|
|
<template id="wx_3rdparty_includes_gui" cond="USE_GUI=='1'">
|
2006-01-08 18:58:18 -05:00
|
|
|
<if cond="FORMAT=='watcom' and TOOLKIT=='MGL'">
|
|
|
|
<include>$(DOLLAR)(%SCITECH)/include</include>
|
|
|
|
</if>
|
2007-09-19 20:01:33 -04:00
|
|
|
<include>$(INC_TIFF_BUILD)</include>
|
2003-08-15 17:20:32 -04:00
|
|
|
<include>$(INC_TIFF)</include>
|
|
|
|
<include>$(INC_JPEG)</include>
|
|
|
|
<include>$(INC_PNG)</include>
|
2004-11-18 03:14:18 -05:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="wx_3rdparty_includes"
|
|
|
|
template="wx_3rdparty_includes_gui">
|
2003-08-15 17:20:32 -04:00
|
|
|
<include>$(INC_ZLIB)</include>
|
|
|
|
<include>$(INC_REGEX)</include>
|
|
|
|
<include>$(INC_EXPAT)</include>
|
|
|
|
</template>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-08-24 17:40:47 -04:00
|
|
|
<template id="wx_lib"
|
|
|
|
template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h"/>
|
|
|
|
<template id="wx_base_lib"
|
|
|
|
template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h">
|
2004-11-04 13:31:20 -05:00
|
|
|
<define>wxUSE_GUI=0</define>
|
2003-08-08 05:49:24 -04:00
|
|
|
</template>
|
|
|
|
|
2003-08-15 17:20:32 -04:00
|
|
|
<template id="wx_dll"
|
|
|
|
template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
|
2003-08-24 17:40:47 -04:00
|
|
|
template_append="msvc_setup_h,wx_append_nomono"/>
|
2003-08-15 17:20:32 -04:00
|
|
|
<template id="wx_base_dll"
|
|
|
|
template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
|
2003-08-24 17:40:47 -04:00
|
|
|
template_append="msvc_setup_h,wx_append_base_nomono">
|
2004-11-04 13:31:20 -05:00
|
|
|
<define>wxUSE_GUI=0</define>
|
2003-08-08 05:49:24 -04:00
|
|
|
</template>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-08-06 11:44:00 -04:00
|
|
|
<!-- =============================================================== -->
|
2004-05-23 10:56:36 -04:00
|
|
|
<!-- Templates for building wxWidgets plugins: -->
|
2003-08-06 11:44:00 -04:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
|
|
<if cond="WX_STABLE_BRANCH=='1'">
|
2004-02-01 13:31:54 -05:00
|
|
|
<set var="PLUGIN_VERSION0">
|
2004-09-26 04:46:55 -04:00
|
|
|
<if cond="PLATFORM_UNIX=='1'">$(WX_RELEASE)</if>
|
|
|
|
<if cond="PLATFORM_UNIX=='0'">$(WX_RELEASE_NODOT)</if>
|
2003-08-06 11:44:00 -04:00
|
|
|
</set>
|
|
|
|
</if>
|
|
|
|
<if cond="WX_STABLE_BRANCH=='0'">
|
2004-02-01 13:31:54 -05:00
|
|
|
<set var="PLUGIN_VERSION0">
|
2004-09-26 04:46:55 -04:00
|
|
|
<if cond="PLATFORM_UNIX=='1'">$(WX_VERSION)</if>
|
|
|
|
<if cond="PLATFORM_UNIX=='0'">$(WX_VERSION_NODOT)</if>
|
2003-08-06 11:44:00 -04:00
|
|
|
</set>
|
|
|
|
</if>
|
2004-02-01 13:31:54 -05:00
|
|
|
<set var="PLUGVERDELIM">
|
|
|
|
<if cond="PLATFORM_UNIX=='1'">-</if>
|
|
|
|
<if cond="PLATFORM_UNIX=='0'"></if>
|
|
|
|
</set>
|
|
|
|
<set var="PLUGIN_VERSION">$(PLUGVERDELIM)$(PLUGIN_VERSION0)</set>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2004-02-01 13:31:54 -05:00
|
|
|
<set var="PLUGINS_INST_DIR" make_var="1">
|
|
|
|
$(LIBDIR)/wx/$(PLUGIN_VERSION0)
|
|
|
|
</set>
|
2003-08-06 11:44:00 -04:00
|
|
|
|
|
|
|
<define-rule name="wx-base-plugin" extends="module">
|
|
|
|
<template>
|
|
|
|
<dllname>
|
2009-09-12 07:29:11 -04:00
|
|
|
$(id)$(WX_U_D_SUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
|
2003-08-06 11:44:00 -04:00
|
|
|
</dllname>
|
|
|
|
<define>WXUSINGDLL</define>
|
2003-08-08 05:49:24 -04:00
|
|
|
<define>wxUSE_GUI=0</define>
|
2004-02-01 13:31:54 -05:00
|
|
|
<install-to>$(PLUGINS_INST_DIR)</install-to>
|
2003-08-06 11:44:00 -04:00
|
|
|
</template>
|
|
|
|
</define-rule>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-08-06 11:44:00 -04:00
|
|
|
<define-rule name="wx-gui-plugin" extends="module">
|
|
|
|
<template template="wx">
|
|
|
|
<dllname>
|
2009-09-12 07:29:11 -04:00
|
|
|
$(id)_$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
|
2003-08-06 11:44:00 -04:00
|
|
|
</dllname>
|
|
|
|
<define>WXUSINGDLL</define>
|
2004-02-01 13:31:54 -05:00
|
|
|
<install-to>$(PLUGINS_INST_DIR)</install-to>
|
2003-08-06 11:44:00 -04:00
|
|
|
</template>
|
|
|
|
</define-rule>
|
2004-11-04 13:31:20 -05:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- =============================================================== -->
|
2007-11-18 17:12:23 -05:00
|
|
|
<!-- Support for wxWidgets samples: -->
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
|
|
<!-- Link against one wxWin library. Value must be literal! -->
|
2003-08-06 08:15:48 -04:00
|
|
|
<define-tag name="wx-lib" rules="exe,dll,module">
|
2003-06-23 15:50:43 -04:00
|
|
|
<sys-lib>$(wxwin.libToLink(value))</sys-lib>
|
2003-09-09 18:15:25 -04:00
|
|
|
<ldlibs>$(wxwin.extraLdflags(value))</ldlibs>
|
2007-11-18 16:54:54 -05:00
|
|
|
<!-- msvs200?prj formats don't support external dependencies yet: -->
|
2007-11-18 13:00:21 -05:00
|
|
|
<if cond="FORMAT in ['msvc6prj','msevc4prj'] and MONOLITHIC=='0'">
|
2003-08-14 12:18:41 -04:00
|
|
|
<depends-on-dsp>$(wxwin.makeDspDependency(value))</depends-on-dsp>
|
2003-08-13 17:22:50 -04:00
|
|
|
</if>
|
2003-06-23 15:50:43 -04:00
|
|
|
</define-tag>
|
|
|
|
|
2003-12-14 16:40:24 -05:00
|
|
|
|
|
|
|
<!-- A hack to keep autoconf happy (we pass CPPFLAGS that contain
|
|
|
|
{top_srcdir} from configure, poor bakefile can't know that
|
|
|
|
and won't output top_srcdir = @top_srcdir@ line): -->
|
|
|
|
<set var="VARS_DONT_ELIMINATE" append="1">top_srcdir</set>
|
|
|
|
|
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
</makefile>
|