2003-06-23 15:50:43 -04:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
|
|
|
|
|
2004-05-23 10:56:36 -04:00
|
|
|
<!-- Master bakefile for wxWidgets -->
|
2003-06-23 15:50:43 -04:00
|
|
|
|
|
|
|
<makefile>
|
|
|
|
|
2003-07-22 09:03:24 -04:00
|
|
|
<!-- make sure setup.h is created as soon as possible: -->
|
|
|
|
<phony id="setup_h" cond="FORMAT!='autoconf'">
|
|
|
|
<dependency-of>all</dependency-of>
|
|
|
|
</phony>
|
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<set var="BUILDING_LIB">1</set>
|
2005-07-21 13:30:41 -04:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- common rules, names etc. for wx: -->
|
|
|
|
<include file="common.bkl"/>
|
2005-07-21 13:30:41 -04:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- list of files sorted into categories: -->
|
|
|
|
<include file="files.bkl"/>
|
2005-07-21 13:30:41 -04:00
|
|
|
|
2004-05-23 10:56:36 -04:00
|
|
|
<!-- wxWidgets variant where everything is in one library: -->
|
2003-06-23 15:50:43 -04:00
|
|
|
<include file="monolithic.bkl"/>
|
|
|
|
<!-- ...and when there are multiple libraries: -->
|
2003-06-25 12:29:51 -04:00
|
|
|
<include file="multilib.bkl"/>
|
2004-04-01 15:20:57 -05:00
|
|
|
|
2008-12-25 13:49:29 -05:00
|
|
|
<if cond="IS_MSVC_PRJ">
|
2004-04-01 15:20:57 -05:00
|
|
|
<set var="MSVC6PRJ_MERGED_TARGETS">
|
|
|
|
<if cond="MONOLITHIC=='0'">$(MSVC6PRJ_MERGED_TARGETS_MULTILIB)</if>
|
|
|
|
<if cond="MONOLITHIC=='1'">$(MSVC6PRJ_MERGED_TARGETS_MONOLIB)</if>
|
|
|
|
</set>
|
|
|
|
</if>
|
2005-07-21 13:30:41 -04:00
|
|
|
|
2003-07-16 18:27:21 -04:00
|
|
|
<!-- OpenGL canvas is built as separate library in both cases: -->
|
|
|
|
<include file="opengl.bkl"/>
|
2004-02-01 13:31:54 -05:00
|
|
|
<!-- Dynamically loadable plugins: -->
|
|
|
|
<include file="plugins.bkl"/>
|
2005-07-21 13:30:41 -04:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- Samples target (not dependency of 'all'): -->
|
|
|
|
<subproject id="samples">
|
2003-08-09 18:38:55 -04:00
|
|
|
<installable>no</installable>
|
|
|
|
<dir cond="FORMAT=='autoconf'">samples</dir>
|
2012-06-08 14:44:10 -04:00
|
|
|
<dir cond="FORMAT!='autoconf'">../../samples</dir>
|
2003-06-23 15:50:43 -04:00
|
|
|
</subproject>
|
2005-07-21 13:30:41 -04:00
|
|
|
|
2004-10-09 08:53:00 -04:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
2005-07-21 13:30:41 -04:00
|
|
|
|
2004-10-09 08:53:00 -04:00
|
|
|
<!-- WXRC compiler is built by default: -->
|
|
|
|
<!-- FIXME: this is dirty hack, better bakefile support for
|
|
|
|
conditional and optional subprojects is needed -->
|
|
|
|
<action id="wxrc" cond="USE_XRC=='1'">
|
|
|
|
<dependency-of>all</dependency-of>
|
2005-03-09 18:01:35 -05:00
|
|
|
|
|
|
|
<!-- some of these are not built in all configurations, <depends>
|
|
|
|
takes care of ignoring the disabled ones: -->
|
|
|
|
<depends>monodll</depends>
|
|
|
|
<depends>monolib</depends>
|
|
|
|
<depends>basedll</depends>
|
|
|
|
<depends>baselib</depends>
|
|
|
|
<depends>xmldll</depends>
|
|
|
|
<depends>xmllib</depends>
|
2005-07-21 13:30:41 -04:00
|
|
|
|
2004-10-09 08:53:00 -04:00
|
|
|
<command>
|
2008-08-31 12:29:11 -04:00
|
|
|
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && $(DOLLAR)(MAKE) all ; fi)
|
2004-10-09 08:53:00 -04:00
|
|
|
</command>
|
|
|
|
</action>
|
|
|
|
<action id="clean-wxrc" cond="USE_XRC=='1'">
|
|
|
|
<dependency-of>clean</dependency-of>
|
|
|
|
<command>
|
2008-08-31 12:29:11 -04:00
|
|
|
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && $(DOLLAR)(MAKE) clean ; fi)
|
2004-10-09 08:53:00 -04:00
|
|
|
</command>
|
|
|
|
</action>
|
|
|
|
<action id="install-wxrc" cond="USE_XRC=='1'">
|
|
|
|
<dependency-of>install</dependency-of>
|
2005-03-09 18:01:35 -05:00
|
|
|
<depends>wxrc</depends>
|
2004-10-09 08:53:00 -04:00
|
|
|
<command>
|
2008-08-31 12:29:11 -04:00
|
|
|
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && $(DOLLAR)(MAKE) install ; fi)
|
2004-10-09 08:53:00 -04:00
|
|
|
</command>
|
|
|
|
</action>
|
2005-07-21 13:30:41 -04:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- "make install": -->
|
|
|
|
|
|
|
|
<data-files>
|
|
|
|
<files>wxwin.m4</files>
|
|
|
|
<install-to>$(DATADIR)/aclocal</install-to>
|
|
|
|
</data-files>
|
|
|
|
|
2005-08-24 15:20:18 -04:00
|
|
|
<data-files>
|
2005-09-12 15:00:24 -04:00
|
|
|
<srcdir>$(SRCDIR)/build/bakefiles/wxpresets/presets</srcdir>
|
2009-10-19 09:57:25 -04:00
|
|
|
<files>wx.bkl wx_unix.bkl wx_win32.bkl wx_xrc.bkl wx_presets.py</files>
|
2005-08-24 15:20:18 -04:00
|
|
|
<install-to>$(DATADIR)/bakefile/presets</install-to>
|
|
|
|
</data-files>
|
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<action id="install-wxconfig">
|
|
|
|
<dependency-of>install</dependency-of>
|
|
|
|
<command>
|
2003-09-15 17:00:27 -04:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
|
2004-07-18 07:19:34 -04:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(LIBDIR)/wx/config
|
2020-05-02 09:55:25 -04:00
|
|
|
$(INSTALL_SCRIPT) lib/wx/config/$(TOOLCHAIN_FULLNAME) $(DESTDIR)$(LIBDIR)/wx/config
|
2013-09-03 20:14:42 -04:00
|
|
|
(cd $(DESTDIR)$(BINDIR) && rm -f wx-config && $(LN_S) $(LIBDIR)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config || cp -p $(DESTDIR)$(LIBDIR)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config)
|
2003-06-23 15:50:43 -04:00
|
|
|
</command>
|
|
|
|
</action>
|
|
|
|
|
2009-03-15 12:07:56 -04:00
|
|
|
<modify-target target="install">
|
|
|
|
<command>
|
|
|
|
$(DYLIB_RPATH_INSTALL)
|
|
|
|
</command>
|
|
|
|
</modify-target>
|
|
|
|
|
2005-11-08 17:49:46 -05:00
|
|
|
<set var="RCDEFS_H">
|
2005-11-08 19:10:31 -05:00
|
|
|
<if cond="TOOLKIT=='MSW'">msw/rcdefs.h</if>
|
2005-11-08 17:49:46 -05:00
|
|
|
</set>
|
2008-02-12 06:29:35 -05:00
|
|
|
|
|
|
|
|
|
|
|
<data-files-tree>
|
2005-11-08 19:10:31 -05:00
|
|
|
<srcdir>
|
|
|
|
$(BUILDDIR)/lib/wx/include/$(TOOLCHAIN_FULLNAME)/wx
|
|
|
|
</srcdir>
|
2005-11-08 17:49:46 -05:00
|
|
|
<files>
|
2005-11-08 19:10:31 -05:00
|
|
|
setup.h $(RCDEFS_H)
|
2005-11-08 17:49:46 -05:00
|
|
|
</files>
|
2005-11-08 19:10:31 -05:00
|
|
|
<install-to>
|
|
|
|
$(LIBDIR)/wx/include/$(TOOLCHAIN_FULLNAME)/wx
|
|
|
|
</install-to>
|
2008-02-12 06:29:35 -05:00
|
|
|
</data-files-tree>
|
2003-06-23 15:50:43 -04:00
|
|
|
|
2008-10-12 09:03:53 -04:00
|
|
|
<!-- FIXME: make this use per-target <headers> once it supports
|
|
|
|
prefix removal -->
|
2008-02-12 06:29:35 -05:00
|
|
|
<data-files-tree>
|
2003-06-23 15:50:43 -04:00
|
|
|
<srcdir>$(SRCDIR)/include</srcdir>
|
|
|
|
<files>$(ALL_HEADERS)</files>
|
2004-07-22 04:28:28 -04:00
|
|
|
<install-to>
|
2004-09-26 04:46:55 -04:00
|
|
|
$(INCLUDEDIR)/wx-$(WX_RELEASE)$(WX_FLAVOUR)
|
2004-07-22 04:28:28 -04:00
|
|
|
</install-to>
|
2008-02-12 06:29:35 -05:00
|
|
|
</data-files-tree>
|
2003-06-23 15:50:43 -04:00
|
|
|
|
2003-08-14 19:11:21 -04:00
|
|
|
<!-- Locales: -->
|
|
|
|
<using module="gettext"/>
|
|
|
|
<gettext-catalogs id="locale">
|
|
|
|
<srcdir>$(SRCDIR)/locale</srcdir>
|
2021-02-07 14:17:24 -05:00
|
|
|
<catalog-name>wxstd-$(WX_RELEASE)</catalog-name>
|
2003-08-14 19:11:21 -04:00
|
|
|
<linguas>
|
|
|
|
ca cs da de el es fi fr hu id it ja nl pl ru sl sv tr uk
|
|
|
|
zh zh_CN zh_TW
|
|
|
|
</linguas>
|
|
|
|
<install-to>$(LOCALEDIR)</install-to>
|
|
|
|
</gettext-catalogs>
|
2003-06-23 15:50:43 -04:00
|
|
|
</if>
|
|
|
|
|
2003-06-27 09:41:21 -04:00
|
|
|
|
2014-05-15 19:56:58 -04:00
|
|
|
<!-- copy setup.h on DOS/Windows if the format supports it: -->
|
2012-06-12 17:42:02 -04:00
|
|
|
<if cond="FORMAT!='autoconf' and IS_MSVC_PRJ=='0'">
|
2003-06-27 09:41:21 -04:00
|
|
|
<mkdir id="libdir">
|
2003-07-04 10:59:11 -04:00
|
|
|
<dir>$(LIBDIRNAME)</dir>
|
|
|
|
</mkdir>
|
2003-08-15 17:20:32 -04:00
|
|
|
<mkdir id="libdir_setup">
|
2003-07-04 10:59:11 -04:00
|
|
|
<depends>libdir</depends>
|
2005-07-21 13:30:41 -04:00
|
|
|
<dir>$(SETUPHDIR)</dir>
|
2003-08-15 17:20:32 -04:00
|
|
|
</mkdir>
|
|
|
|
<mkdir id="libdir_setup_wx">
|
|
|
|
<depends>libdir_setup</depends>
|
2003-07-22 09:03:24 -04:00
|
|
|
<dependency-of>setup_h</dependency-of>
|
2005-07-21 13:30:41 -04:00
|
|
|
<dir>$(SETUPHDIR)/wx</dir>
|
2003-06-27 09:41:21 -04:00
|
|
|
</mkdir>
|
2003-08-14 07:07:23 -04:00
|
|
|
|
2003-08-15 17:20:32 -04:00
|
|
|
<set var="SETUP_H_SUBDIR">
|
2003-08-14 07:07:23 -04:00
|
|
|
<if cond="WXUNIV=='1'">univ</if>
|
2014-05-15 19:56:58 -04:00
|
|
|
<if cond="WXUNIV=='0'">$(TOOLKIT_LOWERCASE)</if>
|
2003-08-14 07:07:23 -04:00
|
|
|
</set>
|
2005-07-21 13:30:41 -04:00
|
|
|
|
2003-07-22 09:03:24 -04:00
|
|
|
<copy-file-to-file-if-not-exist id="setup.h">
|
|
|
|
<dependency-of>setup_h</dependency-of>
|
2003-08-15 17:20:32 -04:00
|
|
|
<src>$(SRCDIR)/include/wx/$(SETUP_H_SUBDIR)/setup.h</src>
|
|
|
|
<dst>$(SETUPHDIR)/wx/setup.h</dst>
|
2003-07-22 09:03:24 -04:00
|
|
|
</copy-file-to-file-if-not-exist>
|
2003-06-27 09:41:21 -04:00
|
|
|
</if>
|
|
|
|
|
2003-08-09 18:38:55 -04:00
|
|
|
|
2005-11-08 17:49:46 -05:00
|
|
|
<!-- create rcdefs.h on Windows: -->
|
2012-06-08 14:44:10 -04:00
|
|
|
<if cond="FORMAT in ['borland','mingw','msvc','watcom']">
|
2005-11-08 17:49:46 -05:00
|
|
|
|
|
|
|
<mkdir id="libdir_setup_wx_msw">
|
|
|
|
<depends>libdir_setup_wx</depends>
|
|
|
|
<dir>$(SETUPHDIR)/wx/msw</dir>
|
|
|
|
</mkdir>
|
|
|
|
|
|
|
|
<action id="rcdefs.h">
|
|
|
|
|
2005-11-15 10:36:33 -05:00
|
|
|
<!-- Can't seem to set id to a name with a dollar sign
|
|
|
|
so use __targetname as a temporary work around -->
|
|
|
|
<set var="__targetname">$(SETUPHDIR)\wx\msw\rcdefs.h</set>
|
|
|
|
|
2005-11-08 17:49:46 -05:00
|
|
|
<dependency-of>setup_h</dependency-of>
|
|
|
|
<depends>libdir_setup_wx_msw</depends>
|
|
|
|
<depends-on-file>$(SRCDIR)/include/wx/msw/genrcdefs.h</depends-on-file>
|
|
|
|
|
|
|
|
<command>
|
2020-02-01 18:13:55 -05:00
|
|
|
$(DOLLAR)(CPP) $(DOLLAR)(CPPFLAGS) "$(nativePaths(SRCDIR))\include\wx\msw\genrcdefs.h" > "$(SETUPHDIR)\wx\msw\rcdefs.h"
|
2005-11-08 17:49:46 -05:00
|
|
|
</command>
|
|
|
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
2003-08-09 18:38:55 -04:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
2003-08-14 19:11:21 -04:00
|
|
|
|
|
|
|
<!-- Show this banner after installation: -->
|
2003-08-09 18:38:55 -04:00
|
|
|
<modify-target target="install">
|
|
|
|
<command>
|
|
|
|
@echo " "
|
2003-08-17 11:07:58 -04:00
|
|
|
@echo " ------------------------------------------------------"
|
|
|
|
@echo " "
|
2004-05-23 10:56:36 -04:00
|
|
|
@echo " The installation of wxWidgets is finished. On certain"
|
2003-08-09 18:38:55 -04:00
|
|
|
@echo " platforms (e.g. Linux) you'll now have to run ldconfig"
|
|
|
|
@echo " if you installed a shared library and also modify the"
|
|
|
|
@echo " LD_LIBRARY_PATH (or equivalent) environment variable."
|
|
|
|
@echo " "
|
2004-05-23 10:56:36 -04:00
|
|
|
@echo " wxWidgets comes with no guarantees and doesn't claim"
|
2003-08-09 18:38:55 -04:00
|
|
|
@echo " to be suitable for any purpose."
|
|
|
|
@echo " "
|
2010-07-13 09:29:13 -04:00
|
|
|
@echo " Read the wxWindows Licence on licencing conditions."
|
2003-08-17 11:07:58 -04:00
|
|
|
@echo " "
|
|
|
|
@echo " ------------------------------------------------------"
|
2003-08-09 18:38:55 -04:00
|
|
|
@echo " "
|
|
|
|
</command>
|
|
|
|
</modify-target>
|
|
|
|
|
2003-08-14 19:11:21 -04:00
|
|
|
<!-- add "make dist" target to autoconf: -->
|
2003-08-14 16:35:07 -04:00
|
|
|
<set var="VARS_DONT_ELIMINATE" append="1">
|
2005-10-18 16:50:46 -04:00
|
|
|
ALL_PORTS_BASE_HEADERS ALL_BASE_SOURCES WX_VERSION
|
2003-08-14 16:35:07 -04:00
|
|
|
</set>
|
|
|
|
<fragment format="autoconf" file="make_dist.mk"/>
|
2003-08-14 19:11:21 -04:00
|
|
|
|
2003-08-14 16:35:07 -04:00
|
|
|
</if>
|
2005-07-21 13:30:41 -04:00
|
|
|
|
2003-11-05 18:33:24 -05:00
|
|
|
<include file="build_cfg.bkl"/>
|
2003-08-14 16:35:07 -04:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
</makefile>
|