2003-06-23 19:50:43 +00:00
|
|
|
<?xml version="1.0" ?>
|
2003-06-24 22:05:29 +00:00
|
|
|
<!-- $Id$ -->
|
|
|
|
|
2003-06-23 19:50:43 +00:00
|
|
|
<makefile>
|
2004-02-10 11:19:46 +00:00
|
|
|
|
2009-10-22 06:43:52 +00:00
|
|
|
<requires version="0.2.7"/>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-06-23 19:50:43 +00:00
|
|
|
<!-- bakefile modules we need: -->
|
|
|
|
<using module="datafiles"/>
|
|
|
|
|
|
|
|
<!-- load python module with wxwindows helpers: -->
|
|
|
|
<using module="wxwin"/>
|
|
|
|
|
2004-11-01 04:57:21 +00: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 18:31:20 +00: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-11-01 04:57:21 +00:00
|
|
|
|
2005-03-04 07:18:47 +00:00
|
|
|
<!-- FIXME: PalmOS is another candidate to bakefiles -->
|
|
|
|
<set var="PLATFORM_PALMOS">0</set>
|
|
|
|
|
2007-11-25 11:14:40 +00:00
|
|
|
|
2003-06-23 19:50:43 +00:00
|
|
|
<include file="config.bkl"/>
|
2004-02-01 18:31:54 +00:00
|
|
|
|
|
|
|
<include file="plugins_deps.bkl"/>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-07-25 12:38:48 +00:00
|
|
|
|
2005-06-29 21:53:53 +00:00
|
|
|
<!-- wxWidgets version numbers logic: -->
|
|
|
|
<include file="version.bkl"/>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
|
|
|
|
2003-06-23 19:50:43 +00: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 18:31:20 +00:00
|
|
|
|
2003-07-05 21:08:03 +00:00
|
|
|
<set var="WXBASEPORT">
|
|
|
|
<if cond="TOOLKIT=='MAC'">_carbon</if>
|
|
|
|
</set>
|
2003-06-23 19:50:43 +00: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-29 00:03:46 +00:00
|
|
|
|
|
|
|
<set var="VENDORTAG">
|
2003-06-30 21:41:29 +00:00
|
|
|
<if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if>
|
|
|
|
<if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)</if>
|
2003-06-29 00:03:46 +00:00
|
|
|
</set>
|
|
|
|
|
2009-09-12 11:29:11 +00:00
|
|
|
<!-- debug suffix used for Windows libraries which use debug CRT -->
|
2003-06-23 19:50:43 +00:00
|
|
|
<set var="WXDEBUGFLAG">
|
2009-09-12 11:29:11 +00:00
|
|
|
<if cond="BUILD=='debug' and DEBUG_RUNTIME_LIBS=='default'">d</if>
|
|
|
|
<if cond="DEBUG_RUNTIME_LIBS=='1'">d</if>
|
2003-06-23 19:50:43 +00:00
|
|
|
</set>
|
|
|
|
<set var="WXUNICODEFLAG">
|
2004-04-01 20:20:57 +00:00
|
|
|
<!-- WinCE is Unicode-only platform: -->
|
|
|
|
<if cond="UNICODE=='1' and FORMAT!='msevc4prj'">u</if>
|
2003-06-23 19:50:43 +00:00
|
|
|
</set>
|
2009-09-12 11:29:11 +00:00
|
|
|
<set var="WX_U_D_SUFFIX">
|
|
|
|
$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
|
|
|
</set>
|
2003-06-23 19:50:43 +00:00
|
|
|
<set var="WXNAMESUFFIX">
|
2009-09-12 11:29:11 +00:00
|
|
|
$(WX_U_D_SUFFIX)$(WX_LIB_FLAVOUR)
|
2003-06-23 19:50:43 +00:00
|
|
|
</set>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-06-23 19:50:43 +00: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 19:22:12 +00:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
2003-07-05 21:08:03 +00:00
|
|
|
<set var="WXNAMEPREFIX">wx_base$(WXBASEPORT)</set>
|
2003-06-27 19:22:12 +00:00
|
|
|
<set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set>
|
2004-09-26 08:46:55 +00:00
|
|
|
<set var="WXVERSIONTAG">-$(WX_RELEASE)</set>
|
2003-06-27 19:22:12 +00:00
|
|
|
</if>
|
|
|
|
<if cond="FORMAT!='autoconf'">
|
2003-07-05 21:08:03 +00:00
|
|
|
<set var="WXNAMEPREFIX">
|
2004-09-26 08:46:55 +00:00
|
|
|
wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)
|
2003-07-05 21:08:03 +00:00
|
|
|
</set>
|
|
|
|
<set var="WXNAMEPREFIXGUI">
|
2004-09-26 08:46:55 +00:00
|
|
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)</set>
|
2003-06-27 19:22:12 +00:00
|
|
|
<set var="WXVERSIONTAG"></set>
|
|
|
|
</if>
|
2003-06-29 00:03:46 +00:00
|
|
|
<set var="WXDLLNAMEPREFIX">
|
2003-07-05 21:08:03 +00:00
|
|
|
<if cond="PLATFORM_WIN32=='1'">
|
2003-07-25 12:38:48 +00:00
|
|
|
wxbase$(WXBASEPORT)$(WXWIN32DLLVERSION)
|
2003-07-05 21:08:03 +00:00
|
|
|
</if>
|
2003-06-29 00:03:46 +00:00
|
|
|
<if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)</if>
|
|
|
|
</set>
|
|
|
|
<set var="WXDLLNAMEPREFIXGUI">
|
|
|
|
<if cond="PLATFORM_WIN32=='1'">
|
2003-07-25 12:38:48 +00:00
|
|
|
wx$(PORTNAME)$(WXUNIVNAME)$(WXWIN32DLLVERSION)
|
2003-06-29 00:03:46 +00: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 19:50:43 +00:00
|
|
|
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-06-23 19:50:43 +00:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Names of component libraries: -->
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
2003-06-25 16:29:51 +00:00
|
|
|
<set var="WXLIB_BASE">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if>
|
|
|
|
</set>
|
2003-07-27 22:41:06 +00:00
|
|
|
<set var="WXLIB_NET">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))</if>
|
|
|
|
</set>
|
2005-03-21 00:11:06 +00:00
|
|
|
<set var="WXLIB_QA">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('qa')))</if>
|
|
|
|
</set>
|
2003-06-23 19:50:43 +00:00
|
|
|
<set var="WXLIB_CORE">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if>
|
|
|
|
</set>
|
2003-08-02 01:07:39 +00:00
|
|
|
<set var="WXLIB_ADV">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('adv')))</if>
|
|
|
|
</set>
|
2004-11-11 05:30:21 +00:00
|
|
|
<set var="WXLIB_MEDIA">
|
2006-03-07 15:01:59 +00:00
|
|
|
<if cond="MONOLITHIC=='0' and USE_MEDIA=='1'">$(mk.evalExpr(wxwin.mkLibName('media')))</if>
|
2004-11-11 05:30:21 +00:00
|
|
|
</set>
|
2003-06-25 11:00:44 +00:00
|
|
|
<set var="WXLIB_HTML">
|
2003-06-25 16:29:51 +00:00
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))</if>
|
2003-06-25 11:00:44 +00:00
|
|
|
</set>
|
2003-07-20 22:00:40 +00:00
|
|
|
<set var="WXLIB_XML">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))</if>
|
|
|
|
</set>
|
2004-09-21 10:11:43 +00:00
|
|
|
<set var="WXLIB_XRC">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xrc')))</if>
|
|
|
|
</set>
|
2006-06-06 13:12:07 +00:00
|
|
|
<set var="WXLIB_AUI">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('aui')))</if>
|
|
|
|
</set>
|
2009-09-16 12:06:02 +00:00
|
|
|
<set var="WXLIB_RIBBON">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('ribbon')))</if>
|
|
|
|
</set>
|
2008-09-12 20:57:41 +00:00
|
|
|
<set var="WXLIB_PROPGRID">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('propgrid')))</if>
|
|
|
|
</set>
|
2006-06-29 07:16:39 +00:00
|
|
|
<set var="WXLIB_RICHTEXT">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('richtext')))</if>
|
|
|
|
</set>
|
2007-04-05 06:27:23 +00:00
|
|
|
<set var="WXLIB_STC">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('stc')))</if>
|
|
|
|
</set>
|
2003-06-23 19:50:43 +00:00
|
|
|
|
|
|
|
<set var="WXLIB_MONO">
|
|
|
|
<if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if>
|
|
|
|
</set>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
|
|
|
|
2003-06-23 19:50:43 +00:00
|
|
|
<!-- =============================================================== -->
|
2003-06-30 21:41:29 +00:00
|
|
|
<!-- Where to store built libraries and objects: -->
|
2003-06-23 19:50:43 +00:00
|
|
|
<!-- =============================================================== -->
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2004-04-01 20:20:57 +00:00
|
|
|
<set var="DIR_SUFFIX_CPU">
|
|
|
|
<if cond="FORMAT=='msevc4prj'">_$(CPU)</if>
|
2005-11-30 20:13:48 +00:00
|
|
|
<if cond="TARGET_CPU=='amd64'">_amd64</if>
|
2005-10-16 20:25:10 +00:00
|
|
|
<if cond="TARGET_CPU=='AMD64'">_amd64</if>
|
2005-11-30 20:13:48 +00:00
|
|
|
<if cond="TARGET_CPU=='ia64'">_ia64</if>
|
2005-10-16 20:25:10 +00:00
|
|
|
<if cond="TARGET_CPU=='IA64'">_ia64</if>
|
2004-04-01 20:20:57 +00:00
|
|
|
</set>
|
2003-06-30 21:41:29 +00:00
|
|
|
|
|
|
|
<if cond="FORMAT!='autoconf'">
|
|
|
|
<set var="WXDLLFLAG">
|
|
|
|
<if cond="SHARED=='1'">dll</if>
|
|
|
|
</set>
|
|
|
|
<set var="CFG_NAME_PART">
|
2009-09-12 11:29:11 +00:00
|
|
|
$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)$(WXDLLFLAG)$(CFG)
|
2003-06-30 21:41:29 +00:00
|
|
|
</set>
|
2007-05-15 12:48:26 +00:00
|
|
|
|
|
|
|
<!-- NB: this is make_var so that it can be overriden on command line
|
|
|
|
like this: nmake -f makefile.vc COMPILER_PREFIX=vc6 -->
|
|
|
|
<set var="COMPILER_PREFIX" make_var="1">$(COMPILER)</set>
|
|
|
|
|
2003-10-26 20:45:27 +00:00
|
|
|
<set var="OBJS" make_var="1">
|
2007-05-15 12:48:26 +00:00
|
|
|
$(COMPILER_PREFIX)_$(CFG_NAME_PART)$(DIR_SUFFIX_CPU)
|
2003-10-26 20:45:27 +00:00
|
|
|
</set>
|
|
|
|
|
2003-06-30 21:41:29 +00:00
|
|
|
<set var="BUILDDIR">$(OBJS)</set>
|
|
|
|
</if>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2005-01-17 13:02:12 +00:00
|
|
|
<set var="LIBTYPE_SUFFIX" make_var="1">
|
2005-07-22 12:44:44 +00: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 13:02:12 +00:00
|
|
|
</set>
|
|
|
|
|
2003-07-27 09:50:55 +00:00
|
|
|
<set var="LIBDIRNAME" make_var="1">
|
2006-11-04 17:08:49 +00:00
|
|
|
<if cond="FORMAT=='autoconf'">$(wx_top_builddir)/lib</if>
|
2005-01-17 13:02:12 +00:00
|
|
|
<if cond="FORMAT!='autoconf'">
|
2007-05-15 12:48:26 +00:00
|
|
|
$(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
|
2003-06-30 21:41:29 +00:00
|
|
|
</if>
|
2003-06-23 19:50:43 +00:00
|
|
|
</set>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-08-15 21:20:32 +00:00
|
|
|
<if cond="FORMAT!='autoconf'">
|
|
|
|
<set var="SETUPHDIR" make_var="1">
|
2009-09-12 11:29:11 +00:00
|
|
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)
|
2003-08-15 21:20:32 +00:00
|
|
|
</set>
|
|
|
|
</if>
|
2003-06-30 21:41:29 +00:00
|
|
|
|
2004-11-04 18:31:20 +00:00
|
|
|
|
|
|
|
|
2003-06-27 13:47:59 +00:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Templates for libs: -->
|
|
|
|
<!-- =============================================================== -->
|
2003-06-27 19:22:12 +00:00
|
|
|
|
2003-08-01 13:33:02 +00: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 13:16:06 +00: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 13:33:02 +00:00
|
|
|
<if cond="DEBUG_RUNTIME_LIBS=='0'">off</if>
|
|
|
|
<if cond="DEBUG_RUNTIME_LIBS=='1'">on</if>
|
2003-06-27 19:22:12 +00:00
|
|
|
</set>
|
|
|
|
<set var="OPTIMIZEFLAG">
|
2003-06-27 23:24:12 +00:00
|
|
|
<if cond="BUILD=='debug'">off</if>
|
|
|
|
<if cond="BUILD=='release'">speed</if>
|
2003-06-27 19:22:12 +00:00
|
|
|
</set>
|
2003-09-18 22:46:53 +00:00
|
|
|
<set var="EXCEPTIONSFLAG">
|
|
|
|
<if cond="USE_EXCEPTIONS=='1'">on</if>
|
|
|
|
<if cond="USE_EXCEPTIONS=='0'">off</if>
|
|
|
|
</set>
|
2005-02-20 14:14:08 +00:00
|
|
|
<set var="RTTIFLAG">
|
|
|
|
<if cond="USE_RTTI=='1'">on</if>
|
|
|
|
<if cond="USE_RTTI=='0'">off</if>
|
|
|
|
</set>
|
2005-02-20 13:22:24 +00:00
|
|
|
<set var="THREADSFLAG">
|
|
|
|
<if cond="USE_THREADS=='1'">multi</if>
|
|
|
|
<if cond="USE_THREADS=='0'">single</if>
|
|
|
|
</set>
|
2003-07-01 13:26:33 +00:00
|
|
|
|
2005-03-20 22:08:19 +00:00
|
|
|
<set var="RTTI_DEFINE">
|
2005-07-21 17:44:06 +00:00
|
|
|
<if cond="USE_RTTI=='0'">wxNO_RTTI</if>
|
2005-03-20 22:08:19 +00:00
|
|
|
</set>
|
|
|
|
<set var="EXCEPTIONS_DEFINE">
|
2005-07-21 17:44:06 +00:00
|
|
|
<if cond="USE_EXCEPTIONS=='0'">wxNO_EXCEPTIONS</if>
|
2005-03-20 22:08:19 +00:00
|
|
|
</set>
|
|
|
|
<set var="THREAD_DEFINE">
|
2005-07-21 17:44:06 +00:00
|
|
|
<if cond="USE_THREADS=='0'">wxNO_THREADS</if>
|
2005-03-20 22:08:19 +00:00
|
|
|
</set>
|
|
|
|
|
2003-07-01 13:26:33 +00:00
|
|
|
<set var="DEBUG_DEFINE">
|
2009-09-12 11:29:11 +00:00
|
|
|
<if cond="DEBUG_FLAG=='0'">wxDEBUG_LEVEL=0</if>
|
2003-07-01 13:26:33 +00:00
|
|
|
</set>
|
2003-09-12 22:34:06 +00: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 13:26:33 +00:00
|
|
|
<set var="UNICODE_DEFINE">
|
2003-08-27 18:09:15 +00:00
|
|
|
<if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if>
|
2007-11-22 15:29:51 +00:00
|
|
|
<if cond="FORMAT!='autoconf' and UNICODE=='0'">wxUSE_UNICODE=0</if>
|
2003-07-01 13:26:33 +00:00
|
|
|
</set>
|
2005-07-30 00:17:24 +00:00
|
|
|
<set var="MSLU_DEFINE">
|
2005-07-30 00:22:40 +00:00
|
|
|
<if cond="FORMAT!='autoconf' and MSLU=='1'">wxUSE_UNICODE_MSLU=1</if>
|
2005-07-30 00:17:24 +00:00
|
|
|
</set>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2005-01-25 12:22:56 +00: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 11:49:35 +00:00
|
|
|
<set var="UNICOWS_LIB">
|
|
|
|
<if cond="MSLU=='1'">unicows</if>
|
|
|
|
</set>
|
2009-11-18 19:22:58 +00: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 22:45:17 +00:00
|
|
|
<if cond="FORMAT!='autoconf'">
|
|
|
|
<set var="GDIPLUS_LIB">
|
|
|
|
<if cond="USE_GDIPLUS=='1'">gdiplus</if>
|
2007-10-23 13:40:27 +00:00
|
|
|
</set>
|
|
|
|
<set var="GFXCTX_DEFINE">
|
2006-10-05 22:45:17 +00:00
|
|
|
<if cond="USE_GDIPLUS=='1'">wxUSE_GRAPHICS_CONTEXT=1</if>
|
2007-10-23 13:40:27 +00:00
|
|
|
</set>
|
2006-10-05 22:45:17 +00:00
|
|
|
</if>
|
|
|
|
|
2005-10-16 20:25:10 +00:00
|
|
|
<set var="LINK_TARGET_CPU">
|
2009-12-08 16:36:37 +00:00
|
|
|
<if cond="TARGET_CPU=='amd64'">/MACHINE:X64</if>
|
|
|
|
<if cond="TARGET_CPU=='AMD64'">/MACHINE:X64</if>
|
2005-11-30 20:13:48 +00:00
|
|
|
<if cond="TARGET_CPU=='ia64'">/MACHINE:IA64</if>
|
2005-10-16 20:25:10 +00:00
|
|
|
<if cond="TARGET_CPU=='IA64'">/MACHINE:IA64</if>
|
|
|
|
</set>
|
|
|
|
|
2003-07-05 14:25:35 +00:00
|
|
|
<template id="common_settings">
|
2003-08-01 13:33:02 +00:00
|
|
|
<debug-info>$(DEBUGINFO)</debug-info>
|
|
|
|
<debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs>
|
2003-07-05 14:19:41 +00:00
|
|
|
<optimize>$(OPTIMIZEFLAG)</optimize>
|
2005-02-20 13:22:24 +00:00
|
|
|
<threading>$(THREADSFLAG)</threading>
|
2003-07-14 20:28:04 +00:00
|
|
|
<runtime-libs>$(RUNTIME_LIBS)</runtime-libs>
|
2005-02-20 14:14:08 +00:00
|
|
|
<cxx-rtti>$(RTTIFLAG)</cxx-rtti>
|
2003-09-18 22:46:53 +00:00
|
|
|
<cxx-exceptions>$(EXCEPTIONSFLAG)</cxx-exceptions>
|
2003-07-05 14:19:41 +00:00
|
|
|
<if cond="FORMAT!='autoconf'">
|
|
|
|
<cppflags>$(EXTRACFLAGS)</cppflags>
|
|
|
|
</if>
|
2003-09-12 22:34:06 +00:00
|
|
|
<define>$(NO_VC_CRTDBG)</define>
|
2005-01-25 12:22:56 +00:00
|
|
|
<define>$(WIN32_WINNT)</define>
|
2005-10-16 20:25:10 +00:00
|
|
|
<if cond="FORMAT=='msvc'">
|
|
|
|
<ldflags>$(LINK_TARGET_CPU)</ldflags>
|
|
|
|
</if>
|
2006-05-20 21:32:34 +00:00
|
|
|
<include cond="FORMAT=='msevc4prj'">$(TOP_SRCDIR)build/wince/missing</include>
|
2003-07-05 14:19:41 +00:00
|
|
|
</template>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-06-27 13:47:59 +00:00
|
|
|
<template id="anylib">
|
|
|
|
<dirname>$(LIBDIRNAME)</dirname>
|
|
|
|
<install-to>$(LIBDIR)</install-to>
|
|
|
|
</template>
|
|
|
|
|
2003-07-05 14:25:35 +00:00
|
|
|
<template id="3rdparty_lib" template="common_settings,anylib">
|
2004-09-26 08:46:55 +00:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
2009-09-12 11:29:11 +00:00
|
|
|
<libname>$(id)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)</libname>
|
2004-09-26 08:46:55 +00:00
|
|
|
</if>
|
|
|
|
<if cond="FORMAT!='autoconf'">
|
2004-10-08 11:20:24 +00:00
|
|
|
<libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname>
|
2004-09-26 08:46:55 +00:00
|
|
|
</if>
|
2003-08-10 11:54:20 +00:00
|
|
|
<!--
|
|
|
|
we want to install 3rd party libs system-wide only with static
|
2004-05-23 14:56:36 +00:00
|
|
|
version of wxWidgets; otherwise they are embedded in shared libs:
|
2003-08-10 11:54:20 +00:00
|
|
|
-->
|
|
|
|
<install-if>SHARED=='0'</install-if>
|
2004-04-01 20:20:57 +00:00
|
|
|
<pic>$(substituteFromDict(SHARED, {'0':'off', '1':'on'}))</pic>
|
2009-09-18 16:15:54 +00: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-12-01 00:42:19 +00: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 21:29:07 +00:00
|
|
|
</template>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
|
|
|
|
2004-02-01 22:41:33 +00:00
|
|
|
<!-- deal with the need to copy setup.h here: -->
|
2003-06-27 21:29:07 +00:00
|
|
|
|
2004-02-01 22:41:33 +00:00
|
|
|
<define-tag name="msvc-headers" rules="dll,lib">
|
2004-04-01 20:20:57 +00:00
|
|
|
<if cond="IS_MSVC_PRJ">
|
2006-11-19 13:24:05 +00:00
|
|
|
<msvc-project-files>
|
|
|
|
$(addPrefixToList('include\\', wxwin.headersOnly(value)))
|
|
|
|
</msvc-project-files>
|
2004-02-01 22:41:33 +00:00
|
|
|
</if>
|
|
|
|
</define-tag>
|
|
|
|
|
2005-08-08 13:34:42 +00:00
|
|
|
<set var="msvc_copy_setup_h_script">
|
2004-04-01 20:20:57 +00:00
|
|
|
<if cond="IS_MSVC_PRJ">
|
2004-02-01 22:41:33 +00:00
|
|
|
Creating $(SETUPHDIR)\wx\setup.h
|
2007-01-26 12:41:04 +00:00
|
|
|
InputPath=..\..\include\wx\%s
|
2004-02-01 22:41:33 +00:00
|
|
|
|
|
|
|
"$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
|
|
|
|
$(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
|
2005-08-08 13:34:42 +00: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 22:41:33 +00:00
|
|
|
</set>
|
|
|
|
</if>
|
|
|
|
</define-tag>
|
|
|
|
|
2005-08-08 13:34:42 +00: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 22:49:46 +00: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 23:17:24 +00:00
|
|
|
<!-- FIXME: we need another way to get the compiler name -->
|
2005-11-08 22:49:46 +00: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 12:41:04 +00:00
|
|
|
InputPath=..\..\include\wx\msw\genrcdefs.h
|
2005-11-08 22:49:46 +00:00
|
|
|
|
2007-01-17 08:40:56 +00:00
|
|
|
"$(SETUPHDIR)\wx\msw\rcdefs.h" : "$(DOLLAR)(SOURCE)" "$(SETUPHDIR)\wx\msw"
|
2005-11-08 22:49:46 +00:00
|
|
|
$(TAB)$(VC_COMPILER) /EP /nologo "$(DOLLAR)(InputPath)" > "$(SETUPHDIR)\wx\msw\rcdefs.h"
|
|
|
|
</set>
|
|
|
|
</if>
|
|
|
|
</define-tag>
|
|
|
|
|
2004-02-01 22:41:33 +00:00
|
|
|
<template id="msvc_setup_h">
|
|
|
|
<msvc-copy-setup-h/>
|
2005-11-08 22:49:46 +00:00
|
|
|
<msvc-create-rcdefs-h/>
|
2004-02-01 22:41:33 +00:00
|
|
|
</template>
|
2003-06-23 19:50:43 +00:00
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- 3rd party libs: -->
|
|
|
|
<!-- =============================================================== -->
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-06-23 19:50:43 +00: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 22:00:40 +00:00
|
|
|
<include file="expat.bkl"/>
|
2007-04-05 06:27:23 +00:00
|
|
|
<include file="scintilla.bkl"/>
|
2003-06-23 19:50:43 +00:00
|
|
|
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-06-23 19:50:43 +00:00
|
|
|
<!-- =============================================================== -->
|
2004-05-23 14:56:36 +00:00
|
|
|
<!-- Templates for wxWidgets libs: -->
|
2003-06-23 19:50:43 +00:00
|
|
|
<!-- =============================================================== -->
|
2003-06-27 19:22:12 +00:00
|
|
|
|
2004-10-15 21:05:02 +00: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">
|
|
|
|
<if cond="MONOLITHIC=='1'">$(EXTRALIBS) $(EXTRALIBS_GUI)</if>
|
|
|
|
<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 23:58:18 +00: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 14:25:35 +00:00
|
|
|
<template id="wx" template="common_settings">
|
2003-06-23 19:50:43 +00:00
|
|
|
<set var="wxid">$(wxwin.mk_wxid(id))</set>
|
|
|
|
<define>__WX$(TOOLKIT)__</define>
|
|
|
|
<define>$(WXUNIV_DEFINE)</define>
|
2003-07-01 13:26:33 +00:00
|
|
|
<define>$(DEBUG_DEFINE)</define>
|
2005-03-20 22:08:19 +00:00
|
|
|
<define>$(EXCEPTIONS_DEFINE)</define>
|
|
|
|
<define>$(RTTI_DEFINE)</define>
|
|
|
|
<define>$(THREAD_DEFINE)</define>
|
2003-07-01 13:26:33 +00:00
|
|
|
<define>$(UNICODE_DEFINE)</define>
|
2005-07-30 00:17:24 +00:00
|
|
|
<define>$(MSLU_DEFINE)</define>
|
2006-10-05 22:45:17 +00:00
|
|
|
<if cond="FORMAT!='autoconf'"><define>$(GFXCTX_DEFINE)</define></if>
|
2005-11-08 22:49:46 +00:00
|
|
|
<include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
|
2003-11-26 11:03:41 +00:00
|
|
|
<include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include>
|
2009-11-18 19:22:58 +00:00
|
|
|
<include cond="FORMAT!='autoconf'">$(CAIRO_INCLUDEDIR)</include>
|
2004-11-04 18:31:20 +00:00
|
|
|
<lib-path>$(LIBDIRNAME)</lib-path>
|
2006-01-08 23:58:18 +00:00
|
|
|
<if cond="TOOLKIT=='MGL' and FORMAT=='watcom'">
|
|
|
|
<lib-path>$(MGLLIBPATH)</lib-path>
|
|
|
|
<lib-path>$(MGLLIBPATH)/$(MGLPMLIBPATH)</lib-path>
|
|
|
|
</if>
|
2007-04-14 19:05:45 +00:00
|
|
|
|
2003-09-09 20:12:38 +00:00
|
|
|
<warnings>max</warnings>
|
2007-04-14 19:05:45 +00:00
|
|
|
<cxxflags cond="FORMAT=='autoconf'">$(CXXWARNINGS)</cxxflags>
|
2004-11-10 19:06:24 +00: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 16:31:17 +00:00
|
|
|
<cxxflags-mingw>
|
2004-12-12 11:55:37 +00:00
|
|
|
-Wno-ctor-dtor-privacy <!-- only defines a private destructor and has no friends -->
|
2005-01-18 16:31:17 +00:00
|
|
|
</cxxflags-mingw>
|
2003-06-23 19:50:43 +00:00
|
|
|
</template>
|
|
|
|
|
2003-07-06 18:55:09 +00:00
|
|
|
<!-- for both GUI and wxBase libs/samples: -->
|
2003-07-19 16:26:36 +00:00
|
|
|
<template id="wx_append_base_nomono">
|
2003-06-23 19:50:43 +00:00
|
|
|
<!-- link against builtin 3rd party libs, if needed: -->
|
|
|
|
<sys-lib>$(LIB_ZLIB)</sys-lib>
|
|
|
|
<sys-lib>$(LIB_REGEX)</sys-lib>
|
2003-07-20 22:00:40 +00:00
|
|
|
<sys-lib>$(LIB_EXPAT)</sys-lib>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2004-10-15 21:05:02 +00:00
|
|
|
<ldlibs>$(EXTRALIBS_FOR_BASE)</ldlibs>
|
2003-07-01 13:26:33 +00:00
|
|
|
|
2005-07-22 12:44:44 +00: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 23:58:18 +00: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 13:26:33 +00:00
|
|
|
<!-- system libraries on windows: -->
|
2005-07-22 12:44:44 +00:00
|
|
|
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
|
2003-08-08 11:49:35 +00:00
|
|
|
<sys-lib>$(UNICOWS_LIB)</sys-lib>
|
2006-10-05 22:45:17 +00:00
|
|
|
<sys-lib>$(GDIPLUS_LIB)</sys-lib>
|
2009-11-18 19:22:58 +00:00
|
|
|
<sys-lib>$(CAIRO_LIB)</sys-lib>
|
|
|
|
<lib-path>$(CAIRO_LIBDIR)</lib-path>
|
2003-10-26 20:45:27 +00:00
|
|
|
<if cond="FORMAT=='borland'">
|
2003-07-02 22:29:29 +00:00
|
|
|
<sys-lib>ole2w32</sys-lib>
|
|
|
|
</if>
|
2004-04-03 20:50:12 +00: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 22:29:29 +00: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 13:33:51 +00: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 13:26:33 +00:00
|
|
|
</if>
|
2006-01-21 22:50:46 +00:00
|
|
|
<if cond="FORMAT=='borland'">
|
2003-09-11 19:22:18 +00:00
|
|
|
<sys-lib>oleacc</sys-lib>
|
|
|
|
</if>
|
2003-11-10 12:47:46 +00:00
|
|
|
</if>
|
2003-06-23 19:50:43 +00:00
|
|
|
</template>
|
|
|
|
|
2003-07-30 22:03:11 +00:00
|
|
|
|
2003-07-06 18:55:09 +00:00
|
|
|
<!-- for GUI libs/samples: -->
|
2006-04-23 16:38:47 +00: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 21:05:02 +00:00
|
|
|
<ldlibs>$(EXTRALIBS_FOR_GUI)</ldlibs>
|
2003-07-06 18:55:09 +00:00
|
|
|
</template>
|
|
|
|
|
2003-07-19 16:26:36 +00:00
|
|
|
|
|
|
|
<template id="wx_append_base" template_append="wx_append_base_nomono">
|
|
|
|
<!-- Always link against the wxWin library in monolithic build: -->
|
|
|
|
<sys-lib>$(WXLIB_MONO)</sys-lib>
|
|
|
|
</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 18:31:20 +00:00
|
|
|
|
2003-07-19 16:26:36 +00:00
|
|
|
|
2003-07-25 09:04:09 +00:00
|
|
|
<set var="WX_DISABLE_PRECOMP_HEADERS" overwrite="0">0</set>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-06-27 13:47:59 +00:00
|
|
|
<template id="wx_lib_b" template="wx,anylib">
|
2003-06-23 19:50:43 +00:00
|
|
|
<set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set>
|
|
|
|
<libname>$(WXLIBNAME)</libname>
|
2003-07-02 22:29:29 +00:00
|
|
|
|
2007-06-15 15:08:51 +00:00
|
|
|
<define>WXBUILDING</define>
|
|
|
|
|
2003-07-25 09:04:09 +00:00
|
|
|
<if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
|
2006-05-31 12:10:38 +00:00
|
|
|
<if cond="FORMAT!='autoconf' and TOOLKIT in ['MSW','MGL','PM','WINCE']">
|
2006-05-31 11:48:45 +00:00
|
|
|
<sources>$(WXTOPDIR)src/common/dummy.cpp</sources>
|
2003-07-25 09:04:09 +00:00
|
|
|
<precomp-headers-gen>
|
2006-05-31 11:48:45 +00:00
|
|
|
$(WXTOPDIR)src/common/dummy.cpp
|
2003-07-25 09:04:09 +00:00
|
|
|
</precomp-headers-gen>
|
|
|
|
</if>
|
2005-02-09 10:56:07 +00:00
|
|
|
<precomp-headers-location>$(WXTOPDIR)include</precomp-headers-location>
|
2003-07-25 09:04:09 +00: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 19:56:54 +00:00
|
|
|
<precomp-headers-exclude>
|
|
|
|
src/common/extended.c
|
|
|
|
</precomp-headers-exclude>
|
2003-07-02 22:29:29 +00:00
|
|
|
</if>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2004-04-22 08:26:14 +00:00
|
|
|
<if cond="IS_MSVC_PRJ=='1' and BUILDING_LIB=='1'">
|
2003-07-30 22:03:11 +00: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 12:20:30 +00:00
|
|
|
<msvc-file-group>Common Headers:*wx/*.h</msvc-file-group>
|
2003-07-30 22:03:11 +00:00
|
|
|
</if>
|
2003-06-23 19:50:43 +00:00
|
|
|
</template>
|
2003-07-02 22:29:29 +00:00
|
|
|
|
2005-11-08 22:49:46 +00:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
|
|
<set var="RCDEFDIR">
|
|
|
|
<if cond="TOOLKIT=='MSW'">
|
|
|
|
$(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</if>
|
|
|
|
|
2003-06-25 11:00:44 +00:00
|
|
|
<template id="wx_dll_b" template="wx_lib_b">
|
2003-06-23 19:50:43 +00:00
|
|
|
<set var="WXDLLNAME">$(wxwin.mkDllName(wxid))</set>
|
|
|
|
<dllname>$(WXDLLNAME)</dllname>
|
|
|
|
<version>$(WX_VERSION)</version>
|
|
|
|
<so_version>$(WXSOVERSION)</so_version>
|
2005-07-21 17:44:06 +00:00
|
|
|
|
2005-07-04 09:58:07 +00:00
|
|
|
<!-- FIXME: until libtool scheme is implemented in bakefile -->
|
|
|
|
<ldflags cond="FORMAT=='autoconf'">$(WXMACVERSION_CMD)</ldflags>
|
2005-02-27 12:03:11 +00:00
|
|
|
|
|
|
|
<!-- version info resources: -->
|
2006-11-19 13:24:05 +00: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 16:07:56 +00:00
|
|
|
<postlink-command>$(DYLIB_RPATH_POSTLINK)</postlink-command>
|
2005-02-28 23:05:13 +00:00
|
|
|
</if>
|
2005-03-24 10:29:47 +00:00
|
|
|
<win32-res>$(WXTOPDIR)src/msw/version.rc</win32-res>
|
2009-03-15 16:07:56 +00:00
|
|
|
|
2003-06-23 19:50:43 +00:00
|
|
|
</template>
|
2003-06-24 23:52:06 +00:00
|
|
|
|
2004-11-18 08:14:18 +00:00
|
|
|
<template id="wx_3rdparty_dependencies_gui" cond="USE_GUI=='1'">
|
2003-07-27 19:56:54 +00:00
|
|
|
<depends>wxtiff</depends>
|
|
|
|
<depends>wxjpeg</depends>
|
|
|
|
<depends>wxpng</depends>
|
2007-05-03 09:32:58 +00:00
|
|
|
<depends>wxscintilla</depends>
|
2004-11-18 08:14:18 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="wx_3rdparty_dependencies"
|
|
|
|
template="wx_3rdparty_dependencies_gui">
|
2003-07-27 09:50:55 +00:00
|
|
|
<depends>wxexpat</depends>
|
2003-07-06 18:55:09 +00:00
|
|
|
<depends>wxzlib</depends>
|
|
|
|
<depends>wxregex</depends>
|
|
|
|
</template>
|
2003-08-15 21:20:32 +00:00
|
|
|
|
2004-11-18 08:14:18 +00:00
|
|
|
<template id="wx_3rdparty_includes_gui" cond="USE_GUI=='1'">
|
2006-01-08 23:58:18 +00:00
|
|
|
<if cond="FORMAT=='watcom' and TOOLKIT=='MGL'">
|
|
|
|
<include>$(DOLLAR)(%SCITECH)/include</include>
|
|
|
|
</if>
|
2007-09-20 00:01:33 +00:00
|
|
|
<include>$(INC_TIFF_BUILD)</include>
|
2003-08-15 21:20:32 +00:00
|
|
|
<include>$(INC_TIFF)</include>
|
|
|
|
<include>$(INC_JPEG)</include>
|
|
|
|
<include>$(INC_PNG)</include>
|
2004-11-18 08:14:18 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="wx_3rdparty_includes"
|
|
|
|
template="wx_3rdparty_includes_gui">
|
2003-08-15 21:20:32 +00:00
|
|
|
<include>$(INC_ZLIB)</include>
|
|
|
|
<include>$(INC_REGEX)</include>
|
|
|
|
<include>$(INC_EXPAT)</include>
|
|
|
|
</template>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-08-24 21:40:47 +00: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 18:31:20 +00:00
|
|
|
<define>wxUSE_GUI=0</define>
|
2003-08-08 09:49:24 +00:00
|
|
|
</template>
|
|
|
|
|
2003-08-15 21:20:32 +00:00
|
|
|
<template id="wx_dll"
|
|
|
|
template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
|
2003-08-24 21:40:47 +00:00
|
|
|
template_append="msvc_setup_h,wx_append_nomono"/>
|
2003-08-15 21:20:32 +00:00
|
|
|
<template id="wx_base_dll"
|
|
|
|
template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
|
2003-08-24 21:40:47 +00:00
|
|
|
template_append="msvc_setup_h,wx_append_base_nomono">
|
2004-11-04 18:31:20 +00:00
|
|
|
<define>wxUSE_GUI=0</define>
|
2003-08-08 09:49:24 +00:00
|
|
|
</template>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-08-06 15:44:00 +00:00
|
|
|
<!-- =============================================================== -->
|
2004-05-23 14:56:36 +00:00
|
|
|
<!-- Templates for building wxWidgets plugins: -->
|
2003-08-06 15:44:00 +00:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
|
|
<if cond="WX_STABLE_BRANCH=='1'">
|
2004-02-01 18:31:54 +00:00
|
|
|
<set var="PLUGIN_VERSION0">
|
2004-09-26 08:46:55 +00:00
|
|
|
<if cond="PLATFORM_UNIX=='1'">$(WX_RELEASE)</if>
|
|
|
|
<if cond="PLATFORM_UNIX=='0'">$(WX_RELEASE_NODOT)</if>
|
2003-08-06 15:44:00 +00:00
|
|
|
</set>
|
|
|
|
</if>
|
|
|
|
<if cond="WX_STABLE_BRANCH=='0'">
|
2004-02-01 18:31:54 +00:00
|
|
|
<set var="PLUGIN_VERSION0">
|
2004-09-26 08:46:55 +00:00
|
|
|
<if cond="PLATFORM_UNIX=='1'">$(WX_VERSION)</if>
|
|
|
|
<if cond="PLATFORM_UNIX=='0'">$(WX_VERSION_NODOT)</if>
|
2003-08-06 15:44:00 +00:00
|
|
|
</set>
|
|
|
|
</if>
|
2004-02-01 18:31:54 +00: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 18:31:20 +00:00
|
|
|
|
2004-02-01 18:31:54 +00:00
|
|
|
<set var="PLUGINS_INST_DIR" make_var="1">
|
|
|
|
$(LIBDIR)/wx/$(PLUGIN_VERSION0)
|
|
|
|
</set>
|
2003-08-06 15:44:00 +00:00
|
|
|
|
|
|
|
<define-rule name="wx-base-plugin" extends="module">
|
|
|
|
<template>
|
|
|
|
<dllname>
|
2009-09-12 11:29:11 +00:00
|
|
|
$(id)$(WX_U_D_SUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
|
2003-08-06 15:44:00 +00:00
|
|
|
</dllname>
|
|
|
|
<define>WXUSINGDLL</define>
|
2003-08-08 09:49:24 +00:00
|
|
|
<define>wxUSE_GUI=0</define>
|
2004-02-01 18:31:54 +00:00
|
|
|
<install-to>$(PLUGINS_INST_DIR)</install-to>
|
2003-08-06 15:44:00 +00:00
|
|
|
</template>
|
|
|
|
</define-rule>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-08-06 15:44:00 +00:00
|
|
|
<define-rule name="wx-gui-plugin" extends="module">
|
|
|
|
<template template="wx">
|
|
|
|
<dllname>
|
2009-09-12 11:29:11 +00:00
|
|
|
$(id)_$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
|
2003-08-06 15:44:00 +00:00
|
|
|
</dllname>
|
|
|
|
<define>WXUSINGDLL</define>
|
2004-02-01 18:31:54 +00:00
|
|
|
<install-to>$(PLUGINS_INST_DIR)</install-to>
|
2003-08-06 15:44:00 +00:00
|
|
|
</template>
|
|
|
|
</define-rule>
|
2004-11-04 18:31:20 +00:00
|
|
|
|
2003-06-23 19:50:43 +00:00
|
|
|
<!-- =============================================================== -->
|
2007-11-18 22:12:23 +00:00
|
|
|
<!-- Support for wxWidgets samples: -->
|
2003-06-23 19:50:43 +00:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
|
|
<!-- Link against one wxWin library. Value must be literal! -->
|
2003-08-06 12:15:48 +00:00
|
|
|
<define-tag name="wx-lib" rules="exe,dll,module">
|
2003-06-23 19:50:43 +00:00
|
|
|
<sys-lib>$(wxwin.libToLink(value))</sys-lib>
|
2003-09-09 22:15:25 +00:00
|
|
|
<ldlibs>$(wxwin.extraLdflags(value))</ldlibs>
|
2007-11-18 21:54:54 +00:00
|
|
|
<!-- msvs200?prj formats don't support external dependencies yet: -->
|
2007-11-18 18:00:21 +00:00
|
|
|
<if cond="FORMAT in ['msvc6prj','msevc4prj'] and MONOLITHIC=='0'">
|
2003-08-14 16:18:41 +00:00
|
|
|
<depends-on-dsp>$(wxwin.makeDspDependency(value))</depends-on-dsp>
|
2003-08-13 21:22:50 +00:00
|
|
|
</if>
|
2003-06-23 19:50:43 +00:00
|
|
|
</define-tag>
|
|
|
|
|
2003-12-14 21:40:24 +00: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 19:50:43 +00:00
|
|
|
</makefile>
|