initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
243
libs/wxWidgets-3.3.1/build/bakefiles/Bakefiles.bkgen
Normal file
243
libs/wxWidgets-3.3.1/build/bakefiles/Bakefiles.bkgen
Normal file
@@ -0,0 +1,243 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<bakefile-gen xmlns="http://www.bakefile.org/schema/bakefile-gen">
|
||||
|
||||
<!--
|
||||
The formats below are disabled because wxWidgets doesn't support these
|
||||
compilers any longer (although bakefile still does).
|
||||
-->
|
||||
<disable-formats>borland,dmars,dmars_smake,msvc6prj,msvs2003prj,msvs2005prj,msvs2008prj,watcom</disable-formats>
|
||||
|
||||
|
||||
<!-- These wildcards match all .bkl files in wxWidgets tree: -->
|
||||
<input>
|
||||
wx.bkl
|
||||
../../samples/*.bkl
|
||||
../../samples/*/*.bkl
|
||||
../../samples/*/*/*.bkl
|
||||
../../demos/*.bkl
|
||||
../../demos/*/*.bkl
|
||||
../../demos/*/*/*.bkl
|
||||
../../utils/*.bkl
|
||||
../../utils/*/*.bkl
|
||||
../../utils/*/*/*.bkl
|
||||
../../tests/*.bkl
|
||||
../../tests/*/*.bkl
|
||||
</input>
|
||||
|
||||
<!-- List of output formats to generate: -->
|
||||
<add-formats>
|
||||
autoconf,borland,dmars_smake,dmars,mingw,msvc,msvc6prj,msvs2003prj,msvs2005prj,msvs2008prj,watcom
|
||||
</add-formats>
|
||||
|
||||
<del-formats files="../../samples/*.bkl">
|
||||
autoconf,msvc6prj,msvs2003prj,msvs2005prj,msvs2008prj
|
||||
</del-formats>
|
||||
<del-formats files="../../demos/*.bkl">
|
||||
msvc6prj,msvs2003prj,msvs2005prj,msvs2008prj
|
||||
</del-formats>
|
||||
<del-formats files="../../samples/html/html_samples.bkl">
|
||||
msvc6prj,msvs2003prj,msvs2005prj,msvs2008prj
|
||||
</del-formats>
|
||||
<del-formats files="../../samples/opengl/opengl_samples.bkl">
|
||||
msvc6prj,msvs2003prj,msvs2005prj,msvs2008prj
|
||||
</del-formats>
|
||||
<del-formats files="../../utils/*.bkl">
|
||||
msvc6prj,msvs2003prj,msvs2005prj,msvs2008prj
|
||||
</del-formats>
|
||||
|
||||
<!-- Some samples use MSVC-specific stuff -->
|
||||
<del-formats files="../../samples/mfc/mfc.bkl">
|
||||
autoconf,borland,dmars_smake,dmars,mingw,watcom
|
||||
</del-formats>
|
||||
|
||||
<!-- Default flags (for all formats and bakefiles): -->
|
||||
<add-flags>-Iformats</add-flags>
|
||||
|
||||
|
||||
<!-- Directories where the files go: -->
|
||||
<add-flags files="wx.bkl" formats="autoconf">
|
||||
-o../../Makefile.in
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="borland">
|
||||
-o../msw/makefile.bcc
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="dmars_smake">
|
||||
-o../msw/makefile.dms
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="dmars">
|
||||
-o../msw/makefile.dmc
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="mingw">
|
||||
-o../msw/makefile.gcc
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="msvc">
|
||||
-o../msw/makefile.vc
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="watcom">
|
||||
-o../msw/makefile.wat
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="msvc6prj">
|
||||
-o../msw/wx.dsw
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="msvs2003prj">
|
||||
-o../msw/wx_vc7.sln
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="msvs2005prj">
|
||||
-o../msw/wx_vc8.sln
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="msvs2008prj">
|
||||
-o../msw/wx_vc9.sln
|
||||
</add-flags>
|
||||
|
||||
|
||||
|
||||
<!-- Format specific settings: -->
|
||||
<add-flags formats="autoconf">
|
||||
-DAUTOCONF_MACROS_FILE=../../autoconf_inc.m4
|
||||
</add-flags>
|
||||
|
||||
|
||||
<!-- Use different names for Visual C++ 200x project files: -->
|
||||
<add-flags files="../../samples/*/*,../../samples/*/*/*,../../demos/*/*,../../utils/*/*,../../utils/*/*/*,../../tests/*,../../tests/*/*"
|
||||
formats="msvs2003prj">
|
||||
-o$(INPUT_FILE_DIR)/$(INPUT_FILE_BASENAME_NOEXT)_vc7.sln
|
||||
</add-flags>
|
||||
<add-flags files="../../samples/*/*,../../samples/*/*/*,../../demos/*/*,../../utils/*/*,../../utils/*/*/*,../../tests/*,../../tests/*/*"
|
||||
formats="msvs2005prj">
|
||||
-o$(INPUT_FILE_DIR)/$(INPUT_FILE_BASENAME_NOEXT)_vc8.sln
|
||||
</add-flags>
|
||||
<add-flags files="../../samples/*/*,../../samples/*/*/*,../../demos/*/*,../../utils/*/*,../../utils/*/*/*,../../tests/*,../../tests/*/*"
|
||||
formats="msvs2008prj">
|
||||
-o$(INPUT_FILE_DIR)/$(INPUT_FILE_BASENAME_NOEXT)_vc9.sln
|
||||
</add-flags>
|
||||
|
||||
<add-flags formats="msvs2005prj,msvs2008prj">
|
||||
-DMSVS_PLATFORMS=win32,win64
|
||||
</add-flags>
|
||||
|
||||
|
||||
<!-- Makefile specific settings: -->
|
||||
|
||||
<add-flags formats="borland,dmars_smake,dmars,mingw,msvc,watcom">
|
||||
-DWRITE_OPTIONS_FILE=0
|
||||
</add-flags>
|
||||
<del-flags formats="borland,dmars_smake,dmars,mingw,msvc,watcom"
|
||||
files="wx.bkl">
|
||||
-DWRITE_OPTIONS_FILE=0
|
||||
</del-flags>
|
||||
|
||||
<add-flags files="wx.bkl" formats="borland">
|
||||
-DOPTIONS_FILE=config.bcc
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="dmars_smake">
|
||||
-DOPTIONS_FILE=config.dms
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="dmars">
|
||||
-DOPTIONS_FILE=config.dmc
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="mingw">
|
||||
-DOPTIONS_FILE=config.gcc
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="msvc">
|
||||
-DOPTIONS_FILE=config.vc
|
||||
</add-flags>
|
||||
<add-flags files="wx.bkl" formats="watcom">
|
||||
-DOPTIONS_FILE=config.wat
|
||||
</add-flags>
|
||||
|
||||
<add-flags files="../../*/*">-DWXTOPDIR=../</add-flags>
|
||||
<add-flags files="../../*/*/*">-DWXTOPDIR=../../</add-flags>
|
||||
<add-flags files="../../*/*/*/*">-DWXTOPDIR=../../../</add-flags>
|
||||
<add-flags files="../../*/*/*/*/*">-DWXTOPDIR=../../../../</add-flags>
|
||||
|
||||
<add-flags files="../../*/*" formats="borland">
|
||||
-DOPTIONS_FILE=../build/msw/config.bcc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*" formats="dmars_smake">
|
||||
-DOPTIONS_FILE=../build/msw/config.dms
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*" formats="dmars">
|
||||
-DOPTIONS_FILE=../build/msw/config.dmc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*" formats="mingw">
|
||||
-DOPTIONS_FILE=../build/msw/config.gcc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*" formats="msvc">
|
||||
-DOPTIONS_FILE=../build/msw/config.vc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*" formats="watcom">
|
||||
-DOPTIONS_FILE=../build/msw/config.wat
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*" formats="borland">
|
||||
-DOPTIONS_FILE=../../build/msw/config.bcc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*" formats="dmars_smake">
|
||||
-DOPTIONS_FILE=../../build/msw/config.dms
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*" formats="dmars">
|
||||
-DOPTIONS_FILE=../../build/msw/config.dmc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*" formats="mingw">
|
||||
-DOPTIONS_FILE=../../build/msw/config.gcc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*" formats="msvc">
|
||||
-DOPTIONS_FILE=../../build/msw/config.vc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*" formats="watcom">
|
||||
-DOPTIONS_FILE=../../build/msw/config.wat
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*/*" formats="borland">
|
||||
-DOPTIONS_FILE=../../../build/msw/config.bcc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*/*" formats="dmars_smake">
|
||||
-DOPTIONS_FILE=../../../build/msw/config.dms
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*/*" formats="dmars">
|
||||
-DOPTIONS_FILE=../../../build/msw/config.dmc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*/*" formats="mingw">
|
||||
-DOPTIONS_FILE=../../../build/msw/config.gcc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*/*" formats="msvc">
|
||||
-DOPTIONS_FILE=../../../build/msw/config.vc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*/*" formats="watcom">
|
||||
-DOPTIONS_FILE=../../../build/msw/config.wat
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*/*/*" formats="borland">
|
||||
-DOPTIONS_FILE=../../../../build/msw/config.bcc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*/*/*" formats="dmars_smake">
|
||||
-DOPTIONS_FILE=../../../../build/msw/config.dms
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*/*/*" formats="dmars">
|
||||
-DOPTIONS_FILE=../../../../build/msw/config.dmc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*/*/*" formats="mingw">
|
||||
-DOPTIONS_FILE=../../../../build/msw/config.gcc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*/*/*" formats="msvc">
|
||||
-DOPTIONS_FILE=../../../../build/msw/config.vc
|
||||
</add-flags>
|
||||
<add-flags files="../../*/*/*/*/*" formats="watcom">
|
||||
-DOPTIONS_FILE=../../../../build/msw/config.wat
|
||||
</add-flags>
|
||||
|
||||
|
||||
<!-- Makefiles for out-of-tree building of samples on Unix: -->
|
||||
<add-formats files="../../samples/*/*.bkl,../../samples/*/*/*.bkl">
|
||||
gnu
|
||||
</add-formats>
|
||||
<del-formats files="../../samples/mfc/mfc.bkl,../../samples/webview_chromium/webview_chromium.bkl">
|
||||
gnu
|
||||
</del-formats>
|
||||
<add-flags files="../../samples/*/*.bkl,../../samples/*/*/*.bkl"
|
||||
formats="gnu">
|
||||
-DOUT_OF_TREE_MAKEFILES=1 -o$(INPUT_FILE_DIR)/makefile.unx
|
||||
</add-flags>
|
||||
|
||||
<!-- Personal customizations (not in VCS): -->
|
||||
<include file="Bakefiles.local.bkgen" ignore_missing="1"/>
|
||||
|
||||
</bakefile-gen>
|
||||
40
libs/wxWidgets-3.3.1/build/bakefiles/README
Normal file
40
libs/wxWidgets-3.3.1/build/bakefiles/README
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
This directory contains Bakefile (see https://www.bakefile.org)
|
||||
files needed to generate native makefiles for wxWidgets library and
|
||||
samples.
|
||||
|
||||
Use the bakefile_gen utility to regenerate the makefiles (run it in this
|
||||
directory!). If you run it with no arguments, it will generate all makefiles
|
||||
that are not up to date.
|
||||
|
||||
Use "bakefile_gen -c" to clean generated files.
|
||||
|
||||
You can generate or clean only subset of files by specifying -f or -b flags
|
||||
when invoking bakefile_gen. For example, "bakefile_gen -fborland,msvc" will
|
||||
only regenerate Borland C++ and MSVC makefiles. -b flag limits
|
||||
regeneration only to specified bakefiles. For example,
|
||||
"bakefile_gen -b wx.bkl" will only regenerate main library makefiles.
|
||||
"bakefile_gen -b "../../samples/html/*/*.bkl" will regenerate makefiles for
|
||||
all wxHTML samples. -b and -f can be combined.
|
||||
|
||||
You can customize the process of generating makefiles by adding file
|
||||
Bakefiles.local.bkgen (same format as Bakefiles.bkgen) with further settings.
|
||||
For example, you may disable output for compilers you don't use:
|
||||
<?xml version="1.0" ?>
|
||||
<bakefile-gen>
|
||||
<disable-formats>msvc,msvs2003prj</disable-formats>
|
||||
</bakefile-gen>
|
||||
|
||||
Note: bakefile_gen creates file .bakefile_gen.state with dependencies
|
||||
information. This file can be safely deleted, but it contains valuable
|
||||
information that speed up regeneration process.
|
||||
|
||||
Note: the following files are generated using bakefile_gen:
|
||||
* build/msw/*
|
||||
* makefiles with same names as makefiles in above dirs, Makefile.in files
|
||||
that contain "This makefile was generated by Bakefile" banner and
|
||||
VC++ project files in samples, demos and utils directories
|
||||
* src/wxWindows.dsp
|
||||
* autoconf_inc.m4
|
||||
* all Makefile.in files
|
||||
(hopefully I didn't forget anything - VS)
|
||||
67
libs/wxWidgets-3.3.1/build/bakefiles/build_cfg.bkl
Normal file
67
libs/wxWidgets-3.3.1/build/bakefiles/build_cfg.bkl
Normal file
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<!--
|
||||
Generate build.cfg file on Windows, with settings used to build
|
||||
the library.
|
||||
-->
|
||||
|
||||
<if cond="FORMAT not in ['autoconf','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">
|
||||
|
||||
<set var="BUILD_CFG_FILE" make_var="1">
|
||||
$(SETUPHDIR)$(DIRSEP)build.cfg
|
||||
</set>
|
||||
|
||||
<action id="build_cfg_file">
|
||||
<is-phony>1</is-phony>
|
||||
<dependency-of>all</dependency-of>
|
||||
<depends>libdir_setup</depends>
|
||||
<command>
|
||||
@echo WXVER_MAJOR=$(WXVER_MAJOR) >$(BUILD_CFG_FILE)
|
||||
@echo WXVER_MINOR=$(WXVER_MINOR) >>$(BUILD_CFG_FILE)
|
||||
@echo WXVER_RELEASE=$(WXVER_RELEASE) >>$(BUILD_CFG_FILE)
|
||||
@echo BUILD=$(BUILD) >>$(BUILD_CFG_FILE)
|
||||
@echo MONOLITHIC=$(MONOLITHIC) >>$(BUILD_CFG_FILE)
|
||||
@echo SHARED=$(SHARED) >>$(BUILD_CFG_FILE)
|
||||
@echo UNICODE=1 >>$(BUILD_CFG_FILE)
|
||||
@echo TOOLKIT=$(TOOLKIT) >>$(BUILD_CFG_FILE)
|
||||
@echo TOOLKIT_VERSION=$(TOOLKIT_VERSION) >>$(BUILD_CFG_FILE)
|
||||
@echo WXUNIV=$(WXUNIV) >>$(BUILD_CFG_FILE)
|
||||
@echo CFG=$(CFG) >>$(BUILD_CFG_FILE)
|
||||
@echo VENDOR=$(VENDOR) >>$(BUILD_CFG_FILE)
|
||||
@echo OFFICIAL_BUILD=$(OFFICIAL_BUILD) >>$(BUILD_CFG_FILE)
|
||||
@echo DEBUG_FLAG=$(DEBUG_FLAG) >>$(BUILD_CFG_FILE)
|
||||
@echo DEBUG_INFO=$(DEBUG_INFO) >>$(BUILD_CFG_FILE)
|
||||
@echo RUNTIME_LIBS=$(RUNTIME_LIBS) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_EXCEPTIONS=$(USE_EXCEPTIONS) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_RTTI=$(USE_RTTI) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_THREADS=$(USE_THREADS) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_AUI=$(USE_AUI) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_GUI=$(USE_GUI) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_HTML=$(USE_HTML) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_MEDIA=$(USE_MEDIA) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_OPENGL=$(USE_OPENGL) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_QA=$(USE_QA) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_PROPGRID=$(USE_PROPGRID) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_RIBBON=$(USE_RIBBON) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_RICHTEXT=$(USE_RICHTEXT) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_STC=$(USE_STC) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_WEBVIEW=$(USE_WEBVIEW) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_WEBVIEW_CHROMIUM=$(USE_WEBVIEW_CHROMIUM) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_XML=$(USE_XML) >>$(BUILD_CFG_FILE)
|
||||
@echo USE_XRC=$(USE_XRC) >>$(BUILD_CFG_FILE)
|
||||
@echo COMPILER=$(COMPILER) >>$(BUILD_CFG_FILE)
|
||||
@echo COMPILER_VERSION=$(COMPILER_VERSION) >>$(BUILD_CFG_FILE)
|
||||
@echo CC=$(CC) >>$(BUILD_CFG_FILE)
|
||||
@echo CXX=$(CXX) >>$(BUILD_CFG_FILE)
|
||||
@echo CFLAGS=$(CFLAGS) >>$(BUILD_CFG_FILE)
|
||||
@echo CPPFLAGS=$(CPPFLAGS) >>$(BUILD_CFG_FILE)
|
||||
@echo CXXFLAGS=$(CXXFLAGS) >>$(BUILD_CFG_FILE)
|
||||
@echo LDFLAGS=$(LDFLAGS) >>$(BUILD_CFG_FILE)
|
||||
</command>
|
||||
</action>
|
||||
|
||||
</if>
|
||||
|
||||
</makefile>
|
||||
930
libs/wxWidgets-3.3.1/build/bakefiles/common.bkl
Normal file
930
libs/wxWidgets-3.3.1/build/bakefiles/common.bkl
Normal file
@@ -0,0 +1,930 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<requires version="0.2.7"/>
|
||||
|
||||
<!-- bakefile modules we need: -->
|
||||
<using module="datafiles"/>
|
||||
|
||||
<!-- load python module with wxwindows helpers: -->
|
||||
<using module="wxwin"/>
|
||||
|
||||
<!-- DFE: Add a platform meaning regular MacOS (not OS X) -->
|
||||
<!-- FIXME: This will be handled in Bakefile but for now I wanted to
|
||||
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>
|
||||
|
||||
<set var="PLATFORM_QT">0</set>
|
||||
|
||||
|
||||
<include file="config.bkl"/>
|
||||
|
||||
<include file="plugins_deps.bkl"/>
|
||||
|
||||
|
||||
<!-- wxWidgets version numbers logic: -->
|
||||
<include file="version.bkl"/>
|
||||
|
||||
<set var="ARCH_SUFFIX">
|
||||
<if cond="FORMAT=='msvs2005prj' and MSVS_PLATFORM=='win64'">_x64</if>
|
||||
<if cond="FORMAT=='msvs2008prj' and MSVS_PLATFORM=='win64'">_x64</if>
|
||||
<if cond="TARGET_CPU=='amd64'">_x64</if>
|
||||
<if cond="TARGET_CPU=='AMD64'">_x64</if>
|
||||
<if cond="TARGET_CPU=='arm'">_arm</if>
|
||||
<if cond="TARGET_CPU=='ARM'">_arm</if>
|
||||
<if cond="TARGET_CPU=='arm64'">_arm64</if>
|
||||
<if cond="TARGET_CPU=='ARM64'">_arm64</if>
|
||||
<if cond="TARGET_CPU=='ia64'">_ia64</if>
|
||||
<if cond="TARGET_CPU=='IA64'">_ia64</if>
|
||||
<if cond="TARGET_CPU=='x64'">_x64</if>
|
||||
<if cond="TARGET_CPU=='X64'">_x64</if>
|
||||
<if cond="FORMAT=='msvc' and TARGET_CPU=='' and VISUALSTUDIOPLATFORM=='x64'">_x64</if>
|
||||
<if cond="FORMAT=='msvc' and TARGET_CPU=='' and VISUALSTUDIOPLATFORM=='X64'">_x64</if>
|
||||
</set>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- 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>
|
||||
|
||||
<set var="WXBASEPORT">
|
||||
<if cond="TOOLKIT=='MAC'">_carbon</if>
|
||||
</set>
|
||||
|
||||
<!--
|
||||
Optional compiler version, mainly for Windows compilers for which it is
|
||||
supposed to be set on make command line for the official builds.
|
||||
-->
|
||||
<set var="COMPILER_VERSION" make_var="1">
|
||||
<if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'">ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD</if>
|
||||
</set>
|
||||
<set var="COMPILERORGCC">
|
||||
<if cond="isdefined('COMPILER')">$(COMPILER)</if>
|
||||
<if cond="not isdefined('COMPILER')">gcc</if>
|
||||
</set>
|
||||
<!--
|
||||
In the official builds we use not only the compiler name but also its
|
||||
version and architecture we compile for in the libraries names.
|
||||
-->
|
||||
<set var="WXCOMPILER">
|
||||
<if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'">_$(COMPILERORGCC)$(COMPILER_VERSION)$(ARCH_SUFFIX)</if>
|
||||
<if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(COMPILERORGCC)$(ARCH_SUFFIX)</if>
|
||||
</set>
|
||||
|
||||
<set var="VENDORTAG">
|
||||
<if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if>
|
||||
<if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)</if>
|
||||
</set>
|
||||
|
||||
<!-- debug suffix used for Windows libraries which use debug CRT -->
|
||||
<set var="WXDEBUGFLAG">
|
||||
<if cond="BUILD=='debug' and DEBUG_RUNTIME_LIBS=='default'">d</if>
|
||||
<if cond="DEBUG_RUNTIME_LIBS=='1'">d</if>
|
||||
</set>
|
||||
<set var="WX_U_D_SUFFIX">
|
||||
u$(WXDEBUGFLAG)
|
||||
</set>
|
||||
<set var="WXNAMESUFFIX">
|
||||
$(WX_U_D_SUFFIX)$(WX_LIB_FLAVOUR)
|
||||
</set>
|
||||
|
||||
<set var="WXUNIVNAME">
|
||||
<if cond="WXUNIV=='1'">univ</if>
|
||||
</set>
|
||||
<set var="WXUNIV_DEFINE">
|
||||
<if cond="WXUNIV=='1'">__WXUNIVERSAL__</if>
|
||||
</set>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<set var="WXNAMEPREFIX">wx_base$(WXBASEPORT)</set>
|
||||
<set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set>
|
||||
<set var="WXVERSIONTAG">-$(WX_RELEASE)</set>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="WXNAMEPREFIX">
|
||||
wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)
|
||||
</set>
|
||||
<set var="WXNAMEPREFIXGUI">
|
||||
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)</set>
|
||||
<set var="WXVERSIONTAG"></set>
|
||||
</if>
|
||||
<set var="WXDLLNAMEPREFIX">
|
||||
<if cond="PLATFORM_WIN32=='1'">
|
||||
wxbase$(WXBASEPORT)$(WXWIN32DLLVERSION)
|
||||
</if>
|
||||
<if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)</if>
|
||||
</set>
|
||||
<set var="WXDLLNAMEPREFIXGUI">
|
||||
<if cond="PLATFORM_WIN32=='1'">
|
||||
wx$(PORTNAME)$(WXUNIVNAME)$(WXWIN32DLLVERSION)
|
||||
</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>
|
||||
|
||||
|
||||
<!-- =============================================================== -->
|
||||
<!-- Names of component libraries: -->
|
||||
<!-- =============================================================== -->
|
||||
|
||||
<set var="WXLIB_BASE">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_NET">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_QA">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('qa')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_CORE">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_ADV">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('adv')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_MEDIA">
|
||||
<if cond="MONOLITHIC=='0' and USE_MEDIA=='1'">$(mk.evalExpr(wxwin.mkLibName('media')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_HTML">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_XML">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_XRC">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xrc')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_AUI">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('aui')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_RIBBON">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('ribbon')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_PROPGRID">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('propgrid')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_RICHTEXT">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('richtext')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_STC">
|
||||
<if cond="MONOLITHIC=='0' and USE_STC=='1'">$(mk.evalExpr(wxwin.mkLibName('stc')))</if>
|
||||
</set>
|
||||
|
||||
<set var="WXLIB_WEBVIEW">
|
||||
<if cond="MONOLITHIC=='0' and USE_WEBVIEW=='1'">$(mk.evalExpr(wxwin.mkLibName('webview')))</if>
|
||||
</set>
|
||||
<set var="WXLIB_MONO">
|
||||
<if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if>
|
||||
</set>
|
||||
|
||||
|
||||
<!-- =============================================================== -->
|
||||
<!-- Where to store built libraries and objects: -->
|
||||
<!-- =============================================================== -->
|
||||
|
||||
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="WXDLLFLAG">
|
||||
<if cond="SHARED=='1'">dll</if>
|
||||
</set>
|
||||
<set var="CFG_NAME_PART">
|
||||
$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)$(WXDLLFLAG)$(CFG)
|
||||
</set>
|
||||
|
||||
<!-- NB: this is make_var so that it can be overridden on command line
|
||||
like this: nmake -f makefile.vc COMPILER_PREFIX=vc6 -->
|
||||
<set var="COMPILER_PREFIX" make_var="1">$(COMPILER)</set>
|
||||
|
||||
<set var="OBJS" make_var="1">
|
||||
$(COMPILER_PREFIX)$(COMPILER_VERSION)$(ARCH_SUFFIX)_$(CFG_NAME_PART)
|
||||
</set>
|
||||
|
||||
<set var="BUILDDIR">$(OBJS)</set>
|
||||
</if>
|
||||
|
||||
<set var="LIBTYPE_SUFFIX" make_var="1">
|
||||
<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>
|
||||
</set>
|
||||
|
||||
<set var="LIBDIRNAME" make_var="1">
|
||||
<if cond="FORMAT=='autoconf'">$(wx_top_builddir)/lib</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
$(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER_PREFIX)$(COMPILER_VERSION)$(ARCH_SUFFIX)_$(LIBTYPE_SUFFIX)$(CFG)
|
||||
</if>
|
||||
</set>
|
||||
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="SETUPHDIR" make_var="1">
|
||||
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)
|
||||
</set>
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
<!-- =============================================================== -->
|
||||
<!-- Templates for libs: -->
|
||||
<!-- =============================================================== -->
|
||||
|
||||
<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">
|
||||
<if cond="DEBUG_RUNTIME_LIBS=='default' and BUILD=='debug'">on</if>
|
||||
<if cond="DEBUG_RUNTIME_LIBS=='default' and BUILD=='release'">off</if>
|
||||
<if cond="DEBUG_RUNTIME_LIBS=='0'">off</if>
|
||||
<if cond="DEBUG_RUNTIME_LIBS=='1'">on</if>
|
||||
</set>
|
||||
<set var="OPTIMIZEFLAG">
|
||||
<if cond="BUILD=='debug'">off</if>
|
||||
<if cond="BUILD=='release'">speed</if>
|
||||
</set>
|
||||
<set var="EXCEPTIONSFLAG">
|
||||
<if cond="USE_EXCEPTIONS=='1'">on</if>
|
||||
<if cond="USE_EXCEPTIONS=='0'">off</if>
|
||||
</set>
|
||||
<set var="RTTIFLAG">
|
||||
<if cond="USE_RTTI=='1'">on</if>
|
||||
<if cond="USE_RTTI=='0'">off</if>
|
||||
</set>
|
||||
<set var="THREADSFLAG">
|
||||
<if cond="USE_THREADS=='1'">multi</if>
|
||||
<if cond="USE_THREADS=='0'">single</if>
|
||||
</set>
|
||||
|
||||
<set var="RTTI_DEFINE">
|
||||
<if cond="USE_RTTI=='0'">wxNO_RTTI</if>
|
||||
</set>
|
||||
<set var="EXCEPTIONS_DEFINE">
|
||||
<if cond="USE_EXCEPTIONS=='0'">wxNO_EXCEPTIONS</if>
|
||||
</set>
|
||||
<set var="THREAD_DEFINE">
|
||||
<if cond="USE_THREADS=='0'">wxNO_THREADS</if>
|
||||
</set>
|
||||
|
||||
<set var="DEBUG_DEFINE">
|
||||
<if cond="DEBUG_FLAG=='0'">wxDEBUG_LEVEL=0</if>
|
||||
</set>
|
||||
<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>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<set var="WIN32_DPI_MANIFEST">
|
||||
<if cond="PLATFORM_WIN32=='1' and IS_MSVC=='0'">wxUSE_DPI_AWARE_MANIFEST=$(USE_DPI_AWARE_MANIFEST)</if>
|
||||
</set>
|
||||
|
||||
<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>
|
||||
|
||||
<set var="LINK_TARGET_CPU">
|
||||
<if cond="TARGET_CPU=='amd64'">/MACHINE:X64</if>
|
||||
<if cond="TARGET_CPU=='AMD64'">/MACHINE:X64</if>
|
||||
<if cond="TARGET_CPU=='arm'">/MACHINE:ARM</if>
|
||||
<if cond="TARGET_CPU=='ARM'">/MACHINE:ARM</if>
|
||||
<if cond="TARGET_CPU=='arm64'">/MACHINE:ARM64</if>
|
||||
<if cond="TARGET_CPU=='ARM64'">/MACHINE:ARM64</if>
|
||||
<if cond="TARGET_CPU=='ia64'">/MACHINE:IA64</if>
|
||||
<if cond="TARGET_CPU=='IA64'">/MACHINE:IA64</if>
|
||||
<if cond="TARGET_CPU=='x64'">/MACHINE:X64</if>
|
||||
<if cond="TARGET_CPU=='X64'">/MACHINE:X64</if>
|
||||
<if cond="FORMAT=='msvc' and TARGET_CPU=='' and VISUALSTUDIOPLATFORM=='x64'">/MACHINE:X64</if>
|
||||
<if cond="FORMAT=='msvc' and TARGET_CPU=='' and VISUALSTUDIOPLATFORM=='X64'">/MACHINE:X64</if>
|
||||
</set>
|
||||
|
||||
<set var="WIN32_DPI_LINKFLAG"></set>
|
||||
<if cond="IS_MSVC_PRJ">
|
||||
<set var="WIN32_DPI_LINKFLAG">
|
||||
<!-- system dpi -->
|
||||
<if cond="USE_DPI_AWARE_MANIFEST=='1'">/MANIFEST:EMBED /MANIFESTINPUT:$(TOP_SRCDIR)include/wx/msw/wx_dpi_aware.manifest</if>
|
||||
<!-- per-monitor dpi -->
|
||||
<if cond="USE_DPI_AWARE_MANIFEST=='2'">/MANIFEST:EMBED /MANIFESTINPUT:$(TOP_SRCDIR)include/wx/msw/wx_dpi_aware_pmv2.manifest</if>
|
||||
</set>
|
||||
</if>
|
||||
<if cond="FORMAT=='msvc'">
|
||||
<set var="WIN32_DPI_LINKFLAG">
|
||||
<!-- system dpi -->
|
||||
<if cond="USE_DPI_AWARE_MANIFEST=='1' and VISUALSTUDIOVERSION=='14.0'">/MANIFEST:EMBED /MANIFESTINPUT:$(TOP_SRCDIR)include/wx/msw/wx_dpi_aware.manifest</if>
|
||||
<if cond="USE_DPI_AWARE_MANIFEST=='1' and VISUALSTUDIOVERSION=='15.0'">/MANIFEST:EMBED /MANIFESTINPUT:$(TOP_SRCDIR)include/wx/msw/wx_dpi_aware.manifest</if>
|
||||
<if cond="USE_DPI_AWARE_MANIFEST=='1' and VISUALSTUDIOVERSION=='16.0'">/MANIFEST:EMBED /MANIFESTINPUT:$(TOP_SRCDIR)include/wx/msw/wx_dpi_aware.manifest</if>
|
||||
<if cond="USE_DPI_AWARE_MANIFEST=='1' and VISUALSTUDIOVERSION=='17.0'">/MANIFEST:EMBED /MANIFESTINPUT:$(TOP_SRCDIR)include/wx/msw/wx_dpi_aware.manifest</if>
|
||||
<!-- per-monitor dpi -->
|
||||
<if cond="USE_DPI_AWARE_MANIFEST=='2' and VISUALSTUDIOVERSION=='14.0'">/MANIFEST:EMBED /MANIFESTINPUT:$(TOP_SRCDIR)include/wx/msw/wx_dpi_aware_pmv2.manifest</if>
|
||||
<if cond="USE_DPI_AWARE_MANIFEST=='2' and VISUALSTUDIOVERSION=='15.0'">/MANIFEST:EMBED /MANIFESTINPUT:$(TOP_SRCDIR)include/wx/msw/wx_dpi_aware_pmv2.manifest</if>
|
||||
<if cond="USE_DPI_AWARE_MANIFEST=='2' and VISUALSTUDIOVERSION=='16.0'">/MANIFEST:EMBED /MANIFESTINPUT:$(TOP_SRCDIR)include/wx/msw/wx_dpi_aware_pmv2.manifest</if>
|
||||
<if cond="USE_DPI_AWARE_MANIFEST=='2' and VISUALSTUDIOVERSION=='17.0'">/MANIFEST:EMBED /MANIFESTINPUT:$(TOP_SRCDIR)include/wx/msw/wx_dpi_aware_pmv2.manifest</if>
|
||||
</set>
|
||||
</if>
|
||||
|
||||
<set var="TARGET_CPU_COMPFLAG"></set>
|
||||
<if cond="FORMAT=='msvc'">
|
||||
<set var="TARGET_CPU_COMPFLAG">
|
||||
<if cond="TARGET_CPU==''">TARGET_CPU_COMPFLAG=0</if>
|
||||
<if cond="TARGET_CPU=='' and VISUALSTUDIOPLATFORM=='x64'"></if>
|
||||
<if cond="TARGET_CPU=='' and VISUALSTUDIOPLATFORM=='X64'"></if>
|
||||
</set>
|
||||
</if>
|
||||
|
||||
<template id="common_settings">
|
||||
<debug-info>$(DEBUGINFO)</debug-info>
|
||||
<debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs>
|
||||
<optimize>$(OPTIMIZEFLAG)</optimize>
|
||||
<threading>$(THREADSFLAG)</threading>
|
||||
<runtime-libs>$(RUNTIME_LIBS)</runtime-libs>
|
||||
<cxx-rtti>$(RTTIFLAG)</cxx-rtti>
|
||||
<cxx-exceptions>$(EXCEPTIONSFLAG)</cxx-exceptions>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<cppflags>$(EXTRACFLAGS)</cppflags>
|
||||
</if>
|
||||
<!-- Suppress deprecation warnings for standard library calls -->
|
||||
<if cond="FORMAT in ['msvc','msvs2005prj','msvs2008prj']">
|
||||
<define>_CRT_SECURE_NO_DEPRECATE=1</define>
|
||||
<define>_CRT_NON_CONFORMING_SWPRINTFS=1</define>
|
||||
<define>_SCL_SECURE_NO_WARNINGS=1</define>
|
||||
</if>
|
||||
<define>$(NO_VC_CRTDBG)</define>
|
||||
<define>$(WIN32_WINNT)</define>
|
||||
<cppflags cond="FORMAT=='autoconf'">$(WX_CPPFLAGS)</cppflags>
|
||||
<cflags cond="FORMAT=='autoconf'">$(WX_CFLAGS)</cflags>
|
||||
<cxxflags cond="FORMAT=='autoconf'">$(WX_CXXFLAGS)</cxxflags>
|
||||
<!--
|
||||
Surprisingly, WX_LDFLAGS doesn't go into ldflags, but into ldlibs,
|
||||
because we need it to come after <lib-path> contents, which is
|
||||
appended to ldflags, because we want to link with wx libraries in
|
||||
the LIBDIRNAME and not any wx libraries installed system-wide.
|
||||
-->
|
||||
<ldlibs cond="FORMAT=='autoconf'">$(WX_LDFLAGS)</ldlibs>
|
||||
<if cond="FORMAT=='msvc'">
|
||||
<ldflags>$(LINK_TARGET_CPU)</ldflags>
|
||||
<define>$(TARGET_CPU_COMPFLAG)</define>
|
||||
</if>
|
||||
</template>
|
||||
|
||||
<template id="wx_dpi">
|
||||
<res-define>$(WIN32_DPI_MANIFEST)</res-define>
|
||||
<ldflags>$(WIN32_DPI_LINKFLAG)</ldflags>
|
||||
</template>
|
||||
|
||||
<template id="anylib">
|
||||
<dirname>$(LIBDIRNAME)</dirname>
|
||||
<install-to>$(LIBDIR)</install-to>
|
||||
</template>
|
||||
|
||||
<template id="3rdparty_lib_base" template="common_settings,anylib">
|
||||
<!--
|
||||
we want to install 3rd party libs system-wide only with static
|
||||
version of wxWidgets; otherwise they are embedded in shared libs:
|
||||
-->
|
||||
<install-if>SHARED=='0'</install-if>
|
||||
<pic>$(substituteFromDict(SHARED, {'0':'off', '1':'on'}))</pic>
|
||||
|
||||
<!--
|
||||
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>
|
||||
|
||||
<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>
|
||||
</template>
|
||||
|
||||
<!--
|
||||
This template is used for most third party libraries.
|
||||
|
||||
Note: when inheriting from this template, template_append should
|
||||
be normally used instead of just template, to ensure that the built-in
|
||||
third party libraries include directories appear before the ones
|
||||
defined here (which could include the same headers).
|
||||
-->
|
||||
<template id="3rdparty_lib" template="3rdparty_lib_base">
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<libname>$(id)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)</libname>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname>
|
||||
</if>
|
||||
</template>
|
||||
|
||||
<!-- This one is only used by wxregex currently and additionally includes
|
||||
"u" suffix in the library name for compatibility. -->
|
||||
<template id="3rdparty_lib_u" template="3rdparty_lib_base">
|
||||
<libname cond="FORMAT=='autoconf'">
|
||||
$(id)u$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||
</libname>
|
||||
<libname cond="FORMAT!='autoconf'">
|
||||
$(id)u$(WXDEBUGFLAG)$(HOST_SUFFIX)
|
||||
</libname>
|
||||
</template>
|
||||
|
||||
<!-- deal with the need to copy setup.h here: -->
|
||||
|
||||
<define-tag name="msvc-headers" rules="dll,lib">
|
||||
<if cond="IS_MSVC_PRJ">
|
||||
<msvc-project-files>
|
||||
$(addPrefixToList('include\\', wxwin.headersOnly(value)))
|
||||
</msvc-project-files>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
<set var="msvc_copy_setup_h_script">
|
||||
<if cond="IS_MSVC_PRJ=='1' and FORMAT!='msvc6prj'">
|
||||
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=='msvc6prj'">
|
||||
Creating $(SETUPHDIR)\wx\setup.h
|
||||
InputPath=..\..\include\wx\%s
|
||||
|
||||
"$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
|
||||
$(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
|
||||
</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)))
|
||||
</set>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
<define-tag name="msvc-copy-setup-h" rules="dll,lib">
|
||||
<if cond="IS_MSVC_PRJ">
|
||||
<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' and TOOLKIT=='MSW'">
|
||||
$(msvc_copy_setup_h_script % 'msw\setup.h')
|
||||
</if>
|
||||
</set>
|
||||
<set var="_custom_build_include_wx_gtk_setup_h">
|
||||
<if cond="WXUNIV=='0' and TOOLKIT=='GTK'">
|
||||
$(msvc_copy_setup_h_script % 'gtk\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>
|
||||
</define-tag>
|
||||
|
||||
<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>
|
||||
<set var="_custom_build_include_wx_msw_genrcdefs_h">
|
||||
Creating $(SETUPHDIR)\wx\msw\rcdefs.h
|
||||
InputPath=..\..\include\wx\msw\genrcdefs.h
|
||||
|
||||
"$(SETUPHDIR)\wx\msw\rcdefs.h" : "$(DOLLAR)(SOURCE)" "$(SETUPHDIR)\wx\msw"
|
||||
$(TAB)cl /EP /nologo "$(DOLLAR)(InputPath)" > "$(SETUPHDIR)\wx\msw\rcdefs.h"
|
||||
</set>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
<template id="msvc_setup_h">
|
||||
<msvc-copy-setup-h/>
|
||||
<msvc-create-rcdefs-h/>
|
||||
</template>
|
||||
|
||||
<!-- =============================================================== -->
|
||||
<!-- 3rd party libs: -->
|
||||
<!-- =============================================================== -->
|
||||
|
||||
<!-- 3rd party libraries: -->
|
||||
<include file="regex.bkl"/>
|
||||
<include file="zlib.bkl"/>
|
||||
<include file="png.bkl"/>
|
||||
<include file="webp.bkl"/>
|
||||
<include file="jpeg.bkl"/>
|
||||
<include file="tiff.bkl"/>
|
||||
<include file="expat.bkl"/>
|
||||
<include file="scintilla.bkl"/>
|
||||
<include file="lexilla.bkl"/>
|
||||
|
||||
|
||||
<!-- =============================================================== -->
|
||||
<!-- Templates for wxWidgets libs: -->
|
||||
<!-- =============================================================== -->
|
||||
|
||||
<!-- 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_XML) $(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>
|
||||
|
||||
<!-- GTK+ under Windows requires -mms-bitfields gcc switch -->
|
||||
<set var="CXXFLAGS_GTK_WINDOWS_GCC">
|
||||
<if cond="TOOLKIT=='GTK' and FORMAT=='mingw'">-mms-bitfields</if>
|
||||
</set>
|
||||
|
||||
<template id="wx" template="common_settings">
|
||||
<set var="wxid">$(wxwin.mk_wxid(id))</set>
|
||||
<define>__WX$(TOOLKIT)__</define>
|
||||
<define>$(WXUNIV_DEFINE)</define>
|
||||
<define>$(DEBUG_DEFINE)</define>
|
||||
<define>$(NDEBUG_DEFINE)</define>
|
||||
<define>$(EXCEPTIONS_DEFINE)</define>
|
||||
<define>$(RTTI_DEFINE)</define>
|
||||
<define>$(THREAD_DEFINE)</define>
|
||||
<include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
|
||||
<include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include>
|
||||
<include cond="FORMAT!='autoconf'">$(CAIRO_INCLUDEDIR)</include>
|
||||
<lib-path>$(LIBDIRNAME)</lib-path>
|
||||
|
||||
<warnings>max</warnings>
|
||||
<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>
|
||||
<cxxflags-mingw>
|
||||
-Wno-ctor-dtor-privacy <!-- only defines a private destructor and has no friends -->
|
||||
$(CXXFLAGS_GTK_WINDOWS_GCC)
|
||||
</cxxflags-mingw>
|
||||
</template>
|
||||
|
||||
<!-- for both GUI and wxBase libs/samples: -->
|
||||
<template id="wx_append_base_nomono">
|
||||
<!-- link against builtin 3rd party libs, if needed: -->
|
||||
<sys-lib>$(LIB_ZLIB)</sys-lib>
|
||||
<sys-lib>$(LIB_REGEX)</sys-lib>
|
||||
<sys-lib>$(LIB_EXPAT)</sys-lib>
|
||||
|
||||
<ldlibs>$(EXTRALIBS_FOR_BASE)</ldlibs>
|
||||
|
||||
|
||||
<!-- system libraries on windows: -->
|
||||
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
|
||||
<sys-lib>$(CAIRO_LIB)</sys-lib>
|
||||
<lib-path>$(CAIRO_LIBDIR)</lib-path>
|
||||
<if cond="FORMAT=='borland'">
|
||||
<sys-lib>ole2w32</sys-lib>
|
||||
</if>
|
||||
<if cond="FORMAT!='borland'">
|
||||
<sys-lib>kernel32</sys-lib>
|
||||
<sys-lib>user32</sys-lib>
|
||||
<sys-lib>gdi32</sys-lib>
|
||||
<sys-lib>gdiplus</sys-lib>
|
||||
<sys-lib>msimg32</sys-lib>
|
||||
<sys-lib>comdlg32</sys-lib>
|
||||
<sys-lib>winspool</sys-lib>
|
||||
<sys-lib>winmm</sys-lib>
|
||||
<sys-lib>shell32</sys-lib>
|
||||
<sys-lib>shlwapi</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>version</sys-lib>
|
||||
<sys-lib>ws2_32</sys-lib>
|
||||
<!-- 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>
|
||||
</if>
|
||||
<!-- For MSVC this library is conditionally included from
|
||||
wx/msw/libraries.h when wxUSE_ACCESSIBILITY==1 -->
|
||||
<if cond="IS_MSVC=='0'">
|
||||
<sys-lib>oleacc</sys-lib>
|
||||
<sys-lib>uxtheme</sys-lib>
|
||||
</if>
|
||||
</if>
|
||||
</template>
|
||||
|
||||
<set var="LIB_GTK">
|
||||
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1' and TOOLKIT=='GTK' and TOOLKIT_VERSION=='2'">gtk-win32-2.0.lib gdk-win32-2.0.lib gio-2.0.lib pangocairo-1.0.lib gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib glib-2.0.lib</if>
|
||||
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1' and TOOLKIT=='GTK' and TOOLKIT_VERSION=='3'">libgtk-3.dll.a libgdk-3.dll.a gio-2.0.lib pangocairo-1.0.lib gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib glib-2.0.lib</if>
|
||||
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1' and TOOLKIT=='GTK' and TOOLKIT_VERSION=='4'">libgtk-4.dll.a libgdk-4.dll.a gio-2.0.lib pangocairo-1.0.lib gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib glib-2.0.lib</if>
|
||||
</set>
|
||||
|
||||
<!-- for GUI libs/samples: -->
|
||||
<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>
|
||||
<sys-lib>$(LIB_WEBP)</sys-lib>
|
||||
<ldlibs>$(LIB_GTK)</ldlibs>
|
||||
<ldlibs>$(EXTRALIBS_FOR_GUI)</ldlibs>
|
||||
</template>
|
||||
|
||||
<set var="LIB_PNG_IF_MONO">
|
||||
<if cond="MONOLITHIC=='1'">$(LIB_PNG)</if>
|
||||
</set>
|
||||
|
||||
<set var="LIB_SCINTILLA_IF_MONO">
|
||||
<if cond="MONOLITHIC=='1' and USE_STC=='1'">$(LIB_SCINTILLA)</if>
|
||||
</set>
|
||||
<set var="LIB_LEXILLA_IF_MONO">
|
||||
<if cond="MONOLITHIC=='1' and USE_STC=='1'">$(LIB_LEXILLA)</if>
|
||||
</set>
|
||||
<template id="wx_append_base" template_append="wx_append_base_nomono">
|
||||
<!-- 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. -->
|
||||
<sys-lib>$(WXLIB_MONO)</sys-lib>
|
||||
<sys-lib>$(LIB_PNG_IF_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>
|
||||
<sys-lib>$(LIB_SCINTILLA_IF_MONO)</sys-lib>
|
||||
<sys-lib>$(LIB_LEXILLA_IF_MONO)</sys-lib>
|
||||
</template>
|
||||
|
||||
|
||||
<set var="WX_DISABLE_PRECOMP_HEADERS" overwrite="0">0</set>
|
||||
|
||||
<template id="wx_lib_b" template="wx,anylib">
|
||||
<set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set>
|
||||
<libname>$(WXLIBNAME)</libname>
|
||||
|
||||
<define>WXBUILDING</define>
|
||||
|
||||
<if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<sources>$(WXTOPDIR)src/common/dummy.cpp</sources>
|
||||
<precomp-headers-gen>
|
||||
$(WXTOPDIR)src/common/dummy.cpp
|
||||
</precomp-headers-gen>
|
||||
</if>
|
||||
<precomp-headers-location>$(WXTOPDIR)include</precomp-headers-location>
|
||||
<precomp-headers-header>wx/wxprec.h</precomp-headers-header>
|
||||
<precomp-headers>on</precomp-headers>
|
||||
<precomp-headers-file>wxprec_$(id)</precomp-headers-file>
|
||||
<precomp-headers-exclude>
|
||||
src/common/extended.c
|
||||
src/gtk/eggtrayicon.c
|
||||
src/gtk/treeentry_gtk.c
|
||||
</precomp-headers-exclude>
|
||||
</if>
|
||||
|
||||
<if cond="IS_MSVC_PRJ=='1' and BUILDING_LIB=='1'">
|
||||
<msvc-file-group>Common Sources:src/common/*</msvc-file-group>
|
||||
<msvc-file-group>GTK+ Sources:src/gtk/*</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>GTK+ Headers:*wx/gtk/*.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>
|
||||
<msvc-file-group>Common Headers:*wx/*.h</msvc-file-group>
|
||||
</if>
|
||||
</template>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<set var="RCDEFDIR">
|
||||
<if cond="TOOLKIT=='MSW'">
|
||||
$(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
|
||||
<template id="wx_dll_b" template="wx_lib_b">
|
||||
<set var="WXDLLNAME">$(wxwin.mkDllName(wxid))</set>
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<ldflags>$(DYLIB_RPATH_FLAG)</ldflags>
|
||||
<set var="__dllinstdir">$(DLLDIR)</set>
|
||||
</if>
|
||||
<dllname>$(WXDLLNAME)</dllname>
|
||||
<version>$(WX_VERSION)</version>
|
||||
<so_version>$(WXSOVERSION)</so_version>
|
||||
|
||||
<!-- FIXME: until libtool scheme is implemented in bakefile -->
|
||||
<ldflags cond="FORMAT=='autoconf'">$(WXMACVERSION_CMD)</ldflags>
|
||||
|
||||
<!-- version info resources: -->
|
||||
<res-define>WXDLLNAME=$(WXDLLNAME)</res-define>
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<res-include>$(RCDEFDIR)</res-include>
|
||||
<res-include>$(TOP_SRCDIR)include</res-include>
|
||||
<postlink-command>$(DYLIB_RPATH_POSTLINK)</postlink-command>
|
||||
</if>
|
||||
<if cond="FORMAT=='borland'">
|
||||
<!-- path to windows.h for this compiler -->
|
||||
<res-include>$(DOLLAR)(BCCDIR)\include\windows\sdk</res-include>
|
||||
</if>
|
||||
<win32-res>$(WXTOPDIR)src/msw/version.rc</win32-res>
|
||||
</template>
|
||||
|
||||
<template id="wx_3rdparty_dependencies_base">
|
||||
<depends>wxexpat</depends>
|
||||
<depends>wxzlib</depends>
|
||||
<depends>wxregex</depends>
|
||||
</template>
|
||||
|
||||
<template id="wx_3rdparty_dependencies_gui" cond="USE_GUI=='1'"
|
||||
template="wx_3rdparty_dependencies_base">
|
||||
<depends>wxtiff</depends>
|
||||
<depends>wxjpeg</depends>
|
||||
<depends>wxpng</depends>
|
||||
<depends>wxwebp</depends>
|
||||
<depends>wxscintilla</depends>
|
||||
<depends>wxlexilla</depends>
|
||||
</template>
|
||||
|
||||
<template id="wx_3rdparty_includes_base">
|
||||
<include>$(INC_ZLIB)</include>
|
||||
<include>$(INC_REGEX)</include>
|
||||
<include>$(INC_EXPAT)</include>
|
||||
</template>
|
||||
|
||||
<template id="wx_3rdparty_includes_gui" cond="USE_GUI=='1'"
|
||||
template_append="wx_3rdparty_includes_base">
|
||||
<include>$(INC_TIFF_BUILD)</include>
|
||||
<include>$(INC_TIFF)</include>
|
||||
<include>$(INC_JPEG)</include>
|
||||
<include>$(INC_PNG)</include>
|
||||
<include>$(INC_WEBP)</include>
|
||||
</template>
|
||||
|
||||
<template id="wx_lib"
|
||||
template="wx_3rdparty_includes_gui,wx_lib_b,msvc_setup_h"/>
|
||||
<template id="wx_base_lib"
|
||||
template="wx_3rdparty_includes_base,wx_lib_b,msvc_setup_h">
|
||||
<define>wxUSE_GUI=0</define>
|
||||
</template>
|
||||
|
||||
<template id="wx_dll"
|
||||
template="wx_3rdparty_includes_gui,wx_dll_b,wx_3rdparty_dependencies_gui"
|
||||
template_append="msvc_setup_h,wx_append_nomono"/>
|
||||
<template id="wx_base_dll"
|
||||
template="wx_3rdparty_includes_base,wx_dll_b,wx_3rdparty_dependencies_base"
|
||||
template_append="msvc_setup_h,wx_append_base_nomono">
|
||||
<define>wxUSE_GUI=0</define>
|
||||
</template>
|
||||
|
||||
<!-- additional includes and defines for webview edge -->
|
||||
<set var="webview_additional_include">
|
||||
<if cond="TOOLKIT=='MSW'">$(TOP_SRCDIR)3rdparty/webview2/build/native/include</if>
|
||||
</set>
|
||||
|
||||
<set var="webview_additional_include_wrl">
|
||||
<if cond="TOOLKIT=='MSW' and IS_MSVC=='0'">$(TOP_SRCDIR)include/wx/msw/wrl</if>
|
||||
</set>
|
||||
|
||||
<set var="webview_additional_libdirs_arch">
|
||||
<if cond="TARGET_CPU=='amd64'">x64</if>
|
||||
<if cond="TARGET_CPU=='AMD64'">x64</if>
|
||||
<if cond="TARGET_CPU=='arm64'">arm64</if>
|
||||
<if cond="TARGET_CPU=='ARM64'">arm64</if>
|
||||
<if cond="TARGET_CPU=='x64'">x64</if>
|
||||
<if cond="TARGET_CPU=='X64'">x64</if>
|
||||
<if cond="TARGET_CPU=='x86'">x86</if>
|
||||
<if cond="TARGET_CPU=='X86'">x86</if>
|
||||
<if cond="TARGET_CPU==''">x86</if>
|
||||
</set>
|
||||
|
||||
<set var="webview_additional_libdirs">
|
||||
<if cond="IS_MSVC=='1' and TOOLKIT=='MSW'">$(TOP_SRCDIR)3rdparty/webview2/build/native/$(webview_additional_libdirs_arch)</if>
|
||||
</set>
|
||||
|
||||
<set var="webview_edge_pragma_warning">
|
||||
<if cond="TOOLKIT=='MSW' and IS_MSVC=='0'">-Wno-unknown-pragmas</if>
|
||||
</set>
|
||||
|
||||
<template id="webview_additional">
|
||||
<include>$(webview_additional_include_wrl)</include>
|
||||
<include>$(webview_additional_include)</include>
|
||||
<lib-path>$(webview_additional_libdirs)</lib-path>
|
||||
<cxxflags>$(webview_edge_pragma_warning)</cxxflags>
|
||||
</template>
|
||||
|
||||
<!-- =============================================================== -->
|
||||
<!-- Templates for building wxWidgets plugins: -->
|
||||
<!-- =============================================================== -->
|
||||
|
||||
<if cond="WX_STABLE_BRANCH=='1'">
|
||||
<set var="PLUGIN_VERSION0">
|
||||
<if cond="PLATFORM_UNIX=='1'">$(WX_RELEASE)</if>
|
||||
<if cond="PLATFORM_UNIX=='0'">$(WX_RELEASE_NODOT)</if>
|
||||
</set>
|
||||
</if>
|
||||
<if cond="WX_STABLE_BRANCH=='0'">
|
||||
<set var="PLUGIN_VERSION0">
|
||||
<if cond="PLATFORM_UNIX=='1'">$(WX_VERSION)</if>
|
||||
<if cond="PLATFORM_UNIX=='0'">$(WX_VERSION_NODOT)</if>
|
||||
</set>
|
||||
</if>
|
||||
<set var="PLUGVERDELIM">
|
||||
<if cond="PLATFORM_UNIX=='1'">-</if>
|
||||
<if cond="PLATFORM_UNIX=='0'"></if>
|
||||
</set>
|
||||
<set var="PLUGIN_VERSION">$(PLUGVERDELIM)$(PLUGIN_VERSION0)</set>
|
||||
|
||||
<set var="PLUGINS_INST_DIR" make_var="1">
|
||||
$(LIBDIR)/wx/$(PLUGIN_VERSION0)
|
||||
</set>
|
||||
|
||||
<define-rule name="wx-base-plugin" extends="module">
|
||||
<template template="common_settings">
|
||||
<dllname>
|
||||
$(id)$(WX_U_D_SUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
|
||||
</dllname>
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>wxUSE_GUI=0</define>
|
||||
<install-to>$(PLUGINS_INST_DIR)</install-to>
|
||||
</template>
|
||||
</define-rule>
|
||||
|
||||
<define-rule name="wx-gui-plugin" extends="module">
|
||||
<template template="wx">
|
||||
<dllname>
|
||||
$(id)_$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
|
||||
</dllname>
|
||||
<define>WXUSINGDLL</define>
|
||||
<install-to>$(PLUGINS_INST_DIR)</install-to>
|
||||
</template>
|
||||
</define-rule>
|
||||
|
||||
<!-- =============================================================== -->
|
||||
<!-- Support for wxWidgets samples: -->
|
||||
<!-- =============================================================== -->
|
||||
|
||||
<!-- Link against one wxWin library. Value must be literal! -->
|
||||
<define-tag name="wx-lib" rules="exe,dll,module">
|
||||
<sys-lib>$(wxwin.libToLink(value))</sys-lib>
|
||||
<ldflags>$(wxwin.extraLdflags(value))</ldflags>
|
||||
<ldlibs>$(wxwin.extraLdlibs(value))</ldlibs>
|
||||
<!-- msvs200?prj formats don't support external dependencies yet: -->
|
||||
<if cond="FORMAT=='msvc6prj' and MONOLITHIC=='0'">
|
||||
<depends-on-dsp>$(wxwin.makeDspDependency(value))</depends-on-dsp>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
|
||||
<!-- 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>
|
||||
|
||||
|
||||
</makefile>
|
||||
16
libs/wxWidgets-3.3.1/build/bakefiles/common_samples.bkl
Normal file
16
libs/wxWidgets-3.3.1/build/bakefiles/common_samples.bkl
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<if cond="not isdefined('OUT_OF_TREE_MAKEFILES')">
|
||||
<set var="OUT_OF_TREE_MAKEFILES">0</set>
|
||||
</if>
|
||||
|
||||
<if cond="OUT_OF_TREE_MAKEFILES=='1'">
|
||||
<include file="common_samples_outoftree.bkl"/>
|
||||
</if>
|
||||
<if cond="OUT_OF_TREE_MAKEFILES=='0'">
|
||||
<include file="common_samples_intree.bkl"/>
|
||||
</if>
|
||||
|
||||
</makefile>
|
||||
113
libs/wxWidgets-3.3.1/build/bakefiles/common_samples_intree.bkl
Normal file
113
libs/wxWidgets-3.3.1/build/bakefiles/common_samples_intree.bkl
Normal file
@@ -0,0 +1,113 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<include file="common.bkl"/>
|
||||
|
||||
<!-- =============================================================== -->
|
||||
<!-- Template for wxWidgets samples: -->
|
||||
<!-- =============================================================== -->
|
||||
|
||||
<set var="WX_ENABLE_PRECOMP_HEADERS">0</set>
|
||||
|
||||
<set var="DLLFLAG">
|
||||
<if cond="SHARED=='1'">WXUSINGDLL</if>
|
||||
</set>
|
||||
|
||||
<template id="wx_util_b" template="wx">
|
||||
<include>$(SRCDIR)</include>
|
||||
<define>$(DLLFLAG)</define>
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<ldflags>$(DYLIB_RPATH_FLAG)</ldflags>
|
||||
</if>
|
||||
</template>
|
||||
|
||||
<template id="wx_util" template="wx_util_b,wx_dpi">
|
||||
<app-type>gui</app-type>
|
||||
<!-- resource files includes: -->
|
||||
<include>$(SRCDIR)/$(WXTOPDIR)samples</include>
|
||||
<!-- this include is not added via <include> for autoconf, see
|
||||
common.bkl: -->
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<res-include>$(RCDEFDIR)</res-include>
|
||||
<res-include>$(TOP_SRCDIR)include</res-include>
|
||||
</if>
|
||||
<if cond="FORMAT=='borland'">
|
||||
<!-- path to windows.h for this compiler -->
|
||||
<res-include>$(DOLLAR)(BCCDIR)\include\windows\sdk</res-include>
|
||||
</if>
|
||||
|
||||
<win32-res>$(WXTOPDIR)samples/sample.rc</win32-res>
|
||||
|
||||
<!-- FIXME: temporary, until bakefile can reuse existing pch files -->
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<if cond="WX_ENABLE_PRECOMP_HEADERS=='0'">
|
||||
<define>NOPCH</define>
|
||||
</if>
|
||||
</if>
|
||||
</template>
|
||||
|
||||
<template id="wx_util_console" template="wx_util_b">
|
||||
<app-type>console</app-type>
|
||||
<define>wxUSE_GUI=0</define>
|
||||
</template>
|
||||
|
||||
<template id="wx_sample" template="wx_util">
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<wx-mac-app-bundle/>
|
||||
<cxxflags>$(SAMPLES_CXXFLAGS)</cxxflags>
|
||||
</if>
|
||||
</template>
|
||||
<template id="wx_sample_console" template="wx_util_console">
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<cxxflags>$(SAMPLES_CXXFLAGS)</cxxflags>
|
||||
</if>
|
||||
</template>
|
||||
|
||||
|
||||
<!-- =============================================================== -->
|
||||
<!-- Support for samples data files: -->
|
||||
<!-- =============================================================== -->
|
||||
|
||||
<if cond="FORMAT_SUPPORTS_ACTIONS=='1'">
|
||||
<define-rule name="wx-data" extends="copy-files">
|
||||
<template>
|
||||
<dependency-of>all</dependency-of>
|
||||
<dstdir>$(BUILDDIR)</dstdir>
|
||||
<srcdir>$(SRCDIR)</srcdir>
|
||||
</template>
|
||||
|
||||
<!--
|
||||
VS - FIXME:
|
||||
Don't clean the files because it would wipe out sources files if
|
||||
BUILDDIR==SRCDIR. This is same behaviour as in the old build system,
|
||||
but it would be better to delete the files during "make clean" if
|
||||
BUILDDIR!=SRCDIR.
|
||||
|
||||
<define-tag name="files">
|
||||
<clean-files>
|
||||
$(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
|
||||
</clean-files>
|
||||
</define-tag>
|
||||
-->
|
||||
</define-rule>
|
||||
</if>
|
||||
<if cond="FORMAT_SUPPORTS_ACTIONS=='0'">
|
||||
<!-- empty stub for project-files formats which don't support <command> -->
|
||||
<define-rule name="wx-data" extends="action">
|
||||
<define-tag name="dstdir"/>
|
||||
<define-tag name="srcdir"/>
|
||||
<define-tag name="files"/>
|
||||
</define-rule>
|
||||
</if>
|
||||
|
||||
|
||||
<!-- =============================================================== -->
|
||||
<!-- Misc platform specialities: -->
|
||||
<!-- =============================================================== -->
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<include file="mac_bundles.bkl"/>
|
||||
</if>
|
||||
|
||||
</makefile>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<!-- =============================================================== -->
|
||||
<!-- Templates for out-of-tree Unix makefiles for wxWidgets samples: -->
|
||||
<!-- =============================================================== -->
|
||||
|
||||
<include file="wxpresets/presets/wx.bkl"/>
|
||||
|
||||
<template id="wx_app_base" template="wx">
|
||||
<include>$(SRCDIR)</include>
|
||||
</template>
|
||||
|
||||
<template id="wx_util" template="wx_app_base">
|
||||
<app-type>gui</app-type>
|
||||
</template>
|
||||
|
||||
<template id="wx_util_console" template="wx_app_base">
|
||||
<app-type>console</app-type>
|
||||
</template>
|
||||
|
||||
<template id="wx_sample" template="wx_util">
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<cxxflags>$(SAMPLES_CXXFLAGS)</cxxflags>
|
||||
</if>
|
||||
</template>
|
||||
<template id="wx_sample_console" template="wx_util_console">
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<cxxflags>$(SAMPLES_CXXFLAGS)</cxxflags>
|
||||
</if>
|
||||
</template>
|
||||
|
||||
|
||||
<define-rule name="wx-gui-plugin" extends="module">
|
||||
<template template="wx_app_base"/>
|
||||
</define-rule>
|
||||
|
||||
|
||||
<!-- Define templates used by the samples -->
|
||||
<template id="wx_append"/>
|
||||
<template id="wx_append_base">
|
||||
<cxxflags>-DwxUSE_GUI=0</cxxflags>
|
||||
</template>
|
||||
|
||||
<define-rule name="wx-data" pseudo="1">
|
||||
<define-tag name="files"/>
|
||||
<define-tag name="dstdir"/>
|
||||
<define-tag name="srcdir"/>
|
||||
</define-rule>
|
||||
|
||||
</makefile>
|
||||
570
libs/wxWidgets-3.3.1/build/bakefiles/config.bkl
Normal file
570
libs/wxWidgets-3.3.1/build/bakefiles/config.bkl
Normal file
@@ -0,0 +1,570 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<set var="IS_MSVC_PRJ">
|
||||
$(FORMAT in ['msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj'])
|
||||
</set>
|
||||
<set var="IS_MSVC">
|
||||
$(IS_MSVC_PRJ=='1' or FORMAT=='msvc')
|
||||
</set>
|
||||
|
||||
|
||||
<set var="BUILDING_LIB" overwrite="0">0</set>
|
||||
|
||||
<set var="CPP_DEFAULT_VALUE">
|
||||
<if cond="FORMAT=='borland'">
|
||||
cpp32 -Sr -oCON
|
||||
</if>
|
||||
<if cond="FORMAT=='mingw'">
|
||||
$(DOLLAR)(CC) -E
|
||||
</if>
|
||||
<if cond="FORMAT=='msvc'">
|
||||
$(DOLLAR)(CC) /EP /nologo
|
||||
</if>
|
||||
<if cond="FORMAT=='watcom'">
|
||||
$(DOLLAR)(CC) -p
|
||||
</if>
|
||||
</set>
|
||||
<option name="CPP">
|
||||
<default-value>
|
||||
$(CPP_DEFAULT_VALUE)
|
||||
</default-value>
|
||||
<description>
|
||||
The C preprocessor
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="SHARED">
|
||||
<values>0,1</values>
|
||||
<values-description>,DLL</values-description>
|
||||
<default-value>0</default-value>
|
||||
<description>
|
||||
What type of library to build?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<option name="TOOLKIT">
|
||||
<values>MSW,GTK</values>
|
||||
<values-description>,GTK+</values-description>
|
||||
<default-value>MSW</default-value>
|
||||
<description>
|
||||
Used toolkit
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<if cond="FORMAT not in ['autoconf','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">
|
||||
<option name="TOOLKIT_VERSION">
|
||||
<values>,2</values>
|
||||
<values-description>,2</values-description>
|
||||
<default-value></default-value>
|
||||
<description>
|
||||
GTK+ toolkit version
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
|
||||
<!-- We must make TOOLKIT a constant under Windows -->
|
||||
<if cond="FORMAT in ['borland','mingw','msvc','watcom', 'msvc6prj', 'msvs2003prj', 'msvs2005prj', 'msvs2008prj']">
|
||||
<set var="TOOLKIT">MSW</set>
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!--
|
||||
Don't include wxUniversal configurations in project files, they
|
||||
confuse people who don't know what "Universal" means and double the
|
||||
number of configurations. If you do need to build wxUniversal, either
|
||||
use the make files or comment out the 3 lines below and rerun
|
||||
bakefile_gen to regenerate the projects with them.
|
||||
-->
|
||||
<if cond="IS_MSVC_PRJ=='1'">
|
||||
<set var="WXUNIV">0</set>
|
||||
</if>
|
||||
<if cond="IS_MSVC_PRJ=='0'">
|
||||
<option name="WXUNIV">
|
||||
<values>0,1</values>
|
||||
<values-description>,Universal</values-description>
|
||||
<default-value>0</default-value>
|
||||
<description>
|
||||
Build wxUniversal instead of native port?
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
|
||||
<option name="BUILD">
|
||||
<values>debug,release</values>
|
||||
<values-description>Debug,Release</values-description>
|
||||
<default-value>debug</default-value>
|
||||
<description>
|
||||
Type of compiled binaries
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<if cond="FORMAT=='msvc'">
|
||||
<option name="TARGET_CPU">
|
||||
<default-value>$(DOLLAR)(CPU)</default-value>
|
||||
<description>
|
||||
The target processor architecture must be specified when it is not X86.
|
||||
This does not affect the compiler output, so you still need to make sure
|
||||
your environment is set up appropriately with the correct compiler in the
|
||||
PATH. Rather it affects some options passed to some of the common build
|
||||
utilities such as the resource compiler and the linker.
|
||||
|
||||
Accepted values: IA64, X64, ARM, ARM64
|
||||
(AMD64 accepted as synonym for X64 but should not be used any more).
|
||||
</description>
|
||||
</option>
|
||||
<option name="VISUALSTUDIOVERSION">
|
||||
<default-value>$(DOLLAR)(VISUALSTUDIOVERSION)</default-value>
|
||||
<description>
|
||||
Visual Studio version set by the VS command prompt.
|
||||
</description>
|
||||
</option>
|
||||
<option name="VISUALSTUDIOPLATFORM">
|
||||
<default-value>$(DOLLAR)(PLATFORM)</default-value>
|
||||
<description>
|
||||
Platform architecture set by the VS command prompt.
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
<if cond="FORMAT!='msvc'">
|
||||
<set var="TARGET_CPU"/>
|
||||
</if>
|
||||
|
||||
<!--
|
||||
For MSVC enable debug information in all builds: it is needed to be
|
||||
able to debug the crash dumps produced by wxDebugReport and as it
|
||||
generates it in separate PDB files it doesn't cost us much to enable it
|
||||
(except for disk space...).
|
||||
-->
|
||||
<set var="DEBUG_INFO_DEFAULT">
|
||||
<if cond="IS_MSVC=='1'">1</if>
|
||||
<if cond="IS_MSVC=='0'">default</if>
|
||||
</set>
|
||||
|
||||
<option name="DEBUG_INFO">
|
||||
<values>0,1,default</values>
|
||||
<default-value>$(DEBUG_INFO_DEFAULT)</default-value>
|
||||
<description>
|
||||
Should debugging info be included in the executables? The default value
|
||||
"default" means that debug info will be included if BUILD=debug
|
||||
and not included if BUILD=release.
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="DEBUG_FLAG">
|
||||
<values>0,1,default</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Value of wxDEBUG_LEVEL. The default value is the same as 1 and means that all
|
||||
but expensive assert checks are enabled, use 0 to completely remove debugging
|
||||
code.
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<if cond="FORMAT=='msvc'">
|
||||
<option name="DEBUG_RUNTIME_LIBS">
|
||||
<values>0,1,default</values>
|
||||
<default-value>default</default-value>
|
||||
<description>
|
||||
Link against debug (e.g. msvcrtd.dll) or release (msvcrt.dll) RTL?
|
||||
Default is to use debug CRT if and only if BUILD==debug.
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
<if cond="FORMAT!='msvc'">
|
||||
<set var="DEBUG_RUNTIME_LIBS">default</set>
|
||||
</if>
|
||||
|
||||
<set var="MONOLITHIC_DEFAULT">
|
||||
<if cond="FORMAT=='watcom'">1</if>
|
||||
<if cond="FORMAT!='watcom'">0</if>
|
||||
</set>
|
||||
<option name="MONOLITHIC">
|
||||
<values>0,1</values>
|
||||
<values-description>Multilib,Monolithic</values-description>
|
||||
<default-value>$(MONOLITHIC_DEFAULT)</default-value>
|
||||
<description>
|
||||
Multiple libraries or single huge monolithic one?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<if cond="FORMAT=='autoconf'"> <!-- FIXME - temporary -->
|
||||
<option name="USE_PLUGINS">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build parts of the library as dynamically loadable plugins
|
||||
(only supported in multilib build)?
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="USE_PLUGINS">0</set> <!-- FIXME - temporary -->
|
||||
</if>
|
||||
|
||||
<option name="USE_GUI">
|
||||
<values>0,1</values>
|
||||
<values-description>Base,GUI</values-description>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build GUI libraries?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_HTML">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build wxHTML library (USE_GUI must be 1)?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_WEBVIEW">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build wxWebView library (USE_GUI must be 1)?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_WEBVIEW_CHROMIUM">
|
||||
<values>0,1</values>
|
||||
<default-value>0</default-value>
|
||||
</option>
|
||||
|
||||
<option name="USE_MEDIA">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build multimedia library (USE_GUI must be 1)?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_XML">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build XML-related libraries?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_XRC">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build wxXRC library (USE_GUI must be 1)?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_AUI">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build wxAUI library (USE_GUI must be 1)?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_RIBBON">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build wxRibbon library (USE_GUI must be 1)?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_PROPGRID">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build wxPropertyGrid library (USE_GUI must be 1)?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_RICHTEXT">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build wxRichTextCtrl library (USE_GUI must be 1)?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_STC">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build wxStyledTextCtrl library (USE_GUI must be 1)?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_OPENGL">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Build OpenGL canvas library (USE_GUI must be 1)?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<!-- currently only VC++ can compile wxDebugReport which is in QA lib -->
|
||||
<set var="USE_QA_DEFAULT">
|
||||
<if cond="FORMAT in ['msvc','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">1</if>
|
||||
<if cond="FORMAT not in ['msvc','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">0</if>
|
||||
</set>
|
||||
<option name="USE_QA">
|
||||
<values>0,1</values>
|
||||
<default-value>$(USE_QA_DEFAULT)</default-value>
|
||||
<description>
|
||||
Build quality assurance classes library (USE_GUI must be 1)?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_EXCEPTIONS">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Enable exceptions in compiled code.
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_RTTI">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Enable run-time type information (RTTI) in compiled code.
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_DPI_AWARE_MANIFEST">
|
||||
<values>0,1,2</values>
|
||||
<default-value>2</default-value>
|
||||
<description>
|
||||
Set DPI Awareness (win32) to none, system or per-monitor.
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_THREADS">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>
|
||||
Enable threading in compiled code.
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="USE_CAIRO">
|
||||
<values>0,1</values>
|
||||
<default-value>0</default-value>
|
||||
<description>
|
||||
Enable wxCairoContext for platforms other than Linux/GTK.
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<option name="OFFICIAL_BUILD">
|
||||
<values>0,1</values>
|
||||
<default-value>0</default-value>
|
||||
<description>
|
||||
Is this official build by wxWidgets developers?
|
||||
</description>
|
||||
</option>
|
||||
<option name="VENDOR">
|
||||
<default-value>custom</default-value>
|
||||
<description>
|
||||
Use this to name your customized DLLs differently
|
||||
</description>
|
||||
</option>
|
||||
<!-- These basically do what vendor does in the places it didn't. -->
|
||||
<!-- They should all be unified under some suitable descriptor -->
|
||||
<option name="WX_FLAVOUR">
|
||||
<default-value></default-value>
|
||||
</option>
|
||||
<option name="WX_LIB_FLAVOUR">
|
||||
<default-value></default-value>
|
||||
</option>
|
||||
|
||||
<option name="CFG">
|
||||
<default-value></default-value>
|
||||
<description>
|
||||
Name of your custom configuration. This affects directory
|
||||
where object files are stored as well as the location of
|
||||
compiled .lib files and setup.h under the lib/ toplevel directory.
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- Autoconf -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<option name="TOOLKIT"/>
|
||||
<option name="TOOLKIT_LOWERCASE"/>
|
||||
<option name="TOOLKIT_VERSION"/>
|
||||
<option name="TOOLCHAIN_NAME"/>
|
||||
<option name="TOOLCHAIN_FULLNAME"/>
|
||||
<option name="EXTRALIBS"/>
|
||||
<option name="EXTRALIBS_XML"/>
|
||||
<option name="EXTRALIBS_HTML"/>
|
||||
<option name="EXTRALIBS_MEDIA"/>
|
||||
<option name="EXTRALIBS_GUI"/>
|
||||
<option name="EXTRALIBS_OPENGL"/>
|
||||
<option name="EXTRALIBS_SDL"/>
|
||||
<option name="EXTRALIBS_STC"/>
|
||||
<option name="EXTRALIBS_WEBVIEW"/>
|
||||
<option name="EXTRALDFLAGS_WEBVIEW"/>
|
||||
<option name="WX_CPPFLAGS"/>
|
||||
<option name="WX_CFLAGS"/>
|
||||
<option name="WX_CXXFLAGS"/>
|
||||
<option name="WX_LDFLAGS"/>
|
||||
<option name="CATCH2_CFLAGS"/>
|
||||
<option name="HOST_SUFFIX"/>
|
||||
<option name="DYLIB_RPATH_FLAG"/>
|
||||
<option name="DYLIB_RPATH_INSTALL"/>
|
||||
<option name="DYLIB_RPATH_POSTLINK"/>
|
||||
<option name="SAMPLES_RPATH_FLAG"/>
|
||||
<option name="SAMPLES_CXXFLAGS"/>
|
||||
<option name="USE_WEBVIEW_WEBKIT2"/>
|
||||
|
||||
<!-- see configure.ac; it's required by some samples on Mac OS X -->
|
||||
<option name="HEADER_PAD_OPTION"/>
|
||||
|
||||
<set var="TOP_SRCDIR">$(top_srcdir)/</set>
|
||||
<set var="RUNTIME_LIBS">dynamic</set>
|
||||
<set var="WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
|
||||
|
||||
<option name="WITH_PLUGIN_SDL">
|
||||
<values>0,1</values>
|
||||
</option>
|
||||
|
||||
<option name="wx_top_builddir"/>
|
||||
</if>
|
||||
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- windows/dos compilers -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<option name="RUNTIME_LIBS">
|
||||
<values>dynamic,static</values>
|
||||
<default-value>dynamic</default-value>
|
||||
<description>
|
||||
Version of C runtime library to use. You can change this to
|
||||
static if SHARED=0, but it is highly recommended to not do
|
||||
it if SHARED=1 unless you know what you are doing.
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<set var="WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
|
||||
|
||||
<set var="WIN32_TOOLKIT">
|
||||
<if cond="TOOLKIT=='MSW'">MSW</if>
|
||||
<if cond="TOOLKIT=='GTK'">GTK</if>
|
||||
</set>
|
||||
<set var="WIN32_TOOLKIT_LOWERCASE">
|
||||
<if cond="TOOLKIT=='MSW'">msw</if>
|
||||
<if cond="TOOLKIT=='GTK'">gtk</if>
|
||||
</set>
|
||||
|
||||
<set var="TOOLKIT" overwrite="0">
|
||||
<if cond="FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32,win64'">$(WIN32_TOOLKIT)</if>
|
||||
<if cond="FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='win32,win64'">$(WIN32_TOOLKIT)</if>
|
||||
<if cond="FORMAT not in ['msvs2005prj','msvs2008prj'] and PLATFORM_WIN32=='1'">$(WIN32_TOOLKIT)</if>
|
||||
</set>
|
||||
<set var="TOOLKIT_LOWERCASE">
|
||||
<if cond="FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32,win64'">$(WIN32_TOOLKIT_LOWERCASE)</if>
|
||||
<if cond="FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='win32,win64'">$(WIN32_TOOLKIT_LOWERCASE)</if>
|
||||
<if cond="FORMAT not in ['msvs2005prj','msvs2008prj'] and PLATFORM_WIN32=='1'">$(WIN32_TOOLKIT_LOWERCASE)</if>
|
||||
</set>
|
||||
<if cond="FORMAT in ['msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">
|
||||
<set var="TOOLKIT_VERSION">
|
||||
<if cond="PLATFORM_WIN32=='1' and TOOLKIT=='GTK'">2</if>
|
||||
</set>
|
||||
</if>
|
||||
<set var="HOST_SUFFIX"/>
|
||||
<set var="EXTRACFLAGS"/>
|
||||
<set var="EXTRALIBS"/>
|
||||
<set var="EXTRALIBS_XML"/>
|
||||
<set var="EXTRALIBS_HTML"/>
|
||||
<set var="EXTRALIBS_MEDIA"/>
|
||||
<set var="EXTRALIBS_GUI"/>
|
||||
<set var="EXTRALIBS_OPENGL">
|
||||
<if cond="COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib</if>
|
||||
<if cond="COMPILER=='vc'">opengl32.lib</if>
|
||||
<if cond="COMPILER=='gcc'">-lopengl32</if>
|
||||
</set>
|
||||
<set var="EXTRALIBS_SDL"/>
|
||||
<set var="EXTRALIBS_STC">
|
||||
<if cond="COMPILER=='wat' and TOOLKIT=='MSW'">imm32.lib</if>
|
||||
<if cond="COMPILER=='vc' and TOOLKIT=='MSW'">imm32.lib</if>
|
||||
<if cond="COMPILER=='gcc' and TOOLKIT=='MSW'">-limm32</if>
|
||||
</set>
|
||||
<set var="EXTRALIBS_WEBVIEW"/>
|
||||
<set var="EXTRALDFLAGS_WEBVIEW"/>
|
||||
|
||||
<set var="WITH_PLUGIN_SDL">0</set>
|
||||
|
||||
<if cond="BUILDING_LIB=='1'">
|
||||
<set-srcdir>../..</set-srcdir>
|
||||
</if>
|
||||
<set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
|
||||
</if>
|
||||
|
||||
<if cond="FORMAT=='mingw'">
|
||||
<option name="WINDRES">
|
||||
<default-value>windres</default-value>
|
||||
<description>
|
||||
Windows resource compiler to use, possibly including extra options.
|
||||
For example, add "-F pe-i386" here if using 64 bit windres for 32 bit build.
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- Project files - hardcode some defaults -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<if cond="FORMAT_SUPPORTS_CONDITIONS=='0'">
|
||||
<set var="RUNTIME_LIBS">dynamic</set>
|
||||
<set var="OFFICIAL_BUILD">0</set>
|
||||
<set var="USE_AUI">1</set>
|
||||
<set var="USE_RIBBON">1</set>
|
||||
<set var="USE_PROPGRID">1</set>
|
||||
<set var="USE_RICHTEXT">1</set>
|
||||
<set var="USE_STC">1</set>
|
||||
<set var="USE_HTML">1</set>
|
||||
<set var="USE_WEBVIEW">1</set>
|
||||
<set var="USE_WEBVIEW_CHROMIUM">0</set>
|
||||
<set var="USE_MEDIA">1</set>
|
||||
<set var="USE_XML">1</set>
|
||||
<set var="USE_XRC">1</set>
|
||||
<set var="USE_OPENGL">1</set>
|
||||
<set var="USE_QA">1</set>
|
||||
<set var="MONOLITHIC">0</set>
|
||||
<set var="USE_GUI">1</set>
|
||||
<set var="USE_EXCEPTIONS">1</set>
|
||||
<set var="USE_RTTI">1</set>
|
||||
<set var="USE_DPI_AWARE_MANIFEST">0</set>
|
||||
<set var="USE_THREADS">1</set>
|
||||
<set var="USE_CAIRO">0</set>
|
||||
<set var="DEBUG_INFO">$(DEBUG_INFO_DEFAULT)</set>
|
||||
<set var="DEBUG_FLAG">default</set>
|
||||
</if>
|
||||
|
||||
|
||||
<!-- DigitalMars make is braindead, it doesn't have conditional
|
||||
processing: -->
|
||||
<if cond="FORMAT=='dmars'">
|
||||
<set var="RUNTIME_LIBS">static</set>
|
||||
<set var="BUILD">debug</set>
|
||||
<set var="SHARED">0</set>
|
||||
<set var="WXUNIV">0</set>
|
||||
<!-- Free version does not distribute OpenGL,
|
||||
in commercial distribution better use dmars_smake format -->
|
||||
<set var="USE_OPENGL">0</set>
|
||||
</if>
|
||||
|
||||
<!-- Directory where CEF should be available -->
|
||||
<set var="CEF_DIR">
|
||||
$(TOP_SRCDIR)/3rdparty/cef
|
||||
</set>
|
||||
</makefile>
|
||||
43
libs/wxWidgets-3.3.1/build/bakefiles/expat.bkl
Normal file
43
libs/wxWidgets-3.3.1/build/bakefiles/expat.bkl
Normal file
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<option name="wxUSE_EXPAT"/>
|
||||
<option name="wxCFLAGS_C99"/>
|
||||
<set var="LIB_EXPAT">
|
||||
<if cond="wxUSE_EXPAT=='builtin'">
|
||||
wxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="wxUSE_EXPAT">builtin</set>
|
||||
<set var="LIB_EXPAT">
|
||||
<if cond="wxUSE_EXPAT=='builtin'">
|
||||
wxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<set var="INC_EXPAT">
|
||||
<if cond="wxUSE_EXPAT=='builtin'">$(TOP_SRCDIR)src/expat/expat/lib</if>
|
||||
</set>
|
||||
|
||||
<lib id="wxexpat" template_append="3rdparty_lib"
|
||||
cond="wxUSE_EXPAT=='builtin' and BUILDING_LIB=='1'">
|
||||
<dirname>$(LIBDIRNAME)</dirname>
|
||||
<include cond="FORMAT!='autoconf'">$(LIBDIRNAME)</include>
|
||||
<include cond="FORMAT=='autoconf'">$(BUILDDIR)/src/expat/expat</include>
|
||||
<define cond="FORMAT=='autoconf'">
|
||||
HAVE_EXPAT_CONFIG_H
|
||||
</define>
|
||||
<cflags-borland>-w-8004 -w-8008 -w-8012 -w-8057 -w-8066</cflags-borland>
|
||||
<cflags cond="FORMAT=='autoconf'">$(wxCFLAGS_C99)</cflags>
|
||||
<sources>
|
||||
src/expat/expat/lib/xmlparse.c
|
||||
src/expat/expat/lib/xmlrole.c
|
||||
src/expat/expat/lib/xmltok.c
|
||||
</sources>
|
||||
</lib>
|
||||
|
||||
</makefile>
|
||||
3448
libs/wxWidgets-3.3.1/build/bakefiles/files.bkl
Normal file
3448
libs/wxWidgets-3.3.1/build/bakefiles/files.bkl
Normal file
File diff suppressed because it is too large
Load Diff
80
libs/wxWidgets-3.3.1/build/bakefiles/jpeg.bkl
Normal file
80
libs/wxWidgets-3.3.1/build/bakefiles/jpeg.bkl
Normal file
@@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" ?>
|
||||
<makefile>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<option name="wxUSE_LIBJPEG"/>
|
||||
<set var="LIB_JPEG">
|
||||
<if cond="wxUSE_LIBJPEG=='builtin' and USE_GUI=='1'">
|
||||
wxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="wxUSE_LIBJPEG">builtin</set>
|
||||
<set var="LIB_JPEG">
|
||||
<if cond="wxUSE_LIBJPEG=='builtin' and USE_GUI=='1'">
|
||||
wxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<set var="INC_JPEG">
|
||||
<if cond="wxUSE_LIBJPEG=='builtin'">$(TOP_SRCDIR)src/jpeg</if>
|
||||
</set>
|
||||
|
||||
<lib id="wxjpeg" template_append="3rdparty_lib"
|
||||
cond="wxUSE_LIBJPEG=='builtin' and USE_GUI=='1' and BUILDING_LIB=='1'">
|
||||
<dirname>$(LIBDIRNAME)</dirname>
|
||||
<include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
|
||||
<cflags-borland>-w-8004 -w-8008 -w-8057 -w-8066</cflags-borland>
|
||||
<cflags-watcom>-wcd=136</cflags-watcom>
|
||||
<sources>
|
||||
src/jpeg/jaricom.c
|
||||
src/jpeg/jcapimin.c
|
||||
src/jpeg/jcapistd.c
|
||||
src/jpeg/jcarith.c
|
||||
src/jpeg/jccoefct.c
|
||||
src/jpeg/jccolor.c
|
||||
src/jpeg/jcdctmgr.c
|
||||
src/jpeg/jchuff.c
|
||||
src/jpeg/jcinit.c
|
||||
src/jpeg/jcmainct.c
|
||||
src/jpeg/jcmarker.c
|
||||
src/jpeg/jcmaster.c
|
||||
src/jpeg/jcomapi.c
|
||||
src/jpeg/jcparam.c
|
||||
src/jpeg/jcprepct.c
|
||||
src/jpeg/jcsample.c
|
||||
src/jpeg/jctrans.c
|
||||
src/jpeg/jdapimin.c
|
||||
src/jpeg/jdapistd.c
|
||||
src/jpeg/jdarith.c
|
||||
src/jpeg/jdatadst.c
|
||||
src/jpeg/jdatasrc.c
|
||||
src/jpeg/jdcoefct.c
|
||||
src/jpeg/jdcolor.c
|
||||
src/jpeg/jddctmgr.c
|
||||
src/jpeg/jdhuff.c
|
||||
src/jpeg/jdinput.c
|
||||
src/jpeg/jdmainct.c
|
||||
src/jpeg/jdmarker.c
|
||||
src/jpeg/jdmaster.c
|
||||
src/jpeg/jdmerge.c
|
||||
src/jpeg/jdpostct.c
|
||||
src/jpeg/jdsample.c
|
||||
src/jpeg/jdtrans.c
|
||||
src/jpeg/jerror.c
|
||||
src/jpeg/jfdctflt.c
|
||||
src/jpeg/jfdctfst.c
|
||||
src/jpeg/jfdctint.c
|
||||
src/jpeg/jidctflt.c
|
||||
src/jpeg/jidctfst.c
|
||||
src/jpeg/jidctint.c
|
||||
src/jpeg/jmemmgr.c
|
||||
src/jpeg/jmemnobs.c
|
||||
src/jpeg/jquant1.c
|
||||
src/jpeg/jquant2.c
|
||||
src/jpeg/jutils.c
|
||||
</sources>
|
||||
</lib>
|
||||
|
||||
</makefile>
|
||||
189
libs/wxWidgets-3.3.1/build/bakefiles/lexilla.bkl
Normal file
189
libs/wxWidgets-3.3.1/build/bakefiles/lexilla.bkl
Normal file
@@ -0,0 +1,189 @@
|
||||
<?xml version="1.0" ?>
|
||||
<makefile>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<set var="LIB_LEXILLA">
|
||||
<if cond="USE_STC=='1'">
|
||||
wxlexilla$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="LIB_LEXILLA">
|
||||
<if cond="USE_STC=='1'">
|
||||
wxlexilla$(WXDEBUGFLAG)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
|
||||
<template id="wxlexilla_cppflags">
|
||||
<include>$(TOP_SRCDIR)src/stc/lexilla/access</include>
|
||||
<include>$(TOP_SRCDIR)src/stc/lexilla/include</include>
|
||||
<include>$(TOP_SRCDIR)src/stc/lexilla/lexlib</include>
|
||||
<include>$(TOP_SRCDIR)src/stc/lexilla/include</include>
|
||||
<include>$(TOP_SRCDIR)src/stc/scintilla/include</include>
|
||||
<include>$(TOP_SRCDIR)src/stc/scintilla/src</include>
|
||||
</template>
|
||||
|
||||
<set var="wxlexilla_usingdll">
|
||||
<if cond="SHARED=='1' and MONOLITHIC=='0'">WXUSINGDLL</if>
|
||||
</set>
|
||||
|
||||
<lib id="wxlexilla" template_append="3rdparty_lib,wxlexilla_cppflags,msvc_setup_h"
|
||||
cond="USE_STC=='1' and BUILDING_LIB=='1'">
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<include>$(SETUPHDIR)</include>
|
||||
<include>$(TOP_SRCDIR)include</include>
|
||||
</if>
|
||||
<define>$(wxlexilla_usingdll)</define>
|
||||
<define>__WX$(TOOLKIT)__</define>
|
||||
<define>$(WXUNIV_DEFINE)</define>
|
||||
<define>$(DEBUG_DEFINE)</define>
|
||||
<dirname>$(LIBDIRNAME)</dirname>
|
||||
<sources>
|
||||
src/stc/lexilla/access/LexillaAccess.cxx
|
||||
src/stc/lexilla/lexers/LexA68k.cxx
|
||||
src/stc/lexilla/lexers/LexAPDL.cxx
|
||||
src/stc/lexilla/lexers/LexASY.cxx
|
||||
src/stc/lexilla/lexers/LexAU3.cxx
|
||||
src/stc/lexilla/lexers/LexAVE.cxx
|
||||
src/stc/lexilla/lexers/LexAVS.cxx
|
||||
src/stc/lexilla/lexers/LexAbaqus.cxx
|
||||
src/stc/lexilla/lexers/LexAda.cxx
|
||||
src/stc/lexilla/lexers/LexAsciidoc.cxx
|
||||
src/stc/lexilla/lexers/LexAsm.cxx
|
||||
src/stc/lexilla/lexers/LexAsn1.cxx
|
||||
src/stc/lexilla/lexers/LexBaan.cxx
|
||||
src/stc/lexilla/lexers/LexBash.cxx
|
||||
src/stc/lexilla/lexers/LexBasic.cxx
|
||||
src/stc/lexilla/lexers/LexBatch.cxx
|
||||
src/stc/lexilla/lexers/LexBibTeX.cxx
|
||||
src/stc/lexilla/lexers/LexBullant.cxx
|
||||
src/stc/lexilla/lexers/LexCIL.cxx
|
||||
src/stc/lexilla/lexers/LexCLW.cxx
|
||||
src/stc/lexilla/lexers/LexCOBOL.cxx
|
||||
src/stc/lexilla/lexers/LexCPP.cxx
|
||||
src/stc/lexilla/lexers/LexCSS.cxx
|
||||
src/stc/lexilla/lexers/LexCaml.cxx
|
||||
src/stc/lexilla/lexers/LexCmake.cxx
|
||||
src/stc/lexilla/lexers/LexCoffeeScript.cxx
|
||||
src/stc/lexilla/lexers/LexConf.cxx
|
||||
src/stc/lexilla/lexers/LexCrontab.cxx
|
||||
src/stc/lexilla/lexers/LexCsound.cxx
|
||||
src/stc/lexilla/lexers/LexD.cxx
|
||||
src/stc/lexilla/lexers/LexDMAP.cxx
|
||||
src/stc/lexilla/lexers/LexDMIS.cxx
|
||||
src/stc/lexilla/lexers/LexDart.cxx
|
||||
src/stc/lexilla/lexers/LexDataflex.cxx
|
||||
src/stc/lexilla/lexers/LexDiff.cxx
|
||||
src/stc/lexilla/lexers/LexECL.cxx
|
||||
src/stc/lexilla/lexers/LexEDIFACT.cxx
|
||||
src/stc/lexilla/lexers/LexEScript.cxx
|
||||
src/stc/lexilla/lexers/LexEiffel.cxx
|
||||
src/stc/lexilla/lexers/LexErlang.cxx
|
||||
src/stc/lexilla/lexers/LexErrorList.cxx
|
||||
src/stc/lexilla/lexers/LexFSharp.cxx
|
||||
src/stc/lexilla/lexers/LexFlagship.cxx
|
||||
src/stc/lexilla/lexers/LexForth.cxx
|
||||
src/stc/lexilla/lexers/LexFortran.cxx
|
||||
src/stc/lexilla/lexers/LexGAP.cxx
|
||||
src/stc/lexilla/lexers/LexGDScript.cxx
|
||||
src/stc/lexilla/lexers/LexGui4Cli.cxx
|
||||
src/stc/lexilla/lexers/LexHTML.cxx
|
||||
src/stc/lexilla/lexers/LexHaskell.cxx
|
||||
src/stc/lexilla/lexers/LexHex.cxx
|
||||
src/stc/lexilla/lexers/LexHollywood.cxx
|
||||
src/stc/lexilla/lexers/LexIndent.cxx
|
||||
src/stc/lexilla/lexers/LexInno.cxx
|
||||
src/stc/lexilla/lexers/LexJSON.cxx
|
||||
src/stc/lexilla/lexers/LexJulia.cxx
|
||||
src/stc/lexilla/lexers/LexKVIrc.cxx
|
||||
src/stc/lexilla/lexers/LexKix.cxx
|
||||
src/stc/lexilla/lexers/LexLaTeX.cxx
|
||||
src/stc/lexilla/lexers/LexLisp.cxx
|
||||
src/stc/lexilla/lexers/LexLout.cxx
|
||||
src/stc/lexilla/lexers/LexLua.cxx
|
||||
src/stc/lexilla/lexers/LexMMIXAL.cxx
|
||||
src/stc/lexilla/lexers/LexMPT.cxx
|
||||
src/stc/lexilla/lexers/LexMSSQL.cxx
|
||||
src/stc/lexilla/lexers/LexMagik.cxx
|
||||
src/stc/lexilla/lexers/LexMake.cxx
|
||||
src/stc/lexilla/lexers/LexMarkdown.cxx
|
||||
src/stc/lexilla/lexers/LexMatlab.cxx
|
||||
src/stc/lexilla/lexers/LexMaxima.cxx
|
||||
src/stc/lexilla/lexers/LexMetapost.cxx
|
||||
src/stc/lexilla/lexers/LexModula.cxx
|
||||
src/stc/lexilla/lexers/LexMySQL.cxx
|
||||
src/stc/lexilla/lexers/LexNim.cxx
|
||||
src/stc/lexilla/lexers/LexNimrod.cxx
|
||||
src/stc/lexilla/lexers/LexNix.cxx
|
||||
src/stc/lexilla/lexers/LexNsis.cxx
|
||||
src/stc/lexilla/lexers/LexNull.cxx
|
||||
src/stc/lexilla/lexers/LexOScript.cxx
|
||||
src/stc/lexilla/lexers/LexOpal.cxx
|
||||
src/stc/lexilla/lexers/LexPB.cxx
|
||||
src/stc/lexilla/lexers/LexPLM.cxx
|
||||
src/stc/lexilla/lexers/LexPO.cxx
|
||||
src/stc/lexilla/lexers/LexPOV.cxx
|
||||
src/stc/lexilla/lexers/LexPS.cxx
|
||||
src/stc/lexilla/lexers/LexPascal.cxx
|
||||
src/stc/lexilla/lexers/LexPerl.cxx
|
||||
src/stc/lexilla/lexers/LexPowerPro.cxx
|
||||
src/stc/lexilla/lexers/LexPowerShell.cxx
|
||||
src/stc/lexilla/lexers/LexProgress.cxx
|
||||
src/stc/lexilla/lexers/LexProps.cxx
|
||||
src/stc/lexilla/lexers/LexPython.cxx
|
||||
src/stc/lexilla/lexers/LexR.cxx
|
||||
src/stc/lexilla/lexers/LexRaku.cxx
|
||||
src/stc/lexilla/lexers/LexRebol.cxx
|
||||
src/stc/lexilla/lexers/LexRegistry.cxx
|
||||
src/stc/lexilla/lexers/LexRuby.cxx
|
||||
src/stc/lexilla/lexers/LexRust.cxx
|
||||
src/stc/lexilla/lexers/LexSAS.cxx
|
||||
src/stc/lexilla/lexers/LexSML.cxx
|
||||
src/stc/lexilla/lexers/LexSQL.cxx
|
||||
src/stc/lexilla/lexers/LexSTTXT.cxx
|
||||
src/stc/lexilla/lexers/LexScriptol.cxx
|
||||
src/stc/lexilla/lexers/LexSmalltalk.cxx
|
||||
src/stc/lexilla/lexers/LexSorcus.cxx
|
||||
src/stc/lexilla/lexers/LexSpecman.cxx
|
||||
src/stc/lexilla/lexers/LexSpice.cxx
|
||||
src/stc/lexilla/lexers/LexStata.cxx
|
||||
src/stc/lexilla/lexers/LexTACL.cxx
|
||||
src/stc/lexilla/lexers/LexTADS3.cxx
|
||||
src/stc/lexilla/lexers/LexTAL.cxx
|
||||
src/stc/lexilla/lexers/LexTCL.cxx
|
||||
src/stc/lexilla/lexers/LexTCMD.cxx
|
||||
src/stc/lexilla/lexers/LexTOML.cxx
|
||||
src/stc/lexilla/lexers/LexTeX.cxx
|
||||
src/stc/lexilla/lexers/LexTroff.cxx
|
||||
src/stc/lexilla/lexers/LexTxt2tags.cxx
|
||||
src/stc/lexilla/lexers/LexVB.cxx
|
||||
src/stc/lexilla/lexers/LexVHDL.cxx
|
||||
src/stc/lexilla/lexers/LexVerilog.cxx
|
||||
src/stc/lexilla/lexers/LexVisualProlog.cxx
|
||||
src/stc/lexilla/lexers/LexX12.cxx
|
||||
src/stc/lexilla/lexers/LexYAML.cxx
|
||||
src/stc/lexilla/lexers/LexZig.cxx
|
||||
src/stc/lexilla/lexlib/Accessor.cxx
|
||||
src/stc/lexilla/lexlib/DefaultLexer.cxx
|
||||
src/stc/lexilla/lexlib/InList.cxx
|
||||
src/stc/lexilla/lexlib/LexAccessor.cxx
|
||||
src/stc/lexilla/lexlib/LexCharacterCategory.cxx
|
||||
src/stc/lexilla/lexlib/LexCharacterSet.cxx
|
||||
src/stc/lexilla/lexlib/LexerBase.cxx
|
||||
src/stc/lexilla/lexlib/LexerModule.cxx
|
||||
src/stc/lexilla/lexlib/LexerSimple.cxx
|
||||
src/stc/lexilla/lexlib/PropSetSimple.cxx
|
||||
src/stc/lexilla/lexlib/StyleContext.cxx
|
||||
src/stc/lexilla/lexlib/WordList.cxx
|
||||
src/stc/lexilla/src/Lexilla.cxx
|
||||
</sources>
|
||||
</lib>
|
||||
|
||||
<!-- used to conditionally link against wxlexilla only if it's enabled -->
|
||||
<set var="wxlexilla_library_link">
|
||||
<if cond="USE_STC=='1' and BUILDING_LIB=='1'">wxlexilla</if>
|
||||
</set>
|
||||
|
||||
</makefile>
|
||||
102
libs/wxWidgets-3.3.1/build/bakefiles/mac_bundles.bkl
Normal file
102
libs/wxWidgets-3.3.1/build/bakefiles/mac_bundles.bkl
Normal file
@@ -0,0 +1,102 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<!--
|
||||
Support for application bundles, for wxWidgets samples.
|
||||
-->
|
||||
|
||||
<set var="BUNDLE_PLIST" overwrite="0">
|
||||
$(TOP_SRCDIR)src/osx/carbon/Info.plist.in
|
||||
</set>
|
||||
<set var="BUNDLE_ICON" overwrite="0">
|
||||
$(TOP_SRCDIR)src/osx/carbon/wxmac.icns
|
||||
</set>
|
||||
<set var="BUNDLE_RESOURCES" overwrite="0"></set>
|
||||
<set var="BUNDLE_FONT_RESOURCES" overwrite="0"></set>
|
||||
|
||||
<define-tag name="wx-mac-app-bundle" rules="exe">
|
||||
|
||||
<!-- bundle directory: -->
|
||||
<set var="BUNDLE">$(id).app/Contents</set>
|
||||
<set var="BUNDLE_TGT">$(BUNDLE)/PkgInfo</set>
|
||||
<set var="BUNDLE_TGT_REF">
|
||||
<!-- TODO Remove Mac -->
|
||||
<if cond="TOOLKIT=='MAC'">$(BUNDLE)/PkgInfo</if>
|
||||
<if cond="TOOLKIT=='OSX_CARBON'">$(BUNDLE)/PkgInfo</if>
|
||||
<if cond="TOOLKIT=='OSX_COCOA'">$(BUNDLE)/PkgInfo</if>
|
||||
<if cond="TOOLKIT=='OSX_IPHONE'">$(BUNDLE)/PkgInfo</if>
|
||||
<if cond="TOOLKIT=='COCOA'">$(BUNDLE)/PkgInfo</if>
|
||||
</set>
|
||||
|
||||
<add-target target="$(BUNDLE_TGT)" type="action"
|
||||
cond="target and PLATFORM_MACOSX=='1'"/>
|
||||
<modify-target target="$(BUNDLE_TGT)">
|
||||
<!-- required data: -->
|
||||
<depends>$(id)</depends>
|
||||
<depends-on-file>$(BUNDLE_PLIST)</depends-on-file>
|
||||
<depends-on-file>$(BUNDLE_ICON)</depends-on-file>
|
||||
<depends-on-file>$(BUNDLE_RESOURCES)</depends-on-file>
|
||||
<depends-on-file>$(BUNDLE_FONT_RESOURCES)</depends-on-file>
|
||||
|
||||
<command>
|
||||
<!-- create the directories: -->
|
||||
mkdir -p $(BUNDLE)
|
||||
mkdir -p $(BUNDLE)/MacOS
|
||||
mkdir -p $(BUNDLE)/Resources
|
||||
|
||||
<!-- Info.plist: -->
|
||||
sed -e "s/\$(DOLLAR)$(DOLLAR){MACOSX_BUNDLE_GUI_IDENTIFIER}/org.wxwidgets.$(id)/" \
|
||||
-e "s/\$(DOLLAR)$(DOLLAR){MACOSX_BUNDLE_EXECUTABLE_NAME}/$(id)/" \
|
||||
-e "s/\$(DOLLAR)$(DOLLAR){MACOSX_BUNDLE_BUNDLE_NAME}/$(id)/" \
|
||||
-e "s/\$(DOLLAR)$(DOLLAR){MACOSX_BUNDLE_COPYRIGHT}/Copyright 2002-2025 wxWidgets/" \
|
||||
-e "s/\$(DOLLAR)$(DOLLAR){MACOSX_BUNDLE_BUNDLE_VERSION}/$(WX_VERSION)/" \
|
||||
-e "s/\$(DOLLAR)$(DOLLAR){MACOSX_BUNDLE_INFO_STRING}/$(id) version $(WX_VERSION), (c) 2002-2025 wxWidgets/" \
|
||||
-e "s/\$(DOLLAR)$(DOLLAR){MACOSX_BUNDLE_LONG_VERSION_STRING}/$(WX_VERSION), (c) 2002-2025 wxWidgets/" \
|
||||
-e "s/\$(DOLLAR)$(DOLLAR){MACOSX_BUNDLE_SHORT_VERSION_STRING}/$(WX_RELEASE)/" \
|
||||
$(BUNDLE_PLIST) >$(BUNDLE)/Info.plist
|
||||
|
||||
<!-- PkgInfo: -->
|
||||
/bin/echo "APPL????" >$(BUNDLE)/PkgInfo
|
||||
|
||||
<!-- move the binary: -->
|
||||
ln -f $(ref("__targetdir",id))$(ref("__targetname",id)) $(BUNDLE)/MacOS/$(id)
|
||||
|
||||
<!-- copy the application icon: -->
|
||||
cp -f $(BUNDLE_ICON) $(BUNDLE)/Resources/wxmac.icns
|
||||
</command>
|
||||
<if cond="BUNDLE_RESOURCES!=''">
|
||||
<command>
|
||||
<!-- copy all other bundle resources: -->
|
||||
cp -f $(BUNDLE_RESOURCES) $(BUNDLE)/Resources
|
||||
</command>
|
||||
</if>
|
||||
<if cond="BUNDLE_FONT_RESOURCES!=''">
|
||||
<!--
|
||||
Special case of font resources, which must be copied into
|
||||
the Fonts subdirectory used in src/osx/carbon/Info.plist.in file.
|
||||
-->
|
||||
<command>
|
||||
mkdir -p $(BUNDLE)/Resources/Fonts
|
||||
cp -f $(BUNDLE_FONT_RESOURCES) $(BUNDLE)/Resources/Fonts
|
||||
</command>
|
||||
</if>
|
||||
|
||||
</modify-target>
|
||||
|
||||
<!-- add pseudo target id_bundle: -->
|
||||
<add-target target="$(id)_bundle" type="phony"
|
||||
cond="target and PLATFORM_MACOSX=='1'"/>
|
||||
<modify-target target="$(id)_bundle">
|
||||
<dependency-of>all</dependency-of>
|
||||
<depends>$(BUNDLE_TGT_REF)</depends>
|
||||
</modify-target>
|
||||
|
||||
<!-- "make clean" should delete the bundle: -->
|
||||
<modify-target target="clean">
|
||||
<command>rm -rf $(id).app</command>
|
||||
</modify-target>
|
||||
|
||||
</define-tag>
|
||||
|
||||
</makefile>
|
||||
815
libs/wxWidgets-3.3.1/build/bakefiles/make_dist.mk
Normal file
815
libs/wxWidgets-3.3.1/build/bakefiles/make_dist.mk
Normal file
@@ -0,0 +1,815 @@
|
||||
#
|
||||
# "make dist" target implementation:
|
||||
#
|
||||
|
||||
|
||||
############################# Dirs #################################
|
||||
|
||||
WXDIR = $(top_srcdir)
|
||||
|
||||
# Subordinate library possibilities
|
||||
|
||||
SRCDIR = $(WXDIR)/src
|
||||
GENDIR = $(WXDIR)/src/generic
|
||||
COMMDIR = $(WXDIR)/src/common
|
||||
HTMLDIR = $(WXDIR)/src/html
|
||||
RICHTEXTDIR = $(WXDIR)/src/richtext
|
||||
AUIDIR = $(WXDIR)/src/aui
|
||||
RIBBONDIR = $(WXDIR)/src/ribbon
|
||||
PROPGRIDDIR = $(WXDIR)/src/propgrid
|
||||
STCDIR = $(WXDIR)/src/stc
|
||||
SCINTILLADIR = $(WXDIR)/src/stc/scintilla
|
||||
LEXILLADIR = $(WXDIR)/src/stc/lexilla
|
||||
UNIXDIR = $(WXDIR)/src/unix
|
||||
PNGDIR = $(WXDIR)/src/png
|
||||
WEBPDIR = $(WXDIR)/3rdparty/libwebp
|
||||
JPEGDIR = $(WXDIR)/src/jpeg
|
||||
TIFFDIR = $(WXDIR)/src/tiff
|
||||
ZLIBDIR = $(WXDIR)/src/zlib
|
||||
EXPATDIR = $(WXDIR)/src/expat
|
||||
GTKDIR = $(WXDIR)/src/gtk
|
||||
X11DIR = $(WXDIR)/src/x11
|
||||
X11INC = $(WXDIR)/include/wx/x11
|
||||
MSWDIR = $(WXDIR)/src/msw
|
||||
MACDIR = $(WXDIR)/src/osx
|
||||
COCOADIR = $(WXDIR)/src/cocoa
|
||||
FTDIR = $(WXDIR)/src/freetype
|
||||
INCDIR = $(WXDIR)/include
|
||||
IFACEDIR = $(WXDIR)/interface
|
||||
SAMPDIR = $(WXDIR)/samples
|
||||
DEMODIR = $(WXDIR)/demos
|
||||
UTILSDIR = $(WXDIR)/utils
|
||||
MISCDIR = $(WXDIR)/misc
|
||||
|
||||
DOCDIR = $(WXDIR)/docs
|
||||
INTLDIR = $(WXDIR)/locale
|
||||
|
||||
TOOLKITDIR = $(TOOLKIT_LOWERCASE)
|
||||
|
||||
########################## Archive name ###############################
|
||||
|
||||
# append a version suffix x.y.z to all file names
|
||||
WXARCHIVE=@DISTDIR@-$(WX_VERSION).tar.gz
|
||||
WXGLARCHIVE=@DISTDIR@-gl-$(WX_VERSION).tar.gz
|
||||
WXSAMPLES=wx$(TOOLKIT)-samples-$(WX_VERSION).tar.gz
|
||||
WXDEMOS=wx$(TOOLKIT)-demos-$(WX_VERSION).tar.gz
|
||||
WXARCHIVE_ZIP=wxMSW-$(WX_VERSION).zip
|
||||
|
||||
WXARCHIVE_BZIP=@DISTDIR@-$(WX_VERSION).tar.bz2
|
||||
WXGLARCHIVE_BZIP=@DISTDIR@-gl-$(WX_VERSION).tar.bz2
|
||||
WXSAMPLES_BZIP=wx$(TOOLKIT)-samples-$(WX_VERSION).tar.bz2
|
||||
WXDEMOS_BZIP=wx$(TOOLKIT)-demos-$(WX_VERSION).tar.bz2
|
||||
|
||||
DISTDIRNAME=@DISTDIR@-$(WX_VERSION)
|
||||
DISTDIR=./_dist_dir/$(DISTDIRNAME)
|
||||
BASEDISTDIR=./_dist_dir/wxBase-$(WX_VERSION)
|
||||
|
||||
########################## Tools ###############################
|
||||
|
||||
CP_PR = cp -pR
|
||||
CP_P = cp -p
|
||||
|
||||
########################## make dist rules ###############################
|
||||
|
||||
# this target should copy only the files common to really all ports (including
|
||||
# wxBase) to the dist dir
|
||||
ALL_DIST: distrib_clean
|
||||
mkdir _dist_dir
|
||||
mkdir $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/configure.ac $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/configure $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/autoconf_inc.m4 $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/wxwin.m4 $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/acinclude.m4 $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/aclocal.m4 $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/config.sub $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/config.guess $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/install-sh $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/mkinstalldirs $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/wx-config.in $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/wx-config-inplace.in $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/version-script.in $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/setup.h.in $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/setup.h_vms $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/descrip.mms $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/Makefile.in $(DISTDIR)
|
||||
$(CP_P) $(DOCDIR)/lgpl.txt $(DISTDIR)/COPYING.LIB
|
||||
$(CP_P) $(DOCDIR)/licence.txt $(DISTDIR)/LICENCE.txt
|
||||
$(CP_P) $(DOCDIR)/changes.txt $(DISTDIR)/CHANGES.txt
|
||||
mkdir $(DISTDIR)/lib
|
||||
$(CP_P) $(WXDIR)/lib/vms.opt $(DISTDIR)/lib
|
||||
$(CP_P) $(WXDIR)/lib/vms_gtk.opt $(DISTDIR)/lib
|
||||
mkdir $(DISTDIR)/src
|
||||
mkdir $(DISTDIR)/src/xml
|
||||
$(CP_P) $(SRCDIR)/xml/*.cpp $(DISTDIR)/src/xml
|
||||
mkdir $(DISTDIR)/src/zlib
|
||||
$(CP_P) $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
|
||||
$(CP_P) $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
|
||||
$(CP_P) $(ZLIBDIR)/README $(DISTDIR)/src/zlib
|
||||
#$(CP_P) $(ZLIBDIR)/*.mms $(DISTDIR)/src/zlib
|
||||
$(CP_PR) $(EXPATDIR) $(DISTDIR)/src/expat
|
||||
#(cd $(DISTDIR)/src/expat ; rm -rf `find -name CVS`)
|
||||
# copy some files from include/ that are not installed:
|
||||
mkdir $(DISTDIR)/include
|
||||
mkdir $(DISTDIR)/include/wx
|
||||
mkdir $(DISTDIR)/include/wx/private
|
||||
$(CP_P) $(INCDIR)/wx/fmappriv.h $(DISTDIR)/include/wx
|
||||
$(CP_P) $(INCDIR)/wx/private/*.h $(DISTDIR)/include/wx/private
|
||||
# copy wxpresets
|
||||
mkdir $(DISTDIR)/build
|
||||
mkdir $(DISTDIR)/build/bakefiles
|
||||
$(CP_P) $(WXDIR)/build/bakefiles/README $(DISTDIR)/build/bakefiles
|
||||
$(CP_P) $(WXDIR)/build/bakefiles/*.* $(DISTDIR)/build/bakefiles
|
||||
mkdir $(DISTDIR)/build/bakefiles/wxpresets
|
||||
mkdir $(DISTDIR)/build/bakefiles/wxpresets/presets
|
||||
$(CP_P) $(WXDIR)/build/bakefiles/wxpresets/*.txt $(DISTDIR)/build/bakefiles/wxpresets
|
||||
$(CP_P) $(WXDIR)/build/bakefiles/wxpresets/presets/*.bkl $(DISTDIR)/build/bakefiles/wxpresets/presets
|
||||
$(CP_P) $(WXDIR)/build/bakefiles/wxpresets/presets/wx_presets.py $(DISTDIR)/build/bakefiles/wxpresets/presets
|
||||
mkdir $(DISTDIR)/build/bakefiles/wxpresets/sample
|
||||
$(CP_P) $(WXDIR)/build/bakefiles/wxpresets/sample/minimal* $(DISTDIR)/build/bakefiles/wxpresets/sample
|
||||
$(CP_P) $(WXDIR)/build/bakefiles/wxpresets/sample/config* $(DISTDIR)/build/bakefiles/wxpresets/sample
|
||||
mkdir $(DISTDIR)/build/bakefiles/wxpresets/libsample
|
||||
$(CP_P) $(WXDIR)/build/bakefiles/wxpresets/libsample/*.* $(DISTDIR)/build/bakefiles/wxpresets/libsample
|
||||
mkdir $(DISTDIR)/build/aclocal
|
||||
$(CP_P) $(WXDIR)/build/aclocal/*.m4 $(DISTDIR)/build/aclocal
|
||||
|
||||
# this target is the common part of distribution script for all GUI toolkits,
|
||||
# but is not used when building wxBase distribution
|
||||
ALL_GUI_DIST: ALL_DIST
|
||||
$(CP_P) $(DOCDIR)/readme.txt $(DISTDIR)/README.txt
|
||||
if test -f $(DOCDIR)/$(TOOLKITDIR)/changes.txt ; then \
|
||||
$(CP_P) $(DOCDIR)/$(TOOLKITDIR)/changes.txt $(DISTDIR)/CHANGES-$(TOOLKIT).txt ; fi
|
||||
$(CP_P) $(DOCDIR)/$(TOOLKITDIR)/readme.txt $(DISTDIR)/README-$(TOOLKIT).txt
|
||||
if test -f $(DOCDIR)/$(TOOLKITDIR)/todo.txt ; then \
|
||||
$(CP_P) $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt ; fi
|
||||
mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)
|
||||
if test -d $(INCDIR)/wx/$(TOOLKITDIR)/private; then \
|
||||
mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)/private && \
|
||||
$(CP_P) $(INCDIR)/wx/$(TOOLKITDIR)/private/*.h $(DISTDIR)/include/wx/$(TOOLKITDIR)/private; \
|
||||
fi
|
||||
mkdir $(DISTDIR)/include/wx/meta
|
||||
mkdir $(DISTDIR)/include/wx/generic
|
||||
mkdir $(DISTDIR)/include/wx/generic/private
|
||||
mkdir $(DISTDIR)/include/wx/html
|
||||
mkdir $(DISTDIR)/include/wx/richtext
|
||||
mkdir $(DISTDIR)/include/wx/richtext/bitmaps
|
||||
mkdir $(DISTDIR)/include/wx/aui
|
||||
mkdir $(DISTDIR)/include/wx/ribbon
|
||||
mkdir $(DISTDIR)/include/wx/persist
|
||||
mkdir $(DISTDIR)/include/wx/propgrid
|
||||
mkdir $(DISTDIR)/include/wx/stc
|
||||
mkdir $(DISTDIR)/include/wx/protocol
|
||||
mkdir $(DISTDIR)/include/wx/unix
|
||||
mkdir $(DISTDIR)/include/wx/unix/private
|
||||
mkdir $(DISTDIR)/include/wx/xml
|
||||
mkdir $(DISTDIR)/include/wx/xrc
|
||||
$(CP_P) $(INCDIR)/wx/*.h $(DISTDIR)/include/wx
|
||||
$(CP_P) $(INCDIR)/wx/*.cpp $(DISTDIR)/include/wx
|
||||
$(CP_P) $(INCDIR)/wx/meta/*.h $(DISTDIR)/include/wx/meta
|
||||
$(CP_P) $(INCDIR)/wx/generic/*.h $(DISTDIR)/include/wx/generic
|
||||
$(CP_P) $(INCDIR)/wx/generic/private/*.h $(DISTDIR)/include/wx/generic/private
|
||||
$(CP_P) $(INCDIR)/wx/html/*.h $(DISTDIR)/include/wx/html
|
||||
$(CP_P) $(INCDIR)/wx/richtext/*.h $(DISTDIR)/include/wx/richtext
|
||||
$(CP_P) $(INCDIR)/wx/richtext/bitmaps/*.xpm $(DISTDIR)/include/wx/richtext/bitmaps
|
||||
$(CP_P) $(INCDIR)/wx/aui/*.h $(DISTDIR)/include/wx/aui
|
||||
$(CP_P) $(INCDIR)/wx/ribbon/*.h $(DISTDIR)/include/wx/ribbon
|
||||
$(CP_P) $(INCDIR)/wx/persist/*.h $(DISTDIR)/include/wx/persist
|
||||
$(CP_P) $(INCDIR)/wx/propgrid/*.h $(DISTDIR)/include/wx/propgrid
|
||||
$(CP_P) $(INCDIR)/wx/stc/*.h $(DISTDIR)/include/wx/stc
|
||||
$(CP_P) $(INCDIR)/wx/protocol/*.h $(DISTDIR)/include/wx/protocol
|
||||
$(CP_P) $(INCDIR)/wx/unix/*.h $(DISTDIR)/include/wx/unix
|
||||
$(CP_P) $(INCDIR)/wx/unix/private/*.h $(DISTDIR)/include/wx/unix/private
|
||||
$(CP_P) $(INCDIR)/wx/xml/*.h $(DISTDIR)/include/wx/xml
|
||||
$(CP_P) $(INCDIR)/wx/xrc/*.h $(DISTDIR)/include/wx/xrc
|
||||
|
||||
mkdir $(DISTDIR)/art
|
||||
mkdir $(DISTDIR)/art/gtk
|
||||
$(CP_P) $(WXDIR)/art/*.xpm $(DISTDIR)/art
|
||||
$(CP_P) $(WXDIR)/art/gtk/*.xpm $(DISTDIR)/art/gtk
|
||||
|
||||
mkdir $(DISTDIR)/src/$(TOOLKITDIR)
|
||||
$(CP_P) $(COMMDIR)/*.cpp $(DISTDIR)/src/common
|
||||
$(CP_P) $(COMMDIR)/*.c $(DISTDIR)/src/common
|
||||
$(CP_P) $(COMMDIR)/*.inc $(DISTDIR)/src/common
|
||||
$(CP_P) $(COMMDIR)/*.mms $(DISTDIR)/src/common
|
||||
|
||||
mkdir $(DISTDIR)/src/xrc
|
||||
$(CP_P) $(SRCDIR)/xrc/*.cpp $(DISTDIR)/src/xrc
|
||||
|
||||
mkdir $(DISTDIR)/src/unix
|
||||
$(CP_P) $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
|
||||
$(CP_P) $(UNIXDIR)/*.mms $(DISTDIR)/src/unix
|
||||
|
||||
mkdir $(DISTDIR)/src/generic
|
||||
$(CP_P) $(GENDIR)/*.cpp $(DISTDIR)/src/generic
|
||||
$(CP_P) $(GENDIR)/*.mms $(DISTDIR)/src/generic
|
||||
|
||||
mkdir $(DISTDIR)/src/html
|
||||
$(CP_P) $(HTMLDIR)/*.cpp $(DISTDIR)/src/html
|
||||
|
||||
mkdir $(DISTDIR)/src/richtext
|
||||
$(CP_P) $(RICHTEXTDIR)/*.cpp $(DISTDIR)/src/richtext
|
||||
|
||||
mkdir $(DISTDIR)/src/aui
|
||||
$(CP_P) $(AUIDIR)/*.cpp $(DISTDIR)/src/aui
|
||||
|
||||
mkdir $(DISTDIR)/src/ribbon
|
||||
$(CP_P) $(RIBBONDIR)/*.cpp $(DISTDIR)/src/ribbon
|
||||
|
||||
mkdir $(DISTDIR)/src/propgrid
|
||||
$(CP_P) $(PROPGRIDDIR)/*.cpp $(DISTDIR)/src/propgrid
|
||||
|
||||
mkdir $(DISTDIR)/src/stc
|
||||
$(CP_P) $(STCDIR)/*.* $(DISTDIR)/src/stc
|
||||
|
||||
mkdir $(DISTDIR)/src/stc/scintilla
|
||||
$(CP_PR) $(SCINTILLADIR)/* $(DISTDIR)/src/stc/scintilla
|
||||
|
||||
mkdir $(DISTDIR)/src/stc/lexilla
|
||||
$(CP_PR) $(LEXILLADIR)/* $(DISTDIR)/src/stc/lexilla
|
||||
|
||||
mkdir $(DISTDIR)/src/png
|
||||
$(CP_PR) $(PNGDIR)/* $(DISTDIR)/src/png
|
||||
|
||||
mkdir $(DISTDIR)/3rdparty/libwebp
|
||||
$(CP_PR) $(WEBPDIR)/* $(DISTDIR)/3rdparty/libwebp
|
||||
|
||||
mkdir $(DISTDIR)/src/jpeg
|
||||
$(CP_P) $(JPEGDIR)/*.h $(DISTDIR)/src/jpeg
|
||||
$(CP_P) $(JPEGDIR)/*.c $(DISTDIR)/src/jpeg
|
||||
$(CP_P) $(JPEGDIR)/*.vc $(DISTDIR)/src/jpeg
|
||||
$(CP_P) $(JPEGDIR)/makefile.* $(DISTDIR)/src/jpeg
|
||||
$(CP_P) $(JPEGDIR)/README $(DISTDIR)/src/jpeg
|
||||
|
||||
mkdir $(DISTDIR)/src/tiff
|
||||
mkdir $(DISTDIR)/src/tiff/config
|
||||
mkdir $(DISTDIR)/src/tiff/contrib
|
||||
mkdir $(DISTDIR)/src/tiff/port
|
||||
mkdir $(DISTDIR)/src/tiff/html
|
||||
mkdir $(DISTDIR)/src/tiff/man
|
||||
mkdir $(DISTDIR)/src/tiff/libtiff
|
||||
mkdir $(DISTDIR)/src/tiff/tools
|
||||
mkdir $(DISTDIR)/src/tiff/test
|
||||
mkdir $(DISTDIR)/src/tiff/m4
|
||||
$(CP_P) $(TIFFDIR)/config/* $(DISTDIR)/src/tiff/config
|
||||
$(CP_PR) $(TIFFDIR)/contrib/* $(DISTDIR)/src/tiff/contrib
|
||||
$(CP_P) $(TIFFDIR)/port/* $(DISTDIR)/src/tiff/port
|
||||
$(CP_PR) $(TIFFDIR)/html/* $(DISTDIR)/src/tiff/html
|
||||
$(CP_P) $(TIFFDIR)/man/* $(DISTDIR)/src/tiff/man
|
||||
$(CP_P) $(TIFFDIR)/tools/* $(DISTDIR)/src/tiff/tools
|
||||
$(CP_P) $(TIFFDIR)/test/* $(DISTDIR)/src/tiff/test
|
||||
$(CP_P) $(TIFFDIR)/libtiff/* $(DISTDIR)/src/tiff/libtiff
|
||||
$(CP_P) $(TIFFDIR)/m4/* $(DISTDIR)/src/tiff/m4
|
||||
$(CP_P) $(TIFFDIR)/README $(DISTDIR)/src/tiff
|
||||
$(CP_P) $(TIFFDIR)/VERSION $(DISTDIR)/src/tiff
|
||||
$(CP_P) $(TIFFDIR)/configure* $(DISTDIR)/src/tiff
|
||||
$(CP_P) $(TIFFDIR)/aclocal.m4 $(DISTDIR)/src/tiff
|
||||
$(CP_P) $(TIFFDIR)/autogen.sh $(DISTDIR)/src/tiff
|
||||
$(CP_P) $(TIFFDIR)/Makefile* $(DISTDIR)/src/tiff
|
||||
|
||||
BASE_DIST: ALL_DIST INTL_DIST
|
||||
# make --disable-gui the default
|
||||
rm $(DISTDIR)/configure.ac
|
||||
sed 's/DEFAULT_wxUSE_GUI=yes/DEFAULT_wxUSE_GUI=no/' \
|
||||
$(WXDIR)/configure.ac > $(DISTDIR)/configure.ac
|
||||
rm $(DISTDIR)/configure
|
||||
sed 's/DEFAULT_wxUSE_GUI=yes/DEFAULT_wxUSE_GUI=no/' \
|
||||
$(WXDIR)/configure > $(DISTDIR)/configure
|
||||
chmod +x $(DISTDIR)/configure
|
||||
mkdir $(DISTDIR)/include/wx/protocol
|
||||
mkdir $(DISTDIR)/include/wx/unix
|
||||
mkdir $(DISTDIR)/include/wx/xml
|
||||
mkdir $(DISTDIR)/include/wx/msw
|
||||
mkdir $(DISTDIR)/include/wx/html
|
||||
mkdir $(DISTDIR)/include/wx/richtext
|
||||
mkdir $(DISTDIR)/include/wx/richtext/bitmaps
|
||||
mkdir $(DISTDIR)/include/wx/aui
|
||||
mkdir $(DISTDIR)/include/wx/ribbon
|
||||
mkdir $(DISTDIR)/include/wx/persist
|
||||
mkdir $(DISTDIR)/include/wx/propgrid
|
||||
mkdir $(DISTDIR)/include/wx/stc
|
||||
mkdir $(DISTDIR)/include/wx/osx
|
||||
mkdir $(DISTDIR)/include/wx/osx/carbon
|
||||
mkdir $(DISTDIR)/include/wx/osx/core
|
||||
mkdir $(DISTDIR)/src/unix
|
||||
mkdir $(DISTDIR)/src/osx
|
||||
mkdir $(DISTDIR)/src/osx/core
|
||||
mkdir $(DISTDIR)/src/osx/carbon
|
||||
mkdir $(DISTDIR)/src/msw
|
||||
$(CP_P) $(DOCDIR)/base/readme.txt $(DISTDIR)/README.txt
|
||||
$(CP_P) $(WXDIR)/src/common/*.inc $(DISTDIR)/src/common
|
||||
list='$(ALL_PORTS_BASE_HEADERS)'; for p in $$list; do \
|
||||
$(CP_P) $(WXDIR)/include/$$p $(DISTDIR)/include/$$p; \
|
||||
done
|
||||
list='$(ALL_BASE_SOURCES)'; for p in $$list; do \
|
||||
$(CP_P) $(WXDIR)/$$p $(DISTDIR)/$$p; \
|
||||
done
|
||||
|
||||
mkdir $(DISTDIR)/samples
|
||||
$(CP_P) $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
|
||||
$(CP_P) $(SAMPDIR)/makefile.* $(DISTDIR)/samples
|
||||
$(CP_P) $(SAMPDIR)/sample.* $(DISTDIR)/samples
|
||||
$(CP_P) $(SAMPDIR)/samples.* $(DISTDIR)/samples
|
||||
|
||||
mkdir $(DISTDIR)/samples/console
|
||||
$(CP_P) $(SAMPDIR)/console/Makefile.in $(DISTDIR)/samples/console
|
||||
$(CP_P) $(SAMPDIR)/console/makefile.unx $(DISTDIR)/samples/console
|
||||
$(CP_P) $(SAMPDIR)/console/console.cpp $(DISTDIR)/samples/console
|
||||
$(CP_P) $(SAMPDIR)/console/console.dsp $(DISTDIR)/samples/console
|
||||
|
||||
mv $(DISTDIR) $(BASEDISTDIR)
|
||||
|
||||
GTK_DIST: UNIV_DIST
|
||||
$(CP_P) $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk
|
||||
$(CP_P) $(GTKDIR)/*.h $(DISTDIR)/src/gtk
|
||||
$(CP_P) $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
|
||||
$(CP_P) $(GTKDIR)/*.c $(DISTDIR)/src/gtk
|
||||
$(CP_P) $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
|
||||
$(CP_P) $(GTKDIR)/*.mms $(DISTDIR)/src/gtk
|
||||
mkdir $(DISTDIR)/include/wx/x11/private
|
||||
$(CP_P) $(INCDIR)/wx/x11/private/*.h $(DISTDIR)/include/wx/x11/private
|
||||
|
||||
mkdir $(DISTDIR)/include/wx/gtk/gnome
|
||||
mkdir $(DISTDIR)/src/gtk/gnome
|
||||
$(CP_P) $(INCDIR)/wx/gtk/gnome/*.h $(DISTDIR)/include/wx/gtk/gnome
|
||||
$(CP_P) $(GTKDIR)/gnome/*.cpp $(DISTDIR)/src/gtk/gnome
|
||||
|
||||
mkdir $(DISTDIR)/src/osx
|
||||
mkdir $(DISTDIR)/src/osx/core
|
||||
$(CP_P) $(WXDIR)/src/osx/core/*.cpp $(DISTDIR)/src/osx/core
|
||||
mkdir $(DISTDIR)/include/wx/osx
|
||||
mkdir $(DISTDIR)/include/wx/osx/core
|
||||
$(CP_P) $(WXDIR)/include/wx/osx/core/*.h $(DISTDIR)/include/wx/osx/core
|
||||
|
||||
X11_DIST: UNIV_DIST
|
||||
$(CP_P) $(INCDIR)/wx/x11/*.h $(DISTDIR)/include/wx/x11
|
||||
mkdir $(DISTDIR)/include/wx/x11/private
|
||||
$(CP_P) $(INCDIR)/wx/x11/private/*.h $(DISTDIR)/include/wx/x11/private
|
||||
mkdir $(DISTDIR)/include/wx/gtk/private
|
||||
$(CP_P) $(INCDIR)/wx/gtk/private/string.h $(DISTDIR)/include/wx/gtk/private
|
||||
$(CP_P) $(X11DIR)/*.cpp $(DISTDIR)/src/x11
|
||||
$(CP_P) $(X11DIR)/*.c $(DISTDIR)/src/x11
|
||||
$(CP_P) $(X11DIR)/*.xbm $(DISTDIR)/src/x11
|
||||
mkdir $(DISTDIR)/src/osx
|
||||
mkdir $(DISTDIR)/src/osx/core
|
||||
$(CP_P) $(WXDIR)/src/osx/core/*.cpp $(DISTDIR)/src/osx/core
|
||||
mkdir $(DISTDIR)/include/wx/osx
|
||||
mkdir $(DISTDIR)/include/wx/osx/core
|
||||
$(CP_P) $(WXDIR)/include/wx/osx/core/*.h $(DISTDIR)/include/wx/osx/core
|
||||
|
||||
OSX_CARBON_DIST: ALL_GUI_DIST
|
||||
$(CP_P) $(INCDIR)/*.* $(DISTDIR)/include
|
||||
mkdir $(DISTDIR)/include/wx/osx/carbon
|
||||
mkdir $(DISTDIR)/include/wx/osx/carbon/private
|
||||
mkdir $(DISTDIR)/include/wx/osx/cocoa
|
||||
mkdir $(DISTDIR)/include/wx/osx/iphone
|
||||
$(CP_P) $(INCDIR)/wx/osx/*.h $(DISTDIR)/include/wx/osx
|
||||
$(CP_P) $(INCDIR)/wx/osx/carbon/*.h $(DISTDIR)/include/wx/osx/carbon
|
||||
$(CP_P) $(INCDIR)/wx/osx/carbon/private/*.h $(DISTDIR)/include/wx/osx/carbon/private
|
||||
$(CP_P) $(INCDIR)/wx/osx/private/*.h $(DISTDIR)/include/wx/osx/private
|
||||
$(CP_P) $(INCDIR)/wx/osx/cocoa/*.h $(DISTDIR)/include/wx/osx/cocoa
|
||||
$(CP_P) $(INCDIR)/wx/osx/iphone/*.h $(DISTDIR)/include/wx/osx/iphone
|
||||
mkdir $(DISTDIR)/include/wx/osx/core
|
||||
mkdir $(DISTDIR)/include/wx/osx/core/private
|
||||
$(CP_P) $(INCDIR)/wx/osx/core/*.h $(DISTDIR)/include/wx/osx/core
|
||||
$(CP_P) $(INCDIR)/wx/osx/core/private/*.h $(DISTDIR)/include/wx/osx/core/private
|
||||
mkdir $(DISTDIR)/src/osx/core
|
||||
$(CP_P) $(MACDIR)/core/*.cpp $(DISTDIR)/src/osx/core
|
||||
mkdir $(DISTDIR)/src/osx/cocoa
|
||||
$(CP_P) $(MACDIR)/cocoa/*.mm $(DISTDIR)/src/osx/cocoa
|
||||
mkdir $(DISTDIR)/src/osx/iphone
|
||||
$(CP_P) $(MACDIR)/iphone/*.mm $(DISTDIR)/src/osx/iphone
|
||||
mkdir $(DISTDIR)/src/osx/carbon
|
||||
$(CP_P) $(MACDIR)/carbon/*.cpp $(DISTDIR)/src/osx/carbon
|
||||
$(CP_P) $(MACDIR)/carbon/*.mm $(DISTDIR)/src/osx/carbon
|
||||
$(CP_P) $(MACDIR)/carbon/*.icns $(DISTDIR)/src/osx/carbon
|
||||
$(CP_P) $(MACDIR)/carbon/Info.plist.in $(DISTDIR)/src/osx/carbon
|
||||
$(CP_P) $(MACDIR)/carbon/*.h $(DISTDIR)/src/osx/carbon
|
||||
$(CP_P) $(MACDIR)/carbon/*.r $(DISTDIR)/src/osx/carbon
|
||||
mkdir $(DISTDIR)/src/wxWindows.xcodeproj
|
||||
$(CP_P) $(WXDIR)/src/wxWindows.xcodeproj/* $(DISTDIR)/src/wxWindows.xcodeproj
|
||||
|
||||
COCOA_DIST: ALL_GUI_DIST
|
||||
$(CP_P) $(INCDIR)/wx/cocoa/*.h $(DISTDIR)/include/wx/cocoa
|
||||
$(CP_P) $(COCOADIR)/*.mm $(DISTDIR)/src/cocoa
|
||||
$(CP_P) $(COCOADIR)/*.cpp $(DISTDIR)/src/cocoa
|
||||
$(CP_P) $(COCOADIR)/*.r $(DISTDIR)/src/cocoa
|
||||
mkdir $(DISTDIR)/include/wx/osx/core
|
||||
$(CP_P) $(INCDIR)/wx/osx/core/*.h $(DISTDIR)/include/wx/osx/core
|
||||
mkdir $(DISTDIR)/src/osx/core
|
||||
$(CP_P) $(MACDIR)/core/*.cpp $(DISTDIR)/src/osx/core
|
||||
mkdir $(DISTDIR)/src/osx/carbon
|
||||
$(CP_P) $(MACDIR)/carbon/Info.plist.in $(DISTDIR)/src/osx/carbon
|
||||
$(CP_P) $(MACDIR)/carbon/wxmac.icns $(DISTDIR)/src/osx/carbon
|
||||
|
||||
MSW_DIST: UNIV_DIST
|
||||
mkdir $(DISTDIR)/include/wx/msw/ole
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.cur $(DISTDIR)/include/wx/msw
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.ico $(DISTDIR)/include/wx/msw
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.bmp $(DISTDIR)/include/wx/msw
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.manifest $(DISTDIR)/include/wx/msw
|
||||
$(CP_P) $(INCDIR)/wx/msw/ole/*.h $(DISTDIR)/include/wx/msw/ole
|
||||
mkdir $(DISTDIR)/src/msw/ole
|
||||
$(CP_P) $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
|
||||
$(CP_P) $(MSWDIR)/*.c $(DISTDIR)/src/msw
|
||||
$(CP_P) $(MSWDIR)/*.rc $(DISTDIR)/src/msw
|
||||
$(CP_P) $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
|
||||
|
||||
MSW_ZIP_TEXT_DIST: ALL_GUI_DIST
|
||||
mkdir $(DISTDIR)/build/msw
|
||||
$(CP_P) $(WXDIR)/build/msw/* $(DISTDIR)/build/msw
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
|
||||
mkdir $(DISTDIR)/include/wx/msw/ole
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.manifest $(DISTDIR)/include/wx/msw
|
||||
$(CP_P) $(INCDIR)/wx/msw/ole/*.h $(DISTDIR)/include/wx/msw/ole
|
||||
mkdir $(DISTDIR)/src/msw/ole
|
||||
$(CP_P) $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
|
||||
$(CP_P) $(MSWDIR)/*.rc $(DISTDIR)/src/msw
|
||||
$(CP_P) $(MSWDIR)/*.c $(DISTDIR)/src/msw
|
||||
$(CP_P) $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
|
||||
$(CP_P) $(SRCDIR)/*.??? $(DISTDIR)/src
|
||||
|
||||
UNIV_DIST: ALL_GUI_DIST
|
||||
mkdir $(DISTDIR)/include/wx/univ
|
||||
mkdir $(DISTDIR)/src/univ
|
||||
mkdir $(DISTDIR)/src/univ/themes
|
||||
$(CP_P) $(INCDIR)/wx/univ/*.h $(DISTDIR)/include/wx/univ
|
||||
$(CP_P) $(SRCDIR)/univ/*.cpp $(DISTDIR)/src/univ
|
||||
$(CP_P) $(SRCDIR)/univ/themes/*.cpp $(DISTDIR)/src/univ/themes
|
||||
|
||||
DEMOS_DIST: ALL_GUI_DIST
|
||||
mkdir $(DISTDIR)/demos
|
||||
$(CP_P) $(DEMODIR)/Makefile.in $(DISTDIR)/demos
|
||||
|
||||
mkdir $(DISTDIR)/demos/bombs
|
||||
$(CP_P) $(DEMODIR)/bombs/Makefile.in $(DISTDIR)/demos/bombs
|
||||
$(CP_P) $(DEMODIR)/bombs/makefile.unx $(DISTDIR)/demos/bombs
|
||||
$(CP_P) $(DEMODIR)/bombs/*.cpp $(DISTDIR)/demos/bombs
|
||||
$(CP_P) $(DEMODIR)/bombs/*.h $(DISTDIR)/demos/bombs
|
||||
$(CP_P) $(DEMODIR)/bombs/*.xpm $(DISTDIR)/demos/bombs
|
||||
$(CP_P) $(DEMODIR)/bombs/*.ico $(DISTDIR)/demos/bombs
|
||||
$(CP_P) $(DEMODIR)/bombs/*.rc $(DISTDIR)/demos/bombs
|
||||
$(CP_P) $(DEMODIR)/bombs/readme.txt $(DISTDIR)/demos/bombs
|
||||
|
||||
mkdir $(DISTDIR)/demos/forty
|
||||
$(CP_P) $(DEMODIR)/forty/Makefile.in $(DISTDIR)/demos/forty
|
||||
$(CP_P) $(DEMODIR)/forty/makefile.unx $(DISTDIR)/demos/forty
|
||||
$(CP_P) $(DEMODIR)/forty/*.h $(DISTDIR)/demos/forty
|
||||
$(CP_P) $(DEMODIR)/forty/*.cpp $(DISTDIR)/demos/forty
|
||||
$(CP_P) $(DEMODIR)/forty/*.xpm $(DISTDIR)/demos/forty
|
||||
$(CP_P) $(DEMODIR)/forty/*.htm $(DISTDIR)/demos/forty
|
||||
$(CP_P) $(DEMODIR)/forty/*.ico $(DISTDIR)/demos/forty
|
||||
$(CP_P) $(DEMODIR)/forty/*.rc $(DISTDIR)/demos/forty
|
||||
$(CP_P) $(DEMODIR)/forty/readme.txt $(DISTDIR)/demos/forty
|
||||
|
||||
mkdir $(DISTDIR)/demos/life
|
||||
mkdir $(DISTDIR)/demos/life/bitmaps
|
||||
$(CP_P) $(DEMODIR)/life/Makefile.in $(DISTDIR)/demos/life
|
||||
$(CP_P) $(DEMODIR)/life/makefile.unx $(DISTDIR)/demos/life
|
||||
$(CP_P) $(DEMODIR)/life/*.cpp $(DISTDIR)/demos/life
|
||||
$(CP_P) $(DEMODIR)/life/*.h $(DISTDIR)/demos/life
|
||||
$(CP_P) $(DEMODIR)/life/*.xpm $(DISTDIR)/demos/life
|
||||
$(CP_P) $(DEMODIR)/life/*.inc $(DISTDIR)/demos/life
|
||||
$(CP_P) $(DEMODIR)/life/*.lif $(DISTDIR)/demos/life
|
||||
$(CP_P) $(DEMODIR)/life/*.rc $(DISTDIR)/demos/life
|
||||
$(CP_P) $(DEMODIR)/life/*.ico $(DISTDIR)/demos/life
|
||||
$(CP_P) $(DEMODIR)/life/bitmaps/*.xpm $(DISTDIR)/demos/life/bitmaps
|
||||
$(CP_P) $(DEMODIR)/life/bitmaps/*.bmp $(DISTDIR)/demos/life/bitmaps
|
||||
|
||||
mkdir $(DISTDIR)/demos/poem
|
||||
$(CP_P) $(DEMODIR)/poem/Makefile.in $(DISTDIR)/demos/poem
|
||||
$(CP_P) $(DEMODIR)/poem/makefile.unx $(DISTDIR)/demos/poem
|
||||
$(CP_P) $(DEMODIR)/poem/*.h $(DISTDIR)/demos/poem
|
||||
$(CP_P) $(DEMODIR)/poem/*.cpp $(DISTDIR)/demos/poem
|
||||
$(CP_P) $(DEMODIR)/poem/*.xpm $(DISTDIR)/demos/poem
|
||||
$(CP_P) $(DEMODIR)/poem/*.dat $(DISTDIR)/demos/poem
|
||||
$(CP_P) $(DEMODIR)/poem/*.txt $(DISTDIR)/demos/poem
|
||||
$(CP_P) $(DEMODIR)/poem/*.rc $(DISTDIR)/demos/poem
|
||||
$(CP_P) $(DEMODIR)/poem/*.ico $(DISTDIR)/demos/poem
|
||||
|
||||
mkdir $(DISTDIR)/demos/fractal
|
||||
$(CP_P) $(DEMODIR)/fractal/Makefile.in $(DISTDIR)/demos/fractal
|
||||
$(CP_P) $(DEMODIR)/fractal/makefile.unx $(DISTDIR)/demos/fractal
|
||||
$(CP_P) $(DEMODIR)/fractal/*.cpp $(DISTDIR)/demos/fractal
|
||||
$(CP_P) $(DEMODIR)/fractal/*.rc $(DISTDIR)/demos/fractal
|
||||
$(CP_P) $(DEMODIR)/fractal/*.ico $(DISTDIR)/demos/fractal
|
||||
|
||||
SAMPLES_DIST: ALL_GUI_DIST
|
||||
mkdir $(DISTDIR)/samples
|
||||
$(CP_P) $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
|
||||
$(CP_P) $(SAMPDIR)/makefile.* $(DISTDIR)/samples
|
||||
$(CP_P) $(SAMPDIR)/sample.* $(DISTDIR)/samples
|
||||
$(CP_P) $(SAMPDIR)/samples.* $(DISTDIR)/samples
|
||||
|
||||
# copy files common to all samples in a general way (samples without
|
||||
# Makefile.in in them are Windows-specific and shouldn't be included in
|
||||
# Unix distribution)
|
||||
for s in `find $(SAMPDIR) $(SAMPDIR)/html $(SAMPDIR)/opengl \
|
||||
-mindepth 1 -maxdepth 1 -type d -not -name .svn`; do \
|
||||
if [ ! -f $$s/Makefile.in ]; then continue; fi; \
|
||||
t="$(DISTDIR)/samples/`echo $$s | sed 's@$(SAMPDIR)/@@'`"; \
|
||||
mkdir -p $$t; \
|
||||
$(CP_P) $$s/Makefile.in \
|
||||
`find $$s -maxdepth 1 -name 'makefile.*' -o -name descrip.mms -o \
|
||||
-name '*.cpp' -o -name '*.h' -o \
|
||||
-name '*.bmp' -o -name '*.ico' -o -name '*.png' -o \
|
||||
-name '*.rc' -o -name '*.xpm'` $$t; \
|
||||
i=""; \
|
||||
if [ -d $$s/bitmaps ]; then i="bitmaps"; fi; \
|
||||
if [ -d $$s/icons ]; then i="icons"; fi; \
|
||||
if [ -n "$$i" ]; then \
|
||||
mkdir $$t/$$i; \
|
||||
cp `find $$s/$$i -name '*.bmp' -o -name '*.xpm'` $$t/$$i; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
# copy the rest, not covered by the above loop
|
||||
$(CP_P) $(SAMPDIR)/animate/hourglass.ani $(DISTDIR)/samples/animate
|
||||
$(CP_P) $(SAMPDIR)/animate/throbber.gif $(DISTDIR)/samples/animate
|
||||
|
||||
$(CP_P) $(SAMPDIR)/dialogs/tips.txt $(DISTDIR)/samples/dialogs
|
||||
|
||||
$(CP_P) $(SAMPDIR)/dnd/d_and_d.txt $(DISTDIR)/samples/dnd
|
||||
|
||||
mkdir $(DISTDIR)/samples/help/doc
|
||||
$(CP_P) $(SAMPDIR)/help/*.h?? $(DISTDIR)/samples/help
|
||||
$(CP_P) $(SAMPDIR)/help/*.gif $(DISTDIR)/samples/help
|
||||
$(CP_P) $(SAMPDIR)/help/cshelp.txt $(DISTDIR)/samples/help
|
||||
$(CP_P) $(SAMPDIR)/help/*.chm $(DISTDIR)/samples/help
|
||||
$(CP_P) $(SAMPDIR)/help/*.cnt $(DISTDIR)/samples/help
|
||||
$(CP_P) $(SAMPDIR)/help/doc.zip $(DISTDIR)/samples/help
|
||||
$(CP_P) $(SAMPDIR)/help/doc/*.* $(DISTDIR)/samples/help/doc
|
||||
|
||||
mkdir $(DISTDIR)/samples/html/about/data
|
||||
$(CP_P) $(SAMPDIR)/html/about/data/*.htm $(DISTDIR)/samples/html/about/data
|
||||
$(CP_P) $(SAMPDIR)/html/about/data/*.png $(DISTDIR)/samples/html/about/data
|
||||
mkdir $(DISTDIR)/samples/html/help/helpfiles
|
||||
$(CP_P) $(SAMPDIR)/html/help/helpfiles/*.??? $(DISTDIR)/samples/html/help/helpfiles
|
||||
$(CP_P) $(SAMPDIR)/html/helpview/*.zip $(DISTDIR)/samples/html/helpview
|
||||
$(CP_P) $(SAMPDIR)/html/printing/*.htm $(DISTDIR)/samples/html/printing
|
||||
$(CP_P) $(SAMPDIR)/html/printing/*.gif $(DISTDIR)/samples/html/printing
|
||||
$(CP_P) $(SAMPDIR)/html/test/*.gif $(DISTDIR)/samples/html/test
|
||||
$(CP_P) $(SAMPDIR)/html/test/*.htm $(DISTDIR)/samples/html/test
|
||||
$(CP_P) $(SAMPDIR)/html/test/*.html $(DISTDIR)/samples/html/test
|
||||
$(CP_P) $(SAMPDIR)/html/virtual/*.htm $(DISTDIR)/samples/html/virtual
|
||||
$(CP_P) $(SAMPDIR)/html/widget/*.htm $(DISTDIR)/samples/html/widget
|
||||
$(CP_P) $(SAMPDIR)/html/zip/*.htm $(DISTDIR)/samples/html/zip
|
||||
$(CP_P) $(SAMPDIR)/html/zip/*.zip $(DISTDIR)/samples/html/zip
|
||||
|
||||
$(CP_P) $(SAMPDIR)/image/horse*.* $(DISTDIR)/samples/image
|
||||
$(CP_P) $(SAMPDIR)/image/smile.xbm $(DISTDIR)/samples/image
|
||||
|
||||
$(CP_P) $(SAMPDIR)/internat/readme.txt $(DISTDIR)/samples/internat
|
||||
for f in `(cd $(SAMPDIR); find internat -name '*.[mp]o' -print)`; do \
|
||||
mkdir -p $(DISTDIR)/samples/`dirname $$f`; \
|
||||
$(CP_P) $(SAMPDIR)/$$f $(DISTDIR)/samples/$$f; \
|
||||
done
|
||||
|
||||
$(CP_P) $(SAMPDIR)/joytest/*.wav $(DISTDIR)/samples/joytest
|
||||
|
||||
$(CP_P) $(SAMPDIR)/opengl/penguin/trackball.c $(DISTDIR)/samples/opengl/penguin
|
||||
$(CP_P) $(SAMPDIR)/opengl/penguin/*.dxf.gz $(DISTDIR)/samples/opengl/penguin
|
||||
$(CP_P) $(SAMPDIR)/opengl/isosurf/*.gz $(DISTDIR)/samples/opengl/isosurf
|
||||
|
||||
$(CP_P) $(SAMPDIR)/richtext/readme.txt $(DISTDIR)/samples/richtext
|
||||
$(CP_P) $(SAMPDIR)/richtext/todo.txt $(DISTDIR)/samples/richtext
|
||||
|
||||
$(CP_P) $(SAMPDIR)/sound/*.wav $(DISTDIR)/samples/sound
|
||||
|
||||
$(CP_P) $(SAMPDIR)/splash/*.mpg $(DISTDIR)/samples/splash
|
||||
|
||||
mkdir $(DISTDIR)/samples/xrc/rc
|
||||
$(CP_P) $(SAMPDIR)/xrc/rc/*.xpm $(DISTDIR)/samples/xrc/rc
|
||||
$(CP_P) $(SAMPDIR)/xrc/rc/*.xrc $(DISTDIR)/samples/xrc/rc
|
||||
$(CP_P) $(SAMPDIR)/xrc/rc/*.gif $(DISTDIR)/samples/xrc/rc
|
||||
|
||||
UTILS_DIST: ALL_GUI_DIST
|
||||
mkdir $(DISTDIR)/utils
|
||||
$(CP_P) $(UTILSDIR)/Makefile.in $(DISTDIR)/utils
|
||||
|
||||
mkdir $(DISTDIR)/utils/screenshotgen
|
||||
mkdir $(DISTDIR)/utils/screenshotgen/src
|
||||
mkdir $(DISTDIR)/utils/screenshotgen/src/bitmaps
|
||||
$(CP_P) $(UTILSDIR)/screenshotgen/README.txt $(DISTDIR)/utils/screenshotgen
|
||||
$(CP_P) $(UTILSDIR)/screenshotgen/*.in $(DISTDIR)/utils/screenshotgen
|
||||
$(CP_P) $(UTILSDIR)/screenshotgen/src/*.* $(DISTDIR)/utils/screenshotgen/src
|
||||
$(CP_P) $(UTILSDIR)/screenshotgen/src/bitmaps/*.* $(DISTDIR)/utils/screenshotgen/src/bitmaps
|
||||
|
||||
mkdir $(DISTDIR)/utils/ifacecheck
|
||||
mkdir $(DISTDIR)/utils/ifacecheck/src
|
||||
$(CP_P) $(UTILSDIR)/ifacecheck/README.txt $(DISTDIR)/utils/ifacecheck
|
||||
$(CP_P) $(UTILSDIR)/ifacecheck/*.dtd $(DISTDIR)/utils/ifacecheck
|
||||
$(CP_P) $(UTILSDIR)/ifacecheck/*.xsl $(DISTDIR)/utils/ifacecheck
|
||||
$(CP_P) $(UTILSDIR)/ifacecheck/*.in $(DISTDIR)/utils/ifacecheck
|
||||
$(CP_P) $(UTILSDIR)/ifacecheck/src/* $(DISTDIR)/utils/ifacecheck/src
|
||||
|
||||
mkdir $(DISTDIR)/utils/emulator
|
||||
mkdir $(DISTDIR)/utils/emulator/src
|
||||
mkdir $(DISTDIR)/utils/emulator/docs
|
||||
$(CP_P) $(UTILSDIR)/emulator/*.in $(DISTDIR)/utils/emulator
|
||||
$(CP_P) $(UTILSDIR)/emulator/src/*.h $(DISTDIR)/utils/emulator/src
|
||||
$(CP_P) $(UTILSDIR)/emulator/src/*.in $(DISTDIR)/utils/emulator/src
|
||||
$(CP_P) $(UTILSDIR)/emulator/src/*.cpp $(DISTDIR)/utils/emulator/src
|
||||
$(CP_P) $(UTILSDIR)/emulator/src/*.jpg $(DISTDIR)/utils/emulator/src
|
||||
$(CP_P) $(UTILSDIR)/emulator/src/*.wxe $(DISTDIR)/utils/emulator/src
|
||||
$(CP_P) $(UTILSDIR)/emulator/src/*.xpm $(DISTDIR)/utils/emulator/src
|
||||
$(CP_P) $(UTILSDIR)/emulator/docs/*.txt $(DISTDIR)/utils/emulator/docs
|
||||
$(CP_P) $(UTILSDIR)/emulator/docs/*.jpg $(DISTDIR)/utils/emulator/docs
|
||||
|
||||
mkdir $(DISTDIR)/utils/hhp2cached
|
||||
$(CP_P) $(UTILSDIR)/hhp2cached/Makefile.in $(DISTDIR)/utils/hhp2cached
|
||||
$(CP_P) $(UTILSDIR)/hhp2cached/*.cpp $(DISTDIR)/utils/hhp2cached
|
||||
$(CP_P) $(UTILSDIR)/hhp2cached/*.rc $(DISTDIR)/utils/hhp2cached
|
||||
|
||||
mkdir $(DISTDIR)/utils/helpview
|
||||
mkdir $(DISTDIR)/utils/helpview/src
|
||||
mkdir $(DISTDIR)/utils/helpview/src/bitmaps
|
||||
$(CP_P) $(UTILSDIR)/helpview/Makefile.in $(DISTDIR)/utils/helpview
|
||||
$(CP_P) $(UTILSDIR)/helpview/src/*.h $(DISTDIR)/utils/helpview/src
|
||||
$(CP_P) $(UTILSDIR)/helpview/src/*.cpp $(DISTDIR)/utils/helpview/src
|
||||
$(CP_P) $(UTILSDIR)/helpview/src/*.rc $(DISTDIR)/utils/helpview/src
|
||||
$(CP_P) $(UTILSDIR)/helpview/src/*.ico $(DISTDIR)/utils/helpview/src
|
||||
$(CP_P) $(UTILSDIR)/helpview/src/readme.txt $(DISTDIR)/utils/helpview/src
|
||||
$(CP_P) $(UTILSDIR)/helpview/src/Makefile.in $(DISTDIR)/utils/helpview/src
|
||||
$(CP_P) $(UTILSDIR)/helpview/src/test.zip $(DISTDIR)/utils/helpview/src
|
||||
$(CP_P) $(UTILSDIR)/helpview/src/bitmaps/*.xpm $(DISTDIR)/utils/helpview/src/bitmaps
|
||||
|
||||
mkdir $(DISTDIR)/utils/wxrc
|
||||
$(CP_P) $(UTILSDIR)/wxrc/Makefile.in $(DISTDIR)/utils/wxrc
|
||||
$(CP_P) $(UTILSDIR)/wxrc/*.cpp $(DISTDIR)/utils/wxrc
|
||||
$(CP_P) $(UTILSDIR)/wxrc/*.rc $(DISTDIR)/utils/wxrc
|
||||
|
||||
MISC_DIST: ALL_GUI_DIST
|
||||
|
||||
INTL_DIST:
|
||||
mkdir $(DISTDIR)/locale
|
||||
$(CP_P) $(INTLDIR)/Makefile $(DISTDIR)/locale
|
||||
$(CP_P) $(INTLDIR)/*.po $(DISTDIR)/locale
|
||||
subdirs=`cd $(INTLDIR) && ls */*.po | sed 's|/.*||' | uniq`; \
|
||||
for dir in "$$subdirs"; do \
|
||||
mkdir $(DISTDIR)/locale/$$dir; \
|
||||
$(CP_P) $(INTLDIR)/$$dir/*.[pm]o $(DISTDIR)/locale/$$dir; \
|
||||
done
|
||||
|
||||
MANUAL_DIST:
|
||||
mkdir $(DISTDIR)/docs
|
||||
mkdir $(DISTDIR)/docs/doxygen
|
||||
mkdir $(DISTDIR)/docs/doxygen/groups
|
||||
mkdir $(DISTDIR)/docs/doxygen/images
|
||||
mkdir $(DISTDIR)/docs/doxygen/images/stock
|
||||
mkdir $(DISTDIR)/docs/doxygen/images/wxgtk
|
||||
mkdir $(DISTDIR)/docs/doxygen/images/wxmac
|
||||
mkdir $(DISTDIR)/docs/doxygen/images/wxmsw
|
||||
mkdir $(DISTDIR)/docs/doxygen/mainpages
|
||||
mkdir $(DISTDIR)/docs/doxygen/overviews
|
||||
$(CP_P) $(DOCDIR)/doxygen/* $(DISTDIR)/docs/doxygen
|
||||
$(CP_P) $(DOCDIR)/doxygen/groups/*.h $(DISTDIR)/docs/doxygen/groups
|
||||
$(CP_P) $(DOCDIR)/doxygen/mainpages/*.h $(DISTDIR)/docs/doxygen/mainpages
|
||||
$(CP_P) $(DOCDIR)/doxygen/overviews/*.h $(DISTDIR)/docs/doxygen/overviews
|
||||
$(CP_P) $(DOCDIR)/doxygen/images/*.??? $(DISTDIR)/docs/doxygen/images
|
||||
$(CP_P) $(DOCDIR)/doxygen/images/wxgtk/*.??? $(DISTDIR)/docs/doxygen/images/stock
|
||||
$(CP_P) $(DOCDIR)/doxygen/images/wxgtk/*.??? $(DISTDIR)/docs/doxygen/images/wxgtk
|
||||
$(CP_P) $(DOCDIR)/doxygen/images/wxmac/*.??? $(DISTDIR)/docs/doxygen/images/wxmac
|
||||
$(CP_P) $(DOCDIR)/doxygen/images/wxmsw/*.??? $(DISTDIR)/docs/doxygen/images/wxmsw
|
||||
mkdir $(DISTDIR)/interface
|
||||
mkdir $(DISTDIR)/interface/wx
|
||||
mkdir $(DISTDIR)/interface/wx/aui
|
||||
mkdir $(DISTDIR)/interface/wx/ribbon
|
||||
mkdir $(DISTDIR)/interface/wx/generic
|
||||
mkdir $(DISTDIR)/interface/wx/html
|
||||
mkdir $(DISTDIR)/interface/wx/msw
|
||||
mkdir $(DISTDIR)/interface/wx/msw/ole
|
||||
mkdir $(DISTDIR)/interface/wx/persist
|
||||
mkdir $(DISTDIR)/interface/wx/protocol
|
||||
mkdir $(DISTDIR)/interface/wx/propgrid
|
||||
mkdir $(DISTDIR)/interface/wx/richtext
|
||||
mkdir $(DISTDIR)/interface/wx/stc
|
||||
mkdir $(DISTDIR)/interface/wx/xml
|
||||
mkdir $(DISTDIR)/interface/wx/xrc
|
||||
$(CP_P) $(IFACEDIR)/wx/*.h $(DISTDIR)/interface/wx
|
||||
$(CP_P) $(IFACEDIR)/wx/aui/*.h $(DISTDIR)/interface/wx/aui
|
||||
$(CP_P) $(IFACEDIR)/wx/ribbon/*.h $(DISTDIR)/interface/wx/ribbon
|
||||
$(CP_P) $(IFACEDIR)/wx/generic/*.h $(DISTDIR)/interface/wx/generic
|
||||
$(CP_P) $(IFACEDIR)/wx/html/*.h $(DISTDIR)/interface/wx/html
|
||||
$(CP_P) $(IFACEDIR)/wx/msw/*.h $(DISTDIR)/interface/wx/msw
|
||||
$(CP_P) $(IFACEDIR)/wx/msw/ole/*.h $(DISTDIR)/interface/wx/msw/ole
|
||||
$(CP_P) $(IFACEDIR)/wx/persist/*.h $(DISTDIR)/interface/wx/persist
|
||||
$(CP_P) $(IFACEDIR)/wx/protocol/*.h $(DISTDIR)/interface/wx/protocol
|
||||
$(CP_P) $(IFACEDIR)/wx/propgrid/*.h $(DISTDIR)/interface/wx/propgrid
|
||||
$(CP_P) $(IFACEDIR)/wx/richtext/*.h $(DISTDIR)/interface/wx/richtext
|
||||
$(CP_P) $(IFACEDIR)/wx/stc/*.h $(DISTDIR)/interface/wx/stc
|
||||
$(CP_P) $(IFACEDIR)/wx/xml/*.h $(DISTDIR)/interface/wx/xml
|
||||
$(CP_P) $(IFACEDIR)/wx/xrc/*.h $(DISTDIR)/interface/wx/xrc
|
||||
|
||||
|
||||
# Copy all the files from wxPython needed for the Debian source package,
|
||||
# and then remove some that are not needed.
|
||||
PYTHON_DIST:
|
||||
for dir in `grep -v '#' $(WXDIR)/wxPython/distrib/DIRLIST`; do \
|
||||
echo "Copying dir: $$dir..."; \
|
||||
mkdir $(DISTDIR)/$$dir; \
|
||||
$(CP_P) $(WXDIR)/$$dir/* $(DISTDIR)/$$dir > /dev/null 2>&1; \
|
||||
done; \
|
||||
\
|
||||
find $(DISTDIR)/wxPython -name "*~" > RM_FILES; \
|
||||
find $(DISTDIR)/wxPython -name "*.pyc" >> RM_FILES; \
|
||||
find $(DISTDIR)/wxPython -name "*.bat" >> RM_FILES; \
|
||||
find $(DISTDIR)/wxPython -name "core" >> RM_FILES; \
|
||||
find $(DISTDIR)/wxPython -name "core.[0-9]*" >> RM_FILES; \
|
||||
find $(DISTDIR)/wxPython -name "*.orig" >> RM_FILES; \
|
||||
find $(DISTDIR)/wxPython -name "*.rej" >> RM_FILES; \
|
||||
for f in `cat RM_FILES`; do rm $$f; done; \
|
||||
rm RM_FILES
|
||||
|
||||
|
||||
distrib_clean:
|
||||
$(RM) -r _dist_dir
|
||||
|
||||
# VZ: the -only targets allow to do "make dist bzip-dist-only" without copying
|
||||
# the files twice
|
||||
dist-only:
|
||||
@echo "*** Creating wxWidgets distribution in $(DISTDIR)..."
|
||||
@cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
|
||||
@if test "$(USE_GUI)" = 1; then \
|
||||
cd $(DISTDIR); \
|
||||
mv samples wxSamples-$(WX_VERSION); \
|
||||
echo "*** Creating wxSamples archive..."; \
|
||||
tar ch wxSamples-$(WX_VERSION) | gzip -f9 > ../../$(WXSAMPLES); \
|
||||
mv wxSamples-$(WX_VERSION) samples; \
|
||||
mv demos wxDemos-$(WX_VERSION); \
|
||||
echo "*** Creating wxDemos archive..."; \
|
||||
tar ch wxDemos-$(WX_VERSION) | gzip -f9 > ../../$(WXDEMOS); \
|
||||
mv wxDemos-$(WX_VERSION) demos; \
|
||||
fi
|
||||
|
||||
distdir: @GUIDIST@
|
||||
@echo "*** Creating wxWidgets distribution in $(DISTDIR)..."
|
||||
@# now prune away a lot of the crap included by using cp -R
|
||||
@# in other dist targets.
|
||||
find $(DISTDIR) \( -name "CVS" -o -name ".cvsignore" -o -name "*.dsp" -o -name "*.dsw" -o -name "*.hh*" -o \
|
||||
\( -name "makefile.*" -a ! -name "makefile.gcc" -a ! -name "makefile.unx" \) \) \
|
||||
-print | grep -vE '/samples/.*\.hh.$$' | xargs rm -rf
|
||||
|
||||
dist: distdir
|
||||
@cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
|
||||
@if test "$(USE_GUI)" = 1; then \
|
||||
cd $(DISTDIR); \
|
||||
mv samples wxSamples-$(WX_VERSION); \
|
||||
echo "*** Creating wxSamples archive..."; \
|
||||
tar ch wxSamples-$(WX_VERSION) | gzip -f9 > ../../$(WXSAMPLES); \
|
||||
mv wxSamples-$(WX_VERSION) samples; \
|
||||
mv demos wxDemos-$(WX_VERSION); \
|
||||
echo "*** Creating wxDemos archive..."; \
|
||||
tar ch wxDemos-$(WX_VERSION) | gzip -f9 > ../../$(WXDEMOS); \
|
||||
mv wxDemos-$(WX_VERSION) demos; \
|
||||
fi
|
||||
|
||||
bzip-dist-only:
|
||||
@echo "*** Creating wxWidgets distribution in $(DISTDIR)..."
|
||||
@cd _dist_dir && tar ch $(DISTDIRNAME) | bzip2 -f9 > ../$(WXARCHIVE_BZIP);
|
||||
@if test "$(USE_GUI)" = 1; then \
|
||||
cd $(DISTDIR); \
|
||||
mv samples wxSamples-${WX_VERSION}; \
|
||||
echo "*** Creating wxSamples archive..."; \
|
||||
tar ch wxSamples-${WX_VERSION} | bzip2 -f9 > ../../$(WXSAMPLES_BZIP); \
|
||||
mv wxSamples-${WX_VERSION} samples; \
|
||||
mv demos wxDemos-${WX_VERSION}; \
|
||||
echo "*** Creating wxDemos archive..."; \
|
||||
tar ch wxDemos-${WX_VERSION} | bzip2 -f9 > ../../$(WXDEMOS_BZIP); \
|
||||
mv wxDemos-${WX_VERSION} demos; \
|
||||
fi
|
||||
|
||||
bzip-dist: @GUIDIST@
|
||||
@echo "*** Creating wxWidgets distribution in $(DISTDIR)..."
|
||||
@cd _dist_dir && tar ch $(DISTDIRNAME) | bzip2 -f9 > ../$(WXARCHIVE_BZIP)
|
||||
@if test "$(USE_GUI)" = 1; then \
|
||||
cd $(DISTDIR); \
|
||||
mv samples wxSamples; \
|
||||
tar ch wxSamples | bzip2 -f9 > ../../$(WXSAMPLES_BZIP); \
|
||||
mv wxSamples samples; \
|
||||
mv demos wxDemos; \
|
||||
tar ch wxDemos | bzip2 -f9 > ../../$(WXDEMOS_BZIP); \
|
||||
mv wxDemos demos; \
|
||||
fi
|
||||
|
||||
win-dist: MSW_ZIP_TEXT_DIST SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST INTL_DIST
|
||||
for s in `find $(SAMPDIR) $(SAMPDIR)/html $(SAMPDIR)/opengl \
|
||||
-mindepth 1 -maxdepth 1 -type d -not -name CVS`; do \
|
||||
t="$(DISTDIR)/samples/`echo $$s | sed 's@$(SAMPDIR)/@@'`"; \
|
||||
$(CP_P) \
|
||||
`find $$s -maxdepth 1 -name '*.dsp' -o -name '*.vcproj'` $$t; \
|
||||
done
|
||||
# RR: Copy text and binary data separately
|
||||
@echo "*** Creating wxWidgets ZIP distribution in $(DISTDIR)..."
|
||||
@cd _dist_dir && mv $(DISTDIRNAME) wxMSW
|
||||
@cd _dist_dir && zip -r -l ../$(WXARCHIVE_ZIP) *
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.cur _dist_dir/wxMSW/include/wx/msw
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.ico _dist_dir/wxMSW/include/wx/msw
|
||||
$(CP_P) $(INCDIR)/wx/msw/*.bmp _dist_dir/wxMSW/include/wx/msw
|
||||
@cd _dist_dir && zip -r ../$(WXARCHIVE_ZIP) wxMSW/include/wx/msw/*.cur
|
||||
@cd _dist_dir && zip -r ../$(WXARCHIVE_ZIP) wxMSW/include/wx/msw/*.ico
|
||||
@cd _dist_dir && zip -r ../$(WXARCHIVE_ZIP) wxMSW/include/wx/msw/*.bmp
|
||||
54
libs/wxWidgets-3.3.1/build/bakefiles/monolithic.bkl
Normal file
54
libs/wxWidgets-3.3.1/build/bakefiles/monolithic.bkl
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" ?>
|
||||
<makefile>
|
||||
|
||||
<set var="MONOLIB_STC_SRC">
|
||||
<if cond="USE_STC=='1'">
|
||||
$(STC_SRC)
|
||||
</if>
|
||||
</set>
|
||||
|
||||
<set var="MONOLIB_GUI_SRC">
|
||||
<if cond="USE_GUI=='1'">
|
||||
$(CORE_SRC) $(MEDIA_SRC) $(HTML_SRC) $(WEBVIEW_SRC)
|
||||
$(QA_SRC) $(XRC_SRC) $(AUI_SRC) $(PROPGRID_SRC) $(RIBBON_SRC)
|
||||
$(RICHTEXT_SRC) $(MONOLIB_STC_SRC)
|
||||
</if>
|
||||
</set>
|
||||
<set var="MONOLIB_SRC">
|
||||
$(BASE_SRC) $(BASE_AND_GUI_SRC) $(NET_SRC) $(MONOLIB_GUI_SRC) $(XML_SRC)
|
||||
</set>
|
||||
|
||||
<!-- settings common to mono{dll,lib} below -->
|
||||
<template id="wx_monolib_or_dll" template="wxscintilla_cppflags,wxlexilla_cppflags,webview_additional">
|
||||
<define>wxUSE_BASE=1</define>
|
||||
<sources>$(MONOLIB_SRC) $(PLUGIN_MONOLIB_SRC)</sources>
|
||||
<msvc-headers>$(ALL_HEADERS)</msvc-headers>
|
||||
</template>
|
||||
|
||||
<dll id="monodll" template="wx_dll,wx_monolib_or_dll"
|
||||
cond="SHARED=='1' and MONOLITHIC=='1'">
|
||||
<define>WXMAKINGDLL</define>
|
||||
<ldlibs>$(EXTRALIBS_XML)</ldlibs>
|
||||
<ldlibs>$(EXTRALIBS_HTML)</ldlibs>
|
||||
<ldlibs>$(EXTRALIBS_MEDIA)</ldlibs>
|
||||
<ldlibs>$(EXTRALIBS_STC)</ldlibs>
|
||||
<ldlibs>$(PLUGIN_MONOLIB_EXTRALIBS)</ldlibs>
|
||||
<ldflags>$(EXTRALDFLAGS_WEBVIEW)</ldflags>
|
||||
<ldlibs>$(EXTRALIBS_WEBVIEW)</ldlibs>
|
||||
<library>$(wxscintilla_library_link)</library>
|
||||
<library>$(wxlexilla_library_link)</library>
|
||||
</dll>
|
||||
|
||||
<lib id="monolib" template="wx_lib,wx_monolib_or_dll"
|
||||
cond="SHARED=='0' and MONOLITHIC=='1'">
|
||||
<if cond="FORMAT=='watcom'">
|
||||
<set var="LIB_PAGESIZE" overwrite="1">8192</set>
|
||||
</if>
|
||||
</lib>
|
||||
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MONOLIB" append="1">mono=monolib+monodll</set>
|
||||
<!-- included by wx.bkl from opengl.bkl -->
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MONOLIB" append="1">gl=gllib+gldll</set>
|
||||
|
||||
</makefile>
|
||||
413
libs/wxWidgets-3.3.1/build/bakefiles/multilib.bkl
Normal file
413
libs/wxWidgets-3.3.1/build/bakefiles/multilib.bkl
Normal file
@@ -0,0 +1,413 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<define-rule name="wxshortcut" extends="phony">
|
||||
<template>
|
||||
<set var="name">$(id.replace('wx',''))</set>
|
||||
<set var="namedll">
|
||||
<if cond="SHARED=='1'">$(name)dll</if>
|
||||
</set>
|
||||
<set var="namelib">
|
||||
<if cond="SHARED=='0'">$(name)lib</if>
|
||||
</set>
|
||||
<depends>$(namedll)</depends>
|
||||
<depends>$(namelib)</depends>
|
||||
</template>
|
||||
</define-rule>
|
||||
|
||||
<!-- ================================================================= -->
|
||||
<!-- wxBase library -->
|
||||
<!-- ================================================================= -->
|
||||
|
||||
<dll id="basedll" template="wx_base_dll"
|
||||
cond="SHARED=='1' and MONOLITHIC=='0'">
|
||||
<define>WXMAKINGDLL_BASE</define>
|
||||
<define>wxUSE_BASE=1</define>
|
||||
<sources>$(BASE_SRC) $(BASE_AND_GUI_SRC)</sources>
|
||||
<msvc-headers>$(BASE_CMN_HDR) $(BASE_PLATFORM_HDR)</msvc-headers>
|
||||
</dll>
|
||||
|
||||
<lib id="baselib" template="wx_base_lib"
|
||||
cond="SHARED=='0' and MONOLITHIC=='0'">
|
||||
<define>wxUSE_BASE=1</define>
|
||||
<sources>$(BASE_SRC) $(BASE_AND_GUI_SRC)</sources>
|
||||
<msvc-headers>$(BASE_CMN_HDR) $(BASE_PLATFORM_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxbase" cond="MONOLITHIC=='0'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">base=baselib+basedll</set>
|
||||
|
||||
|
||||
<!-- ================================================================= -->
|
||||
<!-- wxNet library -->
|
||||
<!-- ================================================================= -->
|
||||
|
||||
<dll id="netdll" template="wx_base_dll"
|
||||
cond="SHARED=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_NET</define>
|
||||
<sources>$(NET_SRC)</sources>
|
||||
<msvc-headers>$(NET_CMN_HDR)</msvc-headers>
|
||||
<library>basedll</library>
|
||||
</dll>
|
||||
|
||||
<lib id="netlib" template="wx_base_lib"
|
||||
cond="SHARED=='0' and MONOLITHIC=='0'">
|
||||
<sources>$(NET_SRC)</sources>
|
||||
<msvc-headers>$(NET_CMN_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxnet" cond="MONOLITHIC=='0'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">net=netlib+netdll</set>
|
||||
|
||||
|
||||
<!-- ================================================================= -->
|
||||
<!-- Main GUI library -->
|
||||
<!-- ================================================================= -->
|
||||
|
||||
<dll id="coredll" template="wx_dll"
|
||||
cond="SHARED=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_CORE</define>
|
||||
<define>wxUSE_BASE=0</define>
|
||||
<sources>$(BASE_AND_GUI_SRC) $(CORE_SRC) $(PLUGIN_SRC)</sources>
|
||||
<msvc-headers>$(ALL_GUI_HEADERS)</msvc-headers>
|
||||
<library>basedll</library>
|
||||
</dll>
|
||||
|
||||
<lib id="corelib" template="wx_lib"
|
||||
cond="SHARED=='0' and USE_GUI=='1' and MONOLITHIC=='0'">
|
||||
<define>wxUSE_BASE=0</define>
|
||||
<sources>$(BASE_AND_GUI_SRC) $(CORE_SRC) $(PLUGIN_SRC)</sources>
|
||||
<msvc-headers>$(ALL_GUI_HEADERS)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxcore" cond="MONOLITHIC=='0' and USE_GUI=='1'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">core=corelib+coredll</set>
|
||||
|
||||
|
||||
<!-- ================================================================= -->
|
||||
<!-- "Advanced" controls library -->
|
||||
<!-- ================================================================= -->
|
||||
|
||||
<dll id="advdll" template="wx_dll"
|
||||
cond="SHARED=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_ADV</define>
|
||||
<sources>$(ADVANCED_SRC)</sources>
|
||||
<msvc-headers>$(ADVANCED_HDR)</msvc-headers>
|
||||
<library>coredll</library>
|
||||
<library>basedll</library>
|
||||
<ldlibs>$(PLUGIN_ADV_EXTRALIBS)</ldlibs>
|
||||
</dll>
|
||||
|
||||
<lib id="advlib" template="wx_lib"
|
||||
cond="SHARED=='0' and USE_GUI=='1' and MONOLITHIC=='0'">
|
||||
<sources>$(ADVANCED_SRC)</sources>
|
||||
<msvc-headers>$(ADVANCED_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxadv" cond="MONOLITHIC=='0' and USE_GUI=='1'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">adv=advlib+advdll</set>
|
||||
|
||||
|
||||
<!-- ================================================================= -->
|
||||
<!-- wxMedia classes library -->
|
||||
<!-- ================================================================= -->
|
||||
|
||||
<dll id="mediadll" template="wx_dll"
|
||||
cond="SHARED=='1' and USE_MEDIA=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_MEDIA</define>
|
||||
<sources>$(MEDIA_SRC)</sources>
|
||||
<msvc-headers>$(MEDIA_HDR)</msvc-headers>
|
||||
<library>coredll</library>
|
||||
<library>basedll</library>
|
||||
<ldlibs>$(EXTRALIBS_MEDIA)</ldlibs>
|
||||
</dll>
|
||||
|
||||
<lib id="medialib" template="wx_lib"
|
||||
cond="SHARED=='0' and USE_MEDIA=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
|
||||
<sources>$(MEDIA_SRC)</sources>
|
||||
<msvc-headers>$(MEDIA_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxmedia" cond="MONOLITHIC=='0' and USE_GUI=='1' and USE_MEDIA=='1'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">media=medialib+mediadll</set>
|
||||
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- wxHTML -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<dll id="htmldll" template="wx_dll"
|
||||
cond="SHARED=='1' and USE_GUI=='1' and USE_HTML=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_HTML</define>
|
||||
<sources>$(HTML_SRC)</sources>
|
||||
<library>coredll</library>
|
||||
<library>basedll</library>
|
||||
<ldlibs>$(EXTRALIBS_HTML)</ldlibs>
|
||||
<msvc-headers>$(HTML_HDR)</msvc-headers>
|
||||
</dll>
|
||||
|
||||
<!-- use this to conditonally link against htmldll with <library>: -->
|
||||
<set var="htmldll_library_link">
|
||||
<if cond="SHARED=='1' and USE_GUI=='1' and USE_HTML=='1' and MONOLITHIC=='0'">htmldll</if>
|
||||
</set>
|
||||
|
||||
<lib id="htmllib" template="wx_lib"
|
||||
cond="SHARED=='0' and USE_GUI=='1' and USE_HTML=='1' and MONOLITHIC=='0'">
|
||||
<sources>$(HTML_SRC)</sources>
|
||||
<msvc-headers>$(HTML_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxhtml" cond="MONOLITHIC=='0' and USE_HTML=='1'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">html=htmllib+htmldll</set>
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- wxWEBVIEW -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<dll id="webviewdll" template="wx_dll,webview_additional"
|
||||
cond="SHARED=='1' and USE_GUI=='1' and USE_WEBVIEW=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_WEBVIEW</define>
|
||||
<sources>$(WEBVIEW_SRC)</sources>
|
||||
<library>coredll</library>
|
||||
<library>basedll</library>
|
||||
<ldflags>$(EXTRALDFLAGS_WEBVIEW)</ldflags>
|
||||
<ldlibs>$(EXTRALIBS_WEBVIEW)</ldlibs>
|
||||
<msvc-headers>$(WEBVIEW_HDR)</msvc-headers>
|
||||
<include>$(CEF_DIR)</include>
|
||||
</dll>
|
||||
|
||||
<lib id="webviewlib" template="wx_lib,webview_additional"
|
||||
cond="SHARED=='0' and USE_GUI=='1' and USE_WEBVIEW=='1' and MONOLITHIC=='0'">
|
||||
<sources>$(WEBVIEW_SRC)</sources>
|
||||
<msvc-headers>$(WEBVIEW_HDR)</msvc-headers>
|
||||
<include>$(CEF_DIR)</include>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxwebview" cond="MONOLITHIC=='0' and USE_WEBVIEW=='1'"/>
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- OpenGL -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<!-- included by wx.bkl from opengl.bkl -->
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">gl=gllib+gldll</set>
|
||||
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- QA -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<dll id="qadll" template="wx_dll"
|
||||
cond="SHARED=='1' and USE_GUI=='1' and USE_QA=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_QA</define>
|
||||
<sources>$(QA_SRC)</sources>
|
||||
<msvc-headers>$(QA_HDR)</msvc-headers>
|
||||
<library>coredll</library>
|
||||
<library>basedll</library>
|
||||
<library>xmldll</library>
|
||||
</dll>
|
||||
|
||||
<lib id="qalib" template="wx_lib"
|
||||
cond="SHARED=='0' and USE_GUI=='1' and USE_QA=='1' and MONOLITHIC=='0'">
|
||||
<sources>$(QA_SRC)</sources>
|
||||
<msvc-headers>$(QA_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxqa" cond="MONOLITHIC=='0' and USE_QA=='1'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">qa=qalib+qadll</set>
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- XML -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<dll id="xmldll" template="wx_base_dll"
|
||||
cond="SHARED=='1' and USE_XML=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_XML</define>
|
||||
<sources>$(XML_SRC)</sources>
|
||||
<msvc-headers>$(XML_HDR)</msvc-headers>
|
||||
<library>basedll</library>
|
||||
<ldlibs>$(EXTRALIBS_XML)</ldlibs>
|
||||
</dll>
|
||||
|
||||
<lib id="xmllib" template="wx_base_lib"
|
||||
cond="SHARED=='0' and USE_XML=='1' and MONOLITHIC=='0'">
|
||||
<sources>$(XML_SRC)</sources>
|
||||
<msvc-headers>$(XML_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxxml" cond="USE_XML=='1' and MONOLITHIC=='0'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">xml=xmllib+xmldll</set>
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- XRC -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<dll id="xrcdll" template="wx_dll"
|
||||
cond="SHARED=='1' and USE_XML=='1' and USE_XRC=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_XRC</define>
|
||||
<sources>$(XRC_SRC)</sources>
|
||||
<library>$(htmldll_library_link)</library>
|
||||
<library>coredll</library>
|
||||
<library>xmldll</library>
|
||||
<library>basedll</library>
|
||||
<msvc-headers>$(XRC_HDR)</msvc-headers>
|
||||
</dll>
|
||||
|
||||
<lib id="xrclib" template="wx_lib"
|
||||
cond="SHARED=='0' and USE_XRC=='1' and MONOLITHIC=='0'">
|
||||
<sources>$(XRC_SRC)</sources>
|
||||
<msvc-headers>$(XRC_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxxrc" cond="MONOLITHIC=='0' and USE_XRC=='1'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">xrc=xrclib+xrcdll</set>
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- AUI -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<dll id="auidll" template="wx_dll"
|
||||
cond="SHARED=='1' and USE_AUI=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_AUI</define>
|
||||
<sources>$(AUI_SRC)</sources>
|
||||
<library>coredll</library>
|
||||
<library>basedll</library>
|
||||
<msvc-headers>$(AUI_HDR)</msvc-headers>
|
||||
</dll>
|
||||
|
||||
<lib id="auilib" template="wx_lib"
|
||||
cond="SHARED=='0' and USE_AUI=='1' and MONOLITHIC=='0'">
|
||||
<sources>$(AUI_SRC)</sources>
|
||||
<msvc-headers>$(AUI_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxaui" cond="MONOLITHIC=='0' and USE_AUI=='1'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">aui=auilib+auidll</set>
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- RIBBON -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<dll id="ribbondll" template="wx_dll"
|
||||
cond="SHARED=='1' and USE_RIBBON=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_RIBBON</define>
|
||||
<sources>$(RIBBON_SRC)</sources>
|
||||
<library>coredll</library>
|
||||
<library>basedll</library>
|
||||
<msvc-headers>$(RIBBON_HDR)</msvc-headers>
|
||||
</dll>
|
||||
|
||||
<lib id="ribbonlib" template="wx_lib"
|
||||
cond="SHARED=='0' and USE_RIBBON=='1' and MONOLITHIC=='0'">
|
||||
<sources>$(RIBBON_SRC)</sources>
|
||||
<msvc-headers>$(RIBBON_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxribbon" cond="MONOLITHIC=='0' and USE_RIBBON=='1'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">ribbon=ribbonlib+ribbondll</set>
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- PROPGRID -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<dll id="propgriddll" template="wx_dll"
|
||||
cond="SHARED=='1' and USE_PROPGRID=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_PROPGRID</define>
|
||||
<sources>$(PROPGRID_SRC)</sources>
|
||||
<library>coredll</library>
|
||||
<library>basedll</library>
|
||||
<msvc-headers>$(PROPGRID_HDR)</msvc-headers>
|
||||
</dll>
|
||||
|
||||
<lib id="propgridlib" template="wx_lib"
|
||||
cond="SHARED=='0' and USE_PROPGRID=='1' and MONOLITHIC=='0'">
|
||||
<sources>$(PROPGRID_SRC)</sources>
|
||||
<msvc-headers>$(PROPGRID_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxpropgrid" cond="MONOLITHIC=='0' and USE_PROPGRID=='1'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">propgrid=propgridlib+propgriddll</set>
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- RICHTEXT -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<dll id="richtextdll" template="wx_dll"
|
||||
cond="SHARED=='1' and USE_RICHTEXT=='1' and USE_XML=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_RICHTEXT</define>
|
||||
<sources>$(RICHTEXT_SRC)</sources>
|
||||
<library>$(htmldll_library_link)</library>
|
||||
<library>xmldll</library>
|
||||
<library>coredll</library>
|
||||
<library>basedll</library>
|
||||
<msvc-headers>$(RICHTEXT_HDR)</msvc-headers>
|
||||
</dll>
|
||||
|
||||
<lib id="richtextlib" template="wx_lib"
|
||||
cond="SHARED=='0' and USE_RICHTEXT=='1' and MONOLITHIC=='0'">
|
||||
<sources>$(RICHTEXT_SRC)</sources>
|
||||
<msvc-headers>$(RICHTEXT_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxrichtext" cond="MONOLITHIC=='0' and USE_RICHTEXT=='1'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">richtext=richtextlib+richtextdll</set>
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- STC -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<template id="stc_base" template="wxscintilla_cppflags,wxlexilla_cppflags">
|
||||
<library>wxscintilla</library>
|
||||
<library>wxlexilla</library>
|
||||
</template>
|
||||
|
||||
<dll id="stcdll" template="wx_dll,stc_base"
|
||||
cond="SHARED=='1' and USE_STC=='1' and MONOLITHIC=='0'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_STC</define>
|
||||
<sources>$(STC_SRC)</sources>
|
||||
<library>coredll</library>
|
||||
<library>basedll</library>
|
||||
<ldlibs>$(EXTRALIBS_STC)</ldlibs>
|
||||
<msvc-headers>$(STC_HDR)</msvc-headers>
|
||||
</dll>
|
||||
|
||||
<lib id="stclib" template="wx_lib,stc_base"
|
||||
cond="SHARED=='0' and USE_STC=='1' and MONOLITHIC=='0'">
|
||||
<sources>$(STC_SRC)</sources>
|
||||
<msvc-headers>$(STC_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxstc" cond="MONOLITHIC=='0' and USE_STC=='1'"/>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">stc=stclib+stcdll</set>
|
||||
|
||||
</makefile>
|
||||
43
libs/wxWidgets-3.3.1/build/bakefiles/opengl.bkl
Normal file
43
libs/wxWidgets-3.3.1/build/bakefiles/opengl.bkl
Normal file
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<!-- ================================================================= -->
|
||||
<!-- OpenGL canvas library -->
|
||||
<!-- ================================================================= -->
|
||||
|
||||
<set var="WXLIBGLDEP_CORE">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if>
|
||||
</set>
|
||||
<set var="WXLIBGLDEP_BASE">
|
||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if>
|
||||
</set>
|
||||
|
||||
<dll id="gldll" template="wx_dll"
|
||||
cond="SHARED=='1' and USE_GUI=='1' and USE_OPENGL=='1'">
|
||||
<define>WXUSINGDLL</define>
|
||||
<define>WXMAKINGDLL_GL</define>
|
||||
<sources>$(OPENGL_SRC)</sources>
|
||||
<msvc-headers>$(OPENGL_HDR)</msvc-headers>
|
||||
|
||||
<!-- link against base and core libs in multilib build: -->
|
||||
<sys-lib>$(WXLIBGLDEP_CORE)</sys-lib>
|
||||
<sys-lib>$(WXLIBGLDEP_BASE)</sys-lib>
|
||||
<depends>basedll</depends>
|
||||
<depends>coredll</depends>
|
||||
<!-- link against the wxWin library in monolithic build: -->
|
||||
<sys-lib>$(WXLIB_MONO)</sys-lib>
|
||||
<depends>monodll</depends>
|
||||
|
||||
<ldlibs>$(EXTRALIBS_OPENGL)</ldlibs>
|
||||
</dll>
|
||||
|
||||
<lib id="gllib" template="wx_lib"
|
||||
cond="SHARED=='0' and USE_GUI=='1' and USE_OPENGL=='1'">
|
||||
<sources>$(OPENGL_SRC)</sources>
|
||||
<msvc-headers>$(OPENGL_HDR)</msvc-headers>
|
||||
</lib>
|
||||
|
||||
<wxshortcut id="wxgl" cond="USE_GUI=='1' and USE_OPENGL=='1'"/>
|
||||
|
||||
</makefile>
|
||||
22
libs/wxWidgets-3.3.1/build/bakefiles/plugins.bkl
Normal file
22
libs/wxWidgets-3.3.1/build/bakefiles/plugins.bkl
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- Unix audio plugins -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<wx-base-plugin id="sound_sdl" cond="WITH_PLUGIN_SDL=='1'">
|
||||
<sources>$(UNIX_SOUND_SDL_SRC)</sources>
|
||||
<ldlibs>$(EXTRALIBS_SDL)</ldlibs>
|
||||
</wx-base-plugin>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<wx-base-plugin id="webkit2_ext" cond="USE_WEBVIEW_WEBKIT2=='1'">
|
||||
<sources>$(WEBVIEW_WEBKIT2_EXTENSION_SRC)</sources>
|
||||
<ldlibs>$(EXTRALIBS_WEBVIEW)</ldlibs>
|
||||
<install-to>$(PLUGINS_INST_DIR)/web-extensions</install-to>
|
||||
</wx-base-plugin>
|
||||
</if>
|
||||
|
||||
</makefile>
|
||||
20
libs/wxWidgets-3.3.1/build/bakefiles/plugins_deps.bkl
Normal file
20
libs/wxWidgets-3.3.1/build/bakefiles/plugins_deps.bkl
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<!-- Additional dependencies of core libraries if plugins are
|
||||
disabled (these would be deps of the plugins if they were
|
||||
enabled): -->
|
||||
|
||||
<set var="PLUGIN_ADV_EXTRALIBS">
|
||||
<if cond="USE_PLUGINS=='0'">
|
||||
$(EXTRALIBS_SDL)
|
||||
</if>
|
||||
</set>
|
||||
|
||||
|
||||
<!-- monolithic library must link against all this: -->
|
||||
|
||||
<set var="PLUGIN_MONOLIB_EXTRALIBS">$(PLUGIN_ADV_EXTRALIBS)</set>
|
||||
|
||||
</makefile>
|
||||
63
libs/wxWidgets-3.3.1/build/bakefiles/png.bkl
Normal file
63
libs/wxWidgets-3.3.1/build/bakefiles/png.bkl
Normal file
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" ?>
|
||||
<makefile>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<option name="wxUSE_LIBPNG"/>
|
||||
<set var="LIB_PNG">
|
||||
<if cond="wxUSE_LIBPNG=='builtin' and USE_GUI=='1'">
|
||||
wxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="wxUSE_LIBPNG">builtin</set>
|
||||
<set var="LIB_PNG">
|
||||
<if cond="wxUSE_LIBPNG=='builtin' and USE_GUI=='1'">
|
||||
wxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<set var="INC_PNG">
|
||||
<if cond="wxUSE_LIBPNG=='builtin'">$(TOP_SRCDIR)src/png</if>
|
||||
</set>
|
||||
|
||||
<lib id="wxpng" template_append="3rdparty_lib"
|
||||
cond="wxUSE_LIBPNG=='builtin' and USE_GUI=='1' and BUILDING_LIB=='1'">
|
||||
<dirname>$(LIBDIRNAME)</dirname>
|
||||
<include>$(INC_ZLIB)</include>
|
||||
<define>PNG_INTEL_SSE</define>
|
||||
<cflags-borland>-w-8004</cflags-borland>
|
||||
<cflags-watcom>-wcd=124</cflags-watcom>
|
||||
<sources>
|
||||
src/png/png.c
|
||||
src/png/pngerror.c
|
||||
src/png/pngget.c
|
||||
src/png/pngmem.c
|
||||
src/png/pngpread.c
|
||||
src/png/pngread.c
|
||||
src/png/pngrio.c
|
||||
src/png/pngrtran.c
|
||||
src/png/pngrutil.c
|
||||
src/png/pngset.c
|
||||
src/png/pngtrans.c
|
||||
src/png/pngwio.c
|
||||
src/png/pngwrite.c
|
||||
src/png/pngwtran.c
|
||||
src/png/pngwutil.c
|
||||
src/png/arm/arm_init.c
|
||||
src/png/arm/filter_neon_intrinsics.c
|
||||
src/png/arm/palette_neon_intrinsics.c
|
||||
src/png/intel/intel_init.c
|
||||
src/png/intel/filter_sse2_intrinsics.c
|
||||
</sources>
|
||||
<if cond="IS_MSVC=='0'">
|
||||
<sources>
|
||||
src/png/mips/filter_msa_intrinsics.c
|
||||
src/png/mips/mips_init.c
|
||||
src/png/powerpc/filter_vsx_intrinsics.c
|
||||
src/png/powerpc/powerpc_init.c
|
||||
</sources>
|
||||
</if>
|
||||
</lib>
|
||||
|
||||
</makefile>
|
||||
75
libs/wxWidgets-3.3.1/build/bakefiles/regex.bkl
Normal file
75
libs/wxWidgets-3.3.1/build/bakefiles/regex.bkl
Normal file
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<option name="wxUSE_REGEX"/>
|
||||
<option name="wxPCRE2_CODE_UNIT_WIDTH"/>
|
||||
<set var="LIB_REGEX">
|
||||
<if cond="wxUSE_REGEX=='builtin'">
|
||||
wxregexu$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
<set var="INC_REGEX_BUILD">
|
||||
$(wx_top_builddir)/3rdparty/pcre/src
|
||||
</set>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="wxUSE_REGEX">builtin</set>
|
||||
<set var="LIB_REGEX">
|
||||
<if cond="wxUSE_REGEX=='builtin'">
|
||||
wxregexu$(WXDEBUGFLAG)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
|
||||
<set var="INC_REGEX">
|
||||
<if cond="wxUSE_REGEX=='builtin'">
|
||||
$(TOP_SRCDIR)3rdparty/pcre/src/wx
|
||||
</if>
|
||||
</set>
|
||||
|
||||
<lib id="wxregex" template_append="msvc_setup_h,3rdparty_lib_u"
|
||||
cond="wxUSE_REGEX=='builtin' and BUILDING_LIB=='1'">
|
||||
<include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include>
|
||||
<include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
|
||||
<include cond="FORMAT!='autoconf'">$(INC_REGEX)</include>
|
||||
<include cond="FORMAT=='autoconf'">$(INC_REGEX_BUILD)</include>
|
||||
<define>__WX__</define>
|
||||
<define>HAVE_CONFIG_H</define>
|
||||
<define cond="FORMAT=='autoconf'">PCRE2_CODE_UNIT_WIDTH=$(wxPCRE2_CODE_UNIT_WIDTH)</define>
|
||||
<dirname>$(LIBDIRNAME)</dirname>
|
||||
<sources>
|
||||
3rdparty/pcre/src/pcre2_auto_possess.c
|
||||
3rdparty/pcre/src/pcre2_chkdint.c
|
||||
3rdparty/pcre/src/pcre2_compile.c
|
||||
3rdparty/pcre/src/pcre2_compile_class.c
|
||||
3rdparty/pcre/src/pcre2_config.c
|
||||
3rdparty/pcre/src/pcre2_context.c
|
||||
3rdparty/pcre/src/pcre2_convert.c
|
||||
3rdparty/pcre/src/pcre2_dfa_match.c
|
||||
3rdparty/pcre/src/pcre2_error.c
|
||||
3rdparty/pcre/src/pcre2_extuni.c
|
||||
3rdparty/pcre/src/pcre2_find_bracket.c
|
||||
3rdparty/pcre/src/pcre2_jit_compile.c
|
||||
3rdparty/pcre/src/pcre2_maketables.c
|
||||
3rdparty/pcre/src/pcre2_match.c
|
||||
3rdparty/pcre/src/pcre2_match_data.c
|
||||
3rdparty/pcre/src/pcre2_newline.c
|
||||
3rdparty/pcre/src/pcre2_ord2utf.c
|
||||
3rdparty/pcre/src/pcre2_pattern_info.c
|
||||
3rdparty/pcre/src/pcre2_script_run.c
|
||||
3rdparty/pcre/src/pcre2_serialize.c
|
||||
3rdparty/pcre/src/pcre2_string_utils.c
|
||||
3rdparty/pcre/src/pcre2_study.c
|
||||
3rdparty/pcre/src/pcre2_substitute.c
|
||||
3rdparty/pcre/src/pcre2_substring.c
|
||||
3rdparty/pcre/src/pcre2_tables.c
|
||||
3rdparty/pcre/src/pcre2_ucd.c
|
||||
3rdparty/pcre/src/pcre2_valid_utf.c
|
||||
3rdparty/pcre/src/pcre2_xclass.c
|
||||
3rdparty/pcre/src/pcre2_chartables.c
|
||||
</sources>
|
||||
</lib>
|
||||
|
||||
</makefile>
|
||||
92
libs/wxWidgets-3.3.1/build/bakefiles/scintilla.bkl
Normal file
92
libs/wxWidgets-3.3.1/build/bakefiles/scintilla.bkl
Normal file
@@ -0,0 +1,92 @@
|
||||
<?xml version="1.0" ?>
|
||||
<makefile>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<set var="LIB_SCINTILLA">
|
||||
<if cond="USE_STC=='1'">
|
||||
wxscintilla$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="LIB_SCINTILLA">
|
||||
wxscintilla$(WXDEBUGFLAG)$(HOST_SUFFIX)
|
||||
</set>
|
||||
</if>
|
||||
|
||||
<!-- automatically update generated files when building the library -->
|
||||
<if cond="BUILDING_LIB=='1'">
|
||||
<fragment format='autoconf'>
|
||||
@COND_PYTHON@@COND_USE_STC_1@$(srcdir)/include/wx/stc/stc.h: \
|
||||
@COND_PYTHON@@COND_USE_STC_1@$(srcdir)/src/stc/scintilla/include/Scintilla.iface \
|
||||
@COND_PYTHON@@COND_USE_STC_1@$(srcdir)/src/stc/lexilla/include/LexicalStyles.iface \
|
||||
@COND_PYTHON@@COND_USE_STC_1@$(srcdir)/src/stc/stc.cpp.in \
|
||||
@COND_PYTHON@@COND_USE_STC_1@$(srcdir)/src/stc/stc.h.in \
|
||||
@COND_PYTHON@@COND_USE_STC_1@$(srcdir)/src/stc/gen_iface.py
|
||||
@COND_PYTHON@@COND_USE_STC_1@ cd $(srcdir)/src/stc && ./gen_iface.py
|
||||
@COND_PYTHON@@COND_USE_STC_1@monolib_stc.o monodll_stc.o stcdll_stc.o stclib_stc.o: \
|
||||
@COND_PYTHON@@COND_USE_STC_1@ $(srcdir)/include/wx/stc/stc.h
|
||||
</fragment>
|
||||
</if>
|
||||
|
||||
<template id="wxscintilla_cppflags">
|
||||
<include>$(TOP_SRCDIR)src/stc/scintilla/include</include>
|
||||
<include>$(TOP_SRCDIR)src/stc/scintilla/src</include>
|
||||
<define>__WX__</define>
|
||||
</template>
|
||||
|
||||
<set var="wxscintilla_usingdll">
|
||||
<if cond="SHARED=='1' and MONOLITHIC=='0'">WXUSINGDLL</if>
|
||||
</set>
|
||||
|
||||
<lib id="wxscintilla" template_append="3rdparty_lib,wxscintilla_cppflags,msvc_setup_h"
|
||||
cond="USE_STC=='1' and BUILDING_LIB=='1'">
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<include>$(SETUPHDIR)</include>
|
||||
<include>$(TOP_SRCDIR)include</include>
|
||||
</if>
|
||||
<define>$(wxscintilla_usingdll)</define>
|
||||
<define>__WX$(TOOLKIT)__</define>
|
||||
<define>$(WXUNIV_DEFINE)</define>
|
||||
<define>$(DEBUG_DEFINE)</define>
|
||||
<dirname>$(LIBDIRNAME)</dirname>
|
||||
<sources>
|
||||
src/stc/scintilla/src/AutoComplete.cxx
|
||||
src/stc/scintilla/src/CallTip.cxx
|
||||
src/stc/scintilla/src/CaseConvert.cxx
|
||||
src/stc/scintilla/src/CaseFolder.cxx
|
||||
src/stc/scintilla/src/CellBuffer.cxx
|
||||
src/stc/scintilla/src/CharClassify.cxx
|
||||
src/stc/scintilla/src/CharacterCategory.cxx
|
||||
src/stc/scintilla/src/CharacterSet.cxx
|
||||
src/stc/scintilla/src/ContractionState.cxx
|
||||
src/stc/scintilla/src/DBCS.cxx
|
||||
src/stc/scintilla/src/Decoration.cxx
|
||||
src/stc/scintilla/src/Document.cxx
|
||||
src/stc/scintilla/src/EditModel.cxx
|
||||
src/stc/scintilla/src/EditView.cxx
|
||||
src/stc/scintilla/src/Editor.cxx
|
||||
src/stc/scintilla/src/Indicator.cxx
|
||||
src/stc/scintilla/src/KeyMap.cxx
|
||||
src/stc/scintilla/src/LineMarker.cxx
|
||||
src/stc/scintilla/src/MarginView.cxx
|
||||
src/stc/scintilla/src/PerLine.cxx
|
||||
src/stc/scintilla/src/PositionCache.cxx
|
||||
src/stc/scintilla/src/RESearch.cxx
|
||||
src/stc/scintilla/src/RunStyles.cxx
|
||||
src/stc/scintilla/src/ScintillaBase.cxx
|
||||
src/stc/scintilla/src/Selection.cxx
|
||||
src/stc/scintilla/src/Style.cxx
|
||||
src/stc/scintilla/src/UniConversion.cxx
|
||||
src/stc/scintilla/src/UniqueString.cxx
|
||||
src/stc/scintilla/src/ViewStyle.cxx
|
||||
src/stc/scintilla/src/XPM.cxx
|
||||
</sources>
|
||||
</lib>
|
||||
|
||||
<!-- used to conditionally link against wxscintilla only if it's enabled -->
|
||||
<set var="wxscintilla_library_link">
|
||||
<if cond="USE_STC=='1' and BUILDING_LIB=='1'">wxscintilla</if>
|
||||
</set>
|
||||
|
||||
</makefile>
|
||||
112
libs/wxWidgets-3.3.1/build/bakefiles/tiff.bkl
Normal file
112
libs/wxWidgets-3.3.1/build/bakefiles/tiff.bkl
Normal file
@@ -0,0 +1,112 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<option name="wxUSE_LIBTIFF"/>
|
||||
<set var="LIB_TIFF">
|
||||
<if cond="wxUSE_LIBTIFF=='builtin' and USE_GUI=='1'">
|
||||
wxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="wxUSE_LIBTIFF">builtin</set>
|
||||
<set var="LIB_TIFF">
|
||||
<if cond="wxUSE_LIBTIFF=='builtin' and USE_GUI=='1'">
|
||||
wxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
|
||||
<set var="INC_TIFF_BUILD"></set>
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<set var="INC_TIFF_BUILD">
|
||||
<if cond="wxUSE_LIBTIFF=='builtin'">$(wx_top_builddir)/src/tiff/libtiff</if>
|
||||
</set>
|
||||
</if>
|
||||
<set var="INC_TIFF">
|
||||
<if cond="wxUSE_LIBTIFF=='builtin'">$(TOP_SRCDIR)src/tiff/libtiff</if>
|
||||
</set>
|
||||
|
||||
<set var="TIFF_PLATFORM_SRC">
|
||||
<if cond="PLATFORM_UNIX=='1'">src/tiff/libtiff/tif_unix.c</if>
|
||||
<if cond="PLATFORM_MACOSX=='1'">src/tiff/libtiff/tif_unix.c</if>
|
||||
<if cond="PLATFORM_WIN32=='1'">src/tiff/libtiff/tif_win32.c</if>
|
||||
</set>
|
||||
|
||||
<lib id="wxtiff" template_append="3rdparty_lib"
|
||||
cond="wxUSE_LIBTIFF=='builtin' and USE_GUI=='1' and BUILDING_LIB=='1'">
|
||||
<dirname>$(LIBDIRNAME)</dirname>
|
||||
<include>$(INC_ZLIB)</include>
|
||||
<include>$(INC_JPEG)</include>
|
||||
<include>$(INC_TIFF_BUILD)</include>
|
||||
<include>$(INC_TIFF)</include>
|
||||
<cflags-borland>-w-8004 -w-8012 -w-8057 -w-8060 -w-8066</cflags-borland>
|
||||
<cflags-dmars>-w2</cflags-dmars>
|
||||
<cflags-watcom>-wcd=124</cflags-watcom>
|
||||
<if cond="IS_MSVC">
|
||||
<!--
|
||||
define this to get rid of a warning about using POSIX lfind():
|
||||
confusingly enough, we do define lfind as _lfind for MSVC but
|
||||
doing this results in a just more confusing warning, see:
|
||||
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=101278
|
||||
-->
|
||||
<define>_CRT_NONSTDC_NO_WARNINGS</define>
|
||||
</if>
|
||||
|
||||
<sources>
|
||||
$(TIFF_PLATFORM_SRC)
|
||||
src/tiff/libtiff/tif_aux.c
|
||||
src/tiff/libtiff/tif_close.c
|
||||
src/tiff/libtiff/tif_codec.c
|
||||
src/tiff/libtiff/tif_color.c
|
||||
src/tiff/libtiff/tif_compress.c
|
||||
src/tiff/libtiff/tif_dir.c
|
||||
src/tiff/libtiff/tif_dirinfo.c
|
||||
src/tiff/libtiff/tif_dirread.c
|
||||
src/tiff/libtiff/tif_dirwrite.c
|
||||
src/tiff/libtiff/tif_dumpmode.c
|
||||
src/tiff/libtiff/tif_error.c
|
||||
src/tiff/libtiff/tif_extension.c
|
||||
src/tiff/libtiff/tif_fax3.c
|
||||
src/tiff/libtiff/tif_fax3sm.c
|
||||
src/tiff/libtiff/tif_flush.c
|
||||
src/tiff/libtiff/tif_getimage.c
|
||||
src/tiff/libtiff/tif_hash_set.c
|
||||
src/tiff/libtiff/tif_jbig.c
|
||||
src/tiff/libtiff/tif_jpeg.c
|
||||
src/tiff/libtiff/tif_jpeg_12.c
|
||||
src/tiff/libtiff/tif_lerc.c
|
||||
src/tiff/libtiff/tif_luv.c
|
||||
src/tiff/libtiff/tif_lzma.c
|
||||
src/tiff/libtiff/tif_lzw.c
|
||||
src/tiff/libtiff/tif_next.c
|
||||
src/tiff/libtiff/tif_ojpeg.c
|
||||
src/tiff/libtiff/tif_open.c
|
||||
src/tiff/libtiff/tif_packbits.c
|
||||
src/tiff/libtiff/tif_pixarlog.c
|
||||
src/tiff/libtiff/tif_predict.c
|
||||
<!--
|
||||
Exclude this file because it contains only TIFFPrintDirectory()
|
||||
function that we never use, but compiling which generates tons
|
||||
of warnings when using MinGW (e.g. when cross-compiling) and it
|
||||
seems simpler to just not compile it at all than to fix them.
|
||||
|
||||
src/tiff/libtiff/tif_print.c
|
||||
-->
|
||||
src/tiff/libtiff/tif_read.c
|
||||
src/tiff/libtiff/tif_strip.c
|
||||
src/tiff/libtiff/tif_swab.c
|
||||
src/tiff/libtiff/tif_thunder.c
|
||||
src/tiff/libtiff/tif_tile.c
|
||||
src/tiff/libtiff/tif_version.c
|
||||
src/tiff/libtiff/tif_warning.c
|
||||
src/tiff/libtiff/tif_webp.c
|
||||
src/tiff/libtiff/tif_write.c
|
||||
src/tiff/libtiff/tif_zip.c
|
||||
src/tiff/libtiff/tif_zstd.c
|
||||
</sources>
|
||||
</lib>
|
||||
|
||||
</makefile>
|
||||
84
libs/wxWidgets-3.3.1/build/bakefiles/version.bkl
Normal file
84
libs/wxWidgets-3.3.1/build/bakefiles/version.bkl
Normal file
@@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- Handling of binary compatiblity: -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<!--
|
||||
We use libtool CURRENT:REVISION:AGE versioning scheme. Here are the
|
||||
rules for updating the values below, this should be done whenever wx
|
||||
version (wx/version.h) changes (we abbreviate WX_CURRENT:REVISION:AGE
|
||||
as C:R:A respectively):
|
||||
|
||||
0. Set C:R:A = 0:0:0 if major or minor version has changed.
|
||||
|
||||
1. If any API has been removed or otherwise changed in backwards
|
||||
incompatible way, then change C:R:A to C+1:0:0
|
||||
|
||||
2. Else, if any API has been added, change C:R:A to C+1:0:A+1
|
||||
|
||||
3. Else, i.e. if there were no changes at all to API but only internal
|
||||
changes, change C:R:A to C:R+1:A
|
||||
-->
|
||||
<set var="WX_CURRENT">1</set>
|
||||
<set var="WX_REVISION">0</set>
|
||||
<set var="WX_AGE">0</set>
|
||||
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- Library version number: -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<!-- extract wx version number from wx/version.h: -->
|
||||
<set var="WXVER_MAJOR">$(wxwin.getVersionMajor())</set>
|
||||
<set var="WXVER_MINOR">$(wxwin.getVersionMinor())</set>
|
||||
<set var="WXVER_RELEASE">$(wxwin.getVersionRelease())</set>
|
||||
|
||||
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- Derived variables: -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<!-- set misc helper variables: -->
|
||||
|
||||
<set var="WX_RELEASE" make_var="1">
|
||||
$(WXVER_MAJOR).$(WXVER_MINOR)
|
||||
</set>
|
||||
<set var="WX_RELEASE_NODOT" make_var="1">
|
||||
$(WXVER_MAJOR)$(WXVER_MINOR)
|
||||
</set>
|
||||
<set var="WX_VERSION" make_var="1">
|
||||
$(WX_RELEASE).$(WXVER_RELEASE)
|
||||
</set>
|
||||
<set var="WX_VERSION_NODOT" make_var="1">
|
||||
$(WX_RELEASE_NODOT)$(WXVER_RELEASE)
|
||||
</set>
|
||||
|
||||
<set var="WX_STABLE_BRANCH">$(int(int(WXVER_MINOR) % 2 == 0))</set>
|
||||
|
||||
<!-- in unstable branch, binary compat. changes with every release, check
|
||||
for it: -->
|
||||
<if cond="WX_STABLE_BRANCH=='0' and int(WX_CURRENT)!=int(WXVER_RELEASE)">
|
||||
<error>Forgot to update WX_CURRENT/WX_REVISION/WX_AGE?</error>
|
||||
</if>
|
||||
<set var="WXSOVERSION">
|
||||
$(int(WX_CURRENT)-int(WX_AGE)).$(WX_AGE).$(WX_REVISION)
|
||||
</set>
|
||||
|
||||
<!-- FIXME: until libtool scheme is implemented in bakefile -->
|
||||
<set var="WXMACVERSION_CMD">
|
||||
<if cond="PLATFORM_MACOSX=='1'">
|
||||
<!-- Version can't be 0, so add 1 to it to force it to be non null -->
|
||||
-compatibility_version $(int(WX_AGE)+1).0 -current_version $(int(WX_AGE)+1).$(WX_REVISION)
|
||||
</if>
|
||||
</set>
|
||||
|
||||
<set var="WXWIN32DLLVERSION">
|
||||
<if cond="WX_STABLE_BRANCH=='1'">$(WX_RELEASE_NODOT)</if>
|
||||
<if cond="WX_STABLE_BRANCH=='0'">$(WX_VERSION_NODOT)</if>
|
||||
</set>
|
||||
|
||||
</makefile>
|
||||
154
libs/wxWidgets-3.3.1/build/bakefiles/webp.bkl
Normal file
154
libs/wxWidgets-3.3.1/build/bakefiles/webp.bkl
Normal file
@@ -0,0 +1,154 @@
|
||||
<?xml version="1.0" ?>
|
||||
<makefile>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<option name="wxUSE_LIBWEBP"/>
|
||||
<set var="LIB_WEBP">
|
||||
<if cond="wxUSE_LIBWEBP=='builtin' and USE_GUI=='1'">
|
||||
wxwebp$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="wxUSE_LIBWEBP">builtin</set>
|
||||
<set var="LIB_WEBP">
|
||||
<if cond="wxUSE_LIBWEBP=='builtin' and USE_GUI=='1'">
|
||||
wxwebp$(WXDEBUGFLAG)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<set var="INC_WEBP">
|
||||
<if cond="wxUSE_LIBWEBP=='builtin'">$(TOP_SRCDIR)3rdparty/libwebp/src</if>
|
||||
</set>
|
||||
<set var="INC_WEBP_BUILD">
|
||||
<if cond="wxUSE_LIBWEBP=='builtin'">$(TOP_SRCDIR)3rdparty/libwebp</if>
|
||||
</set>
|
||||
|
||||
<lib id="wxwebp" template_append="3rdparty_lib"
|
||||
cond="wxUSE_LIBWEBP=='builtin' and USE_GUI=='1' and BUILDING_LIB=='1'">
|
||||
<dirname>$(LIBDIRNAME)</dirname>
|
||||
<include>$(INC_WEBP_BUILD)</include>
|
||||
<sources>
|
||||
3rdparty/libwebp/sharpyuv/sharpyuv.c
|
||||
3rdparty/libwebp/sharpyuv/sharpyuv_cpu.c
|
||||
3rdparty/libwebp/sharpyuv/sharpyuv_csp.c
|
||||
3rdparty/libwebp/sharpyuv/sharpyuv_dsp.c
|
||||
3rdparty/libwebp/sharpyuv/sharpyuv_gamma.c
|
||||
3rdparty/libwebp/sharpyuv/sharpyuv_neon.c
|
||||
3rdparty/libwebp/sharpyuv/sharpyuv_sse2.c
|
||||
3rdparty/libwebp/src/dec/alpha_dec.c
|
||||
3rdparty/libwebp/src/dec/buffer_dec.c
|
||||
3rdparty/libwebp/src/dec/frame_dec.c
|
||||
3rdparty/libwebp/src/dec/idec_dec.c
|
||||
3rdparty/libwebp/src/dec/io_dec.c
|
||||
3rdparty/libwebp/src/dec/quant_dec.c
|
||||
3rdparty/libwebp/src/dec/tree_dec.c
|
||||
3rdparty/libwebp/src/dec/vp8l_dec.c
|
||||
3rdparty/libwebp/src/dec/vp8_dec.c
|
||||
3rdparty/libwebp/src/dec/webp_dec.c
|
||||
3rdparty/libwebp/src/demux/anim_decode.c
|
||||
3rdparty/libwebp/src/demux/demux.c
|
||||
3rdparty/libwebp/src/dsp/alpha_processing.c
|
||||
3rdparty/libwebp/src/dsp/alpha_processing_mips_dsp_r2.c
|
||||
3rdparty/libwebp/src/dsp/alpha_processing_neon.c
|
||||
3rdparty/libwebp/src/dsp/alpha_processing_sse2.c
|
||||
3rdparty/libwebp/src/dsp/alpha_processing_sse41.c
|
||||
3rdparty/libwebp/src/dsp/cost.c
|
||||
3rdparty/libwebp/src/dsp/cost_mips32.c
|
||||
3rdparty/libwebp/src/dsp/cost_mips_dsp_r2.c
|
||||
3rdparty/libwebp/src/dsp/cost_neon.c
|
||||
3rdparty/libwebp/src/dsp/cost_sse2.c
|
||||
3rdparty/libwebp/src/dsp/cpu.c
|
||||
3rdparty/libwebp/src/dsp/dec.c
|
||||
3rdparty/libwebp/src/dsp/dec_clip_tables.c
|
||||
3rdparty/libwebp/src/dsp/dec_mips32.c
|
||||
3rdparty/libwebp/src/dsp/dec_mips_dsp_r2.c
|
||||
3rdparty/libwebp/src/dsp/dec_msa.c
|
||||
3rdparty/libwebp/src/dsp/dec_neon.c
|
||||
3rdparty/libwebp/src/dsp/dec_sse2.c
|
||||
3rdparty/libwebp/src/dsp/dec_sse41.c
|
||||
3rdparty/libwebp/src/dsp/enc.c
|
||||
3rdparty/libwebp/src/dsp/enc_mips32.c
|
||||
3rdparty/libwebp/src/dsp/enc_mips_dsp_r2.c
|
||||
3rdparty/libwebp/src/dsp/enc_msa.c
|
||||
3rdparty/libwebp/src/dsp/enc_neon.c
|
||||
3rdparty/libwebp/src/dsp/enc_sse2.c
|
||||
3rdparty/libwebp/src/dsp/enc_sse41.c
|
||||
3rdparty/libwebp/src/dsp/filters.c
|
||||
3rdparty/libwebp/src/dsp/filters_mips_dsp_r2.c
|
||||
3rdparty/libwebp/src/dsp/filters_msa.c
|
||||
3rdparty/libwebp/src/dsp/filters_neon.c
|
||||
3rdparty/libwebp/src/dsp/filters_sse2.c
|
||||
3rdparty/libwebp/src/dsp/lossless.c
|
||||
3rdparty/libwebp/src/dsp/lossless_enc.c
|
||||
3rdparty/libwebp/src/dsp/lossless_enc_mips32.c
|
||||
3rdparty/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c
|
||||
3rdparty/libwebp/src/dsp/lossless_enc_msa.c
|
||||
3rdparty/libwebp/src/dsp/lossless_enc_neon.c
|
||||
3rdparty/libwebp/src/dsp/lossless_enc_sse2.c
|
||||
3rdparty/libwebp/src/dsp/lossless_enc_sse41.c
|
||||
3rdparty/libwebp/src/dsp/lossless_mips_dsp_r2.c
|
||||
3rdparty/libwebp/src/dsp/lossless_msa.c
|
||||
3rdparty/libwebp/src/dsp/lossless_neon.c
|
||||
3rdparty/libwebp/src/dsp/lossless_sse2.c
|
||||
3rdparty/libwebp/src/dsp/lossless_sse41.c
|
||||
3rdparty/libwebp/src/dsp/rescaler.c
|
||||
3rdparty/libwebp/src/dsp/rescaler_mips32.c
|
||||
3rdparty/libwebp/src/dsp/rescaler_mips_dsp_r2.c
|
||||
3rdparty/libwebp/src/dsp/rescaler_msa.c
|
||||
3rdparty/libwebp/src/dsp/rescaler_neon.c
|
||||
3rdparty/libwebp/src/dsp/rescaler_sse2.c
|
||||
3rdparty/libwebp/src/dsp/ssim.c
|
||||
3rdparty/libwebp/src/dsp/ssim_sse2.c
|
||||
3rdparty/libwebp/src/dsp/upsampling.c
|
||||
3rdparty/libwebp/src/dsp/upsampling_mips_dsp_r2.c
|
||||
3rdparty/libwebp/src/dsp/upsampling_msa.c
|
||||
3rdparty/libwebp/src/dsp/upsampling_neon.c
|
||||
3rdparty/libwebp/src/dsp/upsampling_sse2.c
|
||||
3rdparty/libwebp/src/dsp/upsampling_sse41.c
|
||||
3rdparty/libwebp/src/dsp/yuv.c
|
||||
3rdparty/libwebp/src/dsp/yuv_mips32.c
|
||||
3rdparty/libwebp/src/dsp/yuv_mips_dsp_r2.c
|
||||
3rdparty/libwebp/src/dsp/yuv_neon.c
|
||||
3rdparty/libwebp/src/dsp/yuv_sse2.c
|
||||
3rdparty/libwebp/src/dsp/yuv_sse41.c
|
||||
3rdparty/libwebp/src/enc/alpha_enc.c
|
||||
3rdparty/libwebp/src/enc/analysis_enc.c
|
||||
3rdparty/libwebp/src/enc/backward_references_cost_enc.c
|
||||
3rdparty/libwebp/src/enc/backward_references_enc.c
|
||||
3rdparty/libwebp/src/enc/config_enc.c
|
||||
3rdparty/libwebp/src/enc/cost_enc.c
|
||||
3rdparty/libwebp/src/enc/filter_enc.c
|
||||
3rdparty/libwebp/src/enc/frame_enc.c
|
||||
3rdparty/libwebp/src/enc/histogram_enc.c
|
||||
3rdparty/libwebp/src/enc/iterator_enc.c
|
||||
3rdparty/libwebp/src/enc/near_lossless_enc.c
|
||||
3rdparty/libwebp/src/enc/picture_csp_enc.c
|
||||
3rdparty/libwebp/src/enc/picture_enc.c
|
||||
3rdparty/libwebp/src/enc/picture_psnr_enc.c
|
||||
3rdparty/libwebp/src/enc/picture_rescale_enc.c
|
||||
3rdparty/libwebp/src/enc/picture_tools_enc.c
|
||||
3rdparty/libwebp/src/enc/predictor_enc.c
|
||||
3rdparty/libwebp/src/enc/quant_enc.c
|
||||
3rdparty/libwebp/src/enc/syntax_enc.c
|
||||
3rdparty/libwebp/src/enc/token_enc.c
|
||||
3rdparty/libwebp/src/enc/tree_enc.c
|
||||
3rdparty/libwebp/src/enc/vp8l_enc.c
|
||||
3rdparty/libwebp/src/enc/webp_enc.c
|
||||
3rdparty/libwebp/src/utils/bit_reader_utils.c
|
||||
3rdparty/libwebp/src/utils/bit_writer_utils.c
|
||||
3rdparty/libwebp/src/utils/color_cache_utils.c
|
||||
3rdparty/libwebp/src/utils/filters_utils.c
|
||||
3rdparty/libwebp/src/utils/huffman_encode_utils.c
|
||||
3rdparty/libwebp/src/utils/huffman_utils.c
|
||||
3rdparty/libwebp/src/utils/palette.c
|
||||
3rdparty/libwebp/src/utils/quant_levels_dec_utils.c
|
||||
3rdparty/libwebp/src/utils/quant_levels_utils.c
|
||||
3rdparty/libwebp/src/utils/random_utils.c
|
||||
3rdparty/libwebp/src/utils/rescaler_utils.c
|
||||
3rdparty/libwebp/src/utils/thread_utils.c
|
||||
3rdparty/libwebp/src/utils/utils.c
|
||||
</sources>
|
||||
</lib>
|
||||
|
||||
</makefile>
|
||||
240
libs/wxWidgets-3.3.1/build/bakefiles/wx.bkl
Normal file
240
libs/wxWidgets-3.3.1/build/bakefiles/wx.bkl
Normal file
@@ -0,0 +1,240 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
|
||||
<!-- Master bakefile for wxWidgets -->
|
||||
|
||||
<makefile>
|
||||
|
||||
<!-- make sure setup.h is created as soon as possible: -->
|
||||
<phony id="setup_h" cond="FORMAT!='autoconf'">
|
||||
<dependency-of>all</dependency-of>
|
||||
</phony>
|
||||
|
||||
<set var="BUILDING_LIB">1</set>
|
||||
|
||||
<!-- common rules, names etc. for wx: -->
|
||||
<include file="common.bkl"/>
|
||||
|
||||
<!-- list of files sorted into categories: -->
|
||||
<include file="files.bkl"/>
|
||||
|
||||
<!-- wxWidgets variant where everything is in one library: -->
|
||||
<include file="monolithic.bkl"/>
|
||||
<!-- ...and when there are multiple libraries: -->
|
||||
<include file="multilib.bkl"/>
|
||||
|
||||
<if cond="IS_MSVC_PRJ">
|
||||
<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>
|
||||
|
||||
<!-- OpenGL canvas is built as separate library in both cases: -->
|
||||
<include file="opengl.bkl"/>
|
||||
<!-- Dynamically loadable plugins: -->
|
||||
<include file="plugins.bkl"/>
|
||||
|
||||
<!-- Samples target (not dependency of 'all'): -->
|
||||
<subproject id="samples">
|
||||
<installable>no</installable>
|
||||
<dir cond="FORMAT=='autoconf'">samples</dir>
|
||||
<dir cond="FORMAT!='autoconf'">../../samples</dir>
|
||||
</subproject>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
|
||||
<!-- 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_XML=='1'">
|
||||
<dependency-of>all</dependency-of>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<command>
|
||||
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && $(DOLLAR)(MAKE) all ; fi)
|
||||
</command>
|
||||
</action>
|
||||
<action id="clean-wxrc" cond="USE_XML=='1'">
|
||||
<dependency-of>clean</dependency-of>
|
||||
<command>
|
||||
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && $(DOLLAR)(MAKE) clean ; fi)
|
||||
</command>
|
||||
</action>
|
||||
<action id="install-wxrc" cond="USE_XML=='1'">
|
||||
<dependency-of>install</dependency-of>
|
||||
<depends>wxrc</depends>
|
||||
<command>
|
||||
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && $(DOLLAR)(MAKE) install ; fi)
|
||||
</command>
|
||||
</action>
|
||||
|
||||
<!-- "make install": -->
|
||||
|
||||
<data-files>
|
||||
<files>wxwin.m4</files>
|
||||
<install-to>$(DATADIR)/aclocal</install-to>
|
||||
</data-files>
|
||||
|
||||
<data-files>
|
||||
<srcdir>$(SRCDIR)/build/bakefiles/wxpresets/presets</srcdir>
|
||||
<files>wx.bkl wx_unix.bkl wx_win32.bkl wx_xrc.bkl wx_presets.py</files>
|
||||
<install-to>$(DATADIR)/bakefile/presets</install-to>
|
||||
</data-files>
|
||||
|
||||
<action id="install-wxconfig">
|
||||
<dependency-of>install</dependency-of>
|
||||
<command>
|
||||
$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
|
||||
$(INSTALL_DIR) $(DESTDIR)$(LIBDIR)/wx/config
|
||||
$(INSTALL_SCRIPT) lib/wx/config/$(TOOLCHAIN_FULLNAME) $(DESTDIR)$(LIBDIR)/wx/config
|
||||
# Warning! If the --relative symlink fails (e.g. *BSD), then we'd create an absolute symlink, which will be broken if DESTDIR is moved
|
||||
(cd $(DESTDIR)$(BINDIR) && rm -f wx-config && $(LN_S) --relative $(DESTDIR)$(LIBDIR)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config || $(LN_S) $(DESTDIR)$(LIBDIR)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config || cp -p $(DESTDIR)$(LIBDIR)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config)
|
||||
</command>
|
||||
</action>
|
||||
|
||||
<modify-target target="install">
|
||||
<command>
|
||||
$(DYLIB_RPATH_INSTALL)
|
||||
</command>
|
||||
</modify-target>
|
||||
|
||||
<set var="RCDEFS_H">
|
||||
<if cond="TOOLKIT=='MSW'">msw/rcdefs.h</if>
|
||||
</set>
|
||||
|
||||
|
||||
<data-files-tree>
|
||||
<srcdir>
|
||||
$(BUILDDIR)/lib/wx/include/$(TOOLCHAIN_FULLNAME)/wx
|
||||
</srcdir>
|
||||
<files>
|
||||
setup.h $(RCDEFS_H)
|
||||
</files>
|
||||
<install-to>
|
||||
$(LIBDIR)/wx/include/$(TOOLCHAIN_FULLNAME)/wx
|
||||
</install-to>
|
||||
</data-files-tree>
|
||||
|
||||
<!-- FIXME: make this use per-target <headers> once it supports
|
||||
prefix removal -->
|
||||
<data-files-tree>
|
||||
<srcdir>$(SRCDIR)/include</srcdir>
|
||||
<files>$(ALL_HEADERS)</files>
|
||||
<install-to>
|
||||
$(INCLUDEDIR)/wx-$(WX_RELEASE)$(WX_FLAVOUR)
|
||||
</install-to>
|
||||
</data-files-tree>
|
||||
|
||||
<!-- Locales: -->
|
||||
<using module="gettext"/>
|
||||
<gettext-catalogs id="locale">
|
||||
<srcdir>$(SRCDIR)/locale</srcdir>
|
||||
<catalog-name>wxstd-$(WX_RELEASE)</catalog-name>
|
||||
<linguas>
|
||||
af an ar ca ca@valencia co cs da de el es eu fa_IR fi fr
|
||||
gl_ES hi hr hu id it ja ka ko_KR lt lv ms nb ne nl pl pt
|
||||
pt_BR ro ru sk sl sq sr sv ta tr uk vi zh_CN zh_TW
|
||||
</linguas>
|
||||
<install-to>$(LOCALEDIR)</install-to>
|
||||
</gettext-catalogs>
|
||||
</if>
|
||||
|
||||
|
||||
<!-- copy setup.h on DOS/Windows if the format supports it: -->
|
||||
<if cond="FORMAT!='autoconf' and IS_MSVC_PRJ=='0'">
|
||||
<mkdir id="libdir">
|
||||
<dir>$(LIBDIRNAME)</dir>
|
||||
</mkdir>
|
||||
<mkdir id="libdir_setup">
|
||||
<depends>libdir</depends>
|
||||
<dir>$(SETUPHDIR)</dir>
|
||||
</mkdir>
|
||||
<mkdir id="libdir_setup_wx">
|
||||
<depends>libdir_setup</depends>
|
||||
<dependency-of>setup_h</dependency-of>
|
||||
<dir>$(SETUPHDIR)/wx</dir>
|
||||
</mkdir>
|
||||
|
||||
<set var="SETUP_H_SUBDIR">
|
||||
<if cond="WXUNIV=='1'">univ</if>
|
||||
<if cond="WXUNIV=='0'">$(TOOLKIT_LOWERCASE)</if>
|
||||
</set>
|
||||
|
||||
<copy-file-to-file-if-not-exist id="setup.h">
|
||||
<dependency-of>setup_h</dependency-of>
|
||||
<src>$(SRCDIR)/include/wx/$(SETUP_H_SUBDIR)/setup.h</src>
|
||||
<dst>$(SETUPHDIR)/wx/setup.h</dst>
|
||||
</copy-file-to-file-if-not-exist>
|
||||
</if>
|
||||
|
||||
|
||||
<!-- create rcdefs.h on Windows: -->
|
||||
<if cond="FORMAT in ['borland','mingw','msvc','watcom']">
|
||||
|
||||
<mkdir id="libdir_setup_wx_msw">
|
||||
<depends>libdir_setup_wx</depends>
|
||||
<dir>$(SETUPHDIR)/wx/msw</dir>
|
||||
</mkdir>
|
||||
|
||||
<action id="rcdefs.h">
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<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>
|
||||
$(DOLLAR)(CPP) $(DOLLAR)(CPPFLAGS) "$(nativePaths(SRCDIR))\include\wx\msw\genrcdefs.h" > "$(SETUPHDIR)\wx\msw\rcdefs.h"
|
||||
</command>
|
||||
|
||||
</action>
|
||||
|
||||
</if>
|
||||
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
|
||||
<!-- Show this banner after installation: -->
|
||||
<modify-target target="install">
|
||||
<command>
|
||||
@echo " "
|
||||
@echo " ------------------------------------------------------"
|
||||
@echo " "
|
||||
@echo " The installation of wxWidgets is finished. On certain"
|
||||
@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 " "
|
||||
@echo " wxWidgets comes with no guarantees and doesn't claim"
|
||||
@echo " to be suitable for any purpose."
|
||||
@echo " "
|
||||
@echo " Read the wxWindows Licence on licencing conditions."
|
||||
@echo " "
|
||||
@echo " ------------------------------------------------------"
|
||||
@echo " "
|
||||
</command>
|
||||
</modify-target>
|
||||
|
||||
<!-- add "make dist" target to autoconf: -->
|
||||
<set var="VARS_DONT_ELIMINATE" append="1">
|
||||
ALL_PORTS_BASE_HEADERS ALL_BASE_SOURCES WX_VERSION
|
||||
</set>
|
||||
<fragment format="autoconf" file="make_dist.mk"/>
|
||||
|
||||
</if>
|
||||
|
||||
<include file="build_cfg.bkl"/>
|
||||
|
||||
</makefile>
|
||||
@@ -0,0 +1,266 @@
|
||||
-----------------------------------------------------------------------
|
||||
Creating a Cross-Platform Build System Using Bakefile
|
||||
The 10-minute, do-it-yourself wx project baking guide (with free sample recipes!)
|
||||
|
||||
Status: DRAFT
|
||||
Author: Kevin Ollivier
|
||||
Date: 2/13/04
|
||||
Licence: wxWindows Licence
|
||||
-----------------------------------------------------------------------
|
||||
|
||||
Supporting many different platforms can be a difficult challenge. The
|
||||
challenge for wxWidgets is especially great, because it supports a variety of
|
||||
different compilers and development environments, including MSVC, Borland C++,
|
||||
MinGW, DevCPP, GNU make/automake, among others. Maintaining such a large
|
||||
number of different project files and formats can quickly become overwhelming.
|
||||
To simplify the maintenance of these formats, one of the wxWidgets developers,
|
||||
Vaclav Slavik, created Bakefile, a XML-based makefile wrapper that generates
|
||||
all the native project files for wxWidgets. So now, even though wxWidgets
|
||||
supports all these formats, wxWidgets developers need only update one file -
|
||||
the Bakefile, and it handles the rest. But Bakefile isn't specific to
|
||||
wxWidgets in any way - you can use Bakefile for your own projects, too. This
|
||||
brief tutorial will take a look at how to do that.
|
||||
|
||||
Note that this tutorial assumes that you are familiar with how to build
|
||||
software using one of the supported Bakefile makefile systems, that you have
|
||||
some basic familiarity with how makefiles work, and that you are capable of
|
||||
setting environment variables on your platform. Also note that the terms Unix
|
||||
and Unix-based refers to all operating systems that share a Unix heritage,
|
||||
including FreeBSD, Linux, Mac OS X, and various other operating systems.
|
||||
|
||||
-- Getting Started --
|
||||
|
||||
First, you'll need to install Bakefile. You can always find the latest version
|
||||
for download online at http://www.bakefile.org. A binary installer is provided
|
||||
for Windows users, while users of Unix-based operating systems (OS) will need
|
||||
to unpack the tarball and run configure && make && make install. (binary
|
||||
packages for some Linux distributions are also available, check
|
||||
http://www.bakefile.org/download.html for details).
|
||||
|
||||
-- Setting Up Your wx Build Environment --
|
||||
|
||||
Before you can build wxWidgets software using Bakefile or any other build
|
||||
system, you need to make sure that wxWidgets is built and that wxWidgets
|
||||
projects can find the wxWidgets includes and library files. wxWidgets build
|
||||
instructions can be found by going to the docs subfolder, then looking for the
|
||||
subfolder that corresponds to your platform (i.e. msw, gtk, mac) and reading
|
||||
"install.txt" there. Once you've done that, here are some extra steps you
|
||||
should take to make sure your Bakefile projects work with wxWidgets:
|
||||
|
||||
On Windows
|
||||
----------
|
||||
Once you've built wxWidgets, you should create an environment variable named
|
||||
WXWIN and set it to the home folder of your wxWidgets source tree. (If you use
|
||||
the command line to build, you can also set or override WXWIN at build time by
|
||||
passing it in as an option to your makefile.)
|
||||
|
||||
On Unix
|
||||
-------
|
||||
In a standard install, you need not do anything so long as wx-config is on
|
||||
your PATH. wx-config is all you need. (See the section of the book on using
|
||||
wx-config for more information.)
|
||||
|
||||
-- A Sample wx Project Bakefile --
|
||||
|
||||
Now that everything is setup, it's time to take Bakefile for a test run. I
|
||||
recommend that you use the wx sample Bakefile to get you started. It can be
|
||||
found in the 'build/bakefiles/wxpresets/sample' directory in the wxWidgets
|
||||
source tree. Here is the minimal.bkl Bakefile used in the sample:
|
||||
|
||||
minimal.bkl
|
||||
-------------------------------------------------------------
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<include file="presets/wx.bkl"/>
|
||||
|
||||
<exe id="minimal" template="wxgui">
|
||||
<debug-info>on</debug-info>
|
||||
<runtime-libs>dynamic</runtime-libs>
|
||||
|
||||
<sources>minimal.cpp</sources>
|
||||
|
||||
<wx-lib>core</wx-lib>
|
||||
<wx-lib>base</wx-lib>
|
||||
</exe>
|
||||
|
||||
</makefile>
|
||||
---------------------------------------------------------------
|
||||
|
||||
It's a complete sample ready to be baked, so go into the directory mentioned
|
||||
above and run the following command:
|
||||
|
||||
On Windows:
|
||||
bakefile -f msvc -I.. minimal.bkl
|
||||
|
||||
On Unix:
|
||||
bakefile -f gnu -I.. minimal.bkl
|
||||
|
||||
It should generate a makefile (makefile.vc or GNUmakefile, respectively) which
|
||||
you can use to build the software. Just build the software using the command
|
||||
"nmake -f makefile.vc" or "make -f GNUmakefile" respectively. Now let's take a
|
||||
look at some of the basic Bakefile concepts that you'll need to know to move
|
||||
on from here.
|
||||
|
||||
-- Project Types --
|
||||
|
||||
As mentioned earlier, Bakefile builds makefiles for many different
|
||||
development environments. The -f option accepts a list of formats that you
|
||||
would like to build, separated by commas. Valid values are:
|
||||
|
||||
autoconf GNU autoconf Makefile.in files
|
||||
borland Borland C/C++ makefiles
|
||||
gnu GNU toolchain makefiles (Unix)
|
||||
mingw MinGW makefiles (mingw32-make)
|
||||
msvc MS Visual C++ nmake makefiles
|
||||
|
||||
TIP: autoconf Project Type
|
||||
---------------------------
|
||||
You may notice that in the sample folder, there is also a file called
|
||||
configure.ac. That file is the input for autoconf, which creates the configure
|
||||
scripts that you often see when you build software from source on Unix-based
|
||||
platforms. People use configure scripts because they make your Unix makefiles
|
||||
more portable by automatically detecting the right libraries and commands to
|
||||
use on the user's machine and OS. This is necessary because there are many
|
||||
Unix-based operating systems and they all are slightly different in various
|
||||
small ways.
|
||||
|
||||
Bakefile does not generate a configure or configure.ac script, so if you want
|
||||
to use configure scripts with your Unix-based software, you will need to learn
|
||||
how to use autoconf. Unfortunately, this topic deserves a book all its own and
|
||||
is beyond the scope of this tutorial, but a book on the subject can be found
|
||||
online at: http://sources.redhat.com/autobook/. Note that you do not need to
|
||||
use automake when you are using Bakefile, just autoconf, as Bakefile
|
||||
essentially does the same thing as automake.
|
||||
----------------------------
|
||||
|
||||
-- Targets --
|
||||
|
||||
Every project needs to have a target or targets, specifying what is to be
|
||||
built. In Bakefile, you specify the target by creating a tag named with the
|
||||
target type. The possible names for targets are:
|
||||
|
||||
exe create an executable file
|
||||
dll create a shared library
|
||||
lib create a static library
|
||||
module create a library that is loaded at runtime (i.e. a plugin)
|
||||
|
||||
Note the sample above is an "exe" target. Once you create the target, all the
|
||||
build settings, including flags and linker options, should be placed inside
|
||||
the target tag, as they are in the sample above.
|
||||
|
||||
-- Adding Sources and Includes --
|
||||
|
||||
Obviously, you need to be able to add source and include files to your
|
||||
project. You add sources using the "<sources>" tag (as shown above), and add
|
||||
include directories using the "<include>" tag. You can add multiple <sources>
|
||||
and <include> tags to add multiple source files, or you can also add multiple
|
||||
sources and includes into one tag by separating them with a space, like so:
|
||||
|
||||
<sources>minimal.cpp minimal2.cpp minimal3.cpp</sources>
|
||||
|
||||
If your sources are in a subfolder of your Bakefile, you use the slash "/"
|
||||
character to denote directories, even on Windows. (i.e. src/minimal.cpp) For
|
||||
more options and flags, please consult the Bakefile documentation in the 'doc'
|
||||
subfolder of Bakefile, or you can also find it on the Bakefile web site.
|
||||
|
||||
-- Build Options --
|
||||
|
||||
What if you want to offer a DEBUG and a RELEASE build?
|
||||
You can do this in Bakefile by creating options. To create an option,
|
||||
use the "<option>" tag. A typical option has three important parts: a name, a
|
||||
default value, and a comma-separated list of values. For example, here is how
|
||||
to create a DEBUG option which builds debug by default:
|
||||
|
||||
<option name="DEBUG">
|
||||
<default-value>1</default-value>
|
||||
<values>0 1</values>
|
||||
</option>
|
||||
|
||||
You can then test the value of this option and conditionally set build
|
||||
settings, flags, etc. For more information on both options and conditional
|
||||
statements, please refer to the Bakefile documentation.
|
||||
|
||||
-- Bakefile Presets/Templates and Includes --
|
||||
|
||||
It is common that most projects will reuse certain settings, or options, in
|
||||
their makefiles. (i.e. DEBUG or static/dynamic library options) Also, it is
|
||||
common to have to use settings from another project; for example, any project
|
||||
that uses wxWidgets will need to build using the same flags and options that
|
||||
wxWidgets was built with. Bakefile makes these things easier by allowing users
|
||||
to create Bakefile templates, where you can store common settings.
|
||||
|
||||
Bakefile ships with a couple of templates, found in the 'presets' subfolder of
|
||||
your Bakefile installation. The "simple.bkl" template adds a DEBUG option to
|
||||
makefiles so you can build in release or debug mode. To add this template to
|
||||
your project, simply add the tag "<include file="presets/simple.bkl"/>" to the
|
||||
top of your Bakefile. Then, when creating your target, add the
|
||||
"template="simple"" attribute to it. Now, once you build the makefile, your
|
||||
users can write commands like:
|
||||
|
||||
nmake -f makefile.vc DEBUG=1
|
||||
|
||||
or
|
||||
|
||||
make -f GNUmakefile DEBUG=1
|
||||
|
||||
In order to build the software in debug mode.
|
||||
|
||||
To simplify the building of wxWidgets-based projects, wxWidgets contains a
|
||||
set of Bakefiles that automatically configure your build system to be
|
||||
compatible with wxWidgets. As you'll notice in the sample above, the sample
|
||||
project uses the "wxgui" template. Once you've included the template, your software
|
||||
will now build as a GUI application with wxWidgets support.
|
||||
|
||||
There's also "wxconsole" template for building console-based wxWidgets applications
|
||||
and "wx" template that doesn't specify application type (GUI or console) and can be
|
||||
used e.g. for building libraries that use wxWidgets.
|
||||
|
||||
But since the wx presets don't exist in the Bakefile presets subfolder,
|
||||
Bakefile needs to know where to find these presets. The "-I" command adds the
|
||||
wxpresets folder to Bakefile's search path.
|
||||
|
||||
If you regularly include Bakefile presets in places other than the Bakefile
|
||||
presets folder, then you can set the BAKEFILE_PATHS environment variable so
|
||||
that Bakefile can find these Bakefiles and include them in your project. This
|
||||
way you no longer need to specify the -I flag each time you build.
|
||||
|
||||
Lastly, it's important to note that the Win 32 wx project Bakefiles come with
|
||||
some common build options that users can use when building the software. These
|
||||
options are:
|
||||
|
||||
Option Values Description
|
||||
------ ------ -------------
|
||||
WX_MONOLITHIC 0(default),1 Set this to 1 if you built wx
|
||||
as a monolithic library
|
||||
WX_SHARED 0(default),1 Specify static or dynamic wx libs
|
||||
WX_DEBUG 0,1(default) Use release or debug wx libs
|
||||
*WX_VERSION 25,26(default) Specify version of wx libs
|
||||
|
||||
*Note: Any version of wx past 2.5 will be allowed here, so 25/26 is not a
|
||||
complete list of values.
|
||||
|
||||
These options are not needed under Unix as wx-config can be used to specify
|
||||
these options.
|
||||
|
||||
-- bakefile_gen - Automated Bakefile Scripts --
|
||||
|
||||
If you have a large project, you can imagine that the calls to Bakefile would
|
||||
get more and more complex and unwieldy to manage. For this reason, a script
|
||||
called bakefile_gen was created, which reads in a .bkgen file that provides
|
||||
all the commands needed to build all the makefiles your project supports. A
|
||||
discussion of how to use bakefile_gen is beyond the scope of this tutorial,
|
||||
but it deserves mention because it can be invaluable to large projects.
|
||||
Documentation on bakefile_gen can be found in the Bakefile documentation.
|
||||
|
||||
-- Conclusion --
|
||||
|
||||
This concludes our basic tutorial of the cross-platform Bakefile build system
|
||||
management tool. From here, please be sure to take a good look at the Bakefile
|
||||
documentation to see what else it is capable of. Please post questions to the
|
||||
bakefile-devel@lists.sourceforge.net list, or if you have questions specific
|
||||
to the wx template Bakefile, send an email to the wxWidgets users mailing list:
|
||||
https://www.wxwidgets.org/support/mailing-lists/
|
||||
|
||||
Enjoy using Bakefile!
|
||||
@@ -0,0 +1,63 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT([libsample],[1.2.5],[vslavik@fastmail.fm])
|
||||
AC_CONFIG_SRCDIR([libsample.cpp])
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl DEFINE CONFIGURE OPTIONS
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
dnl define all the wx-config related options
|
||||
dnl (i.e. --with-wxdir, --with-wx-config, --with-wx-prefix, --with-wx-exec-prefix)
|
||||
WX_CONFIG_OPTIONS
|
||||
|
||||
dnl define all the wxpresets related options
|
||||
WX_STANDARD_OPTIONS([debug,unicode,shared,toolkit,wxshared])
|
||||
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CONFIGURE CHECKS
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
dnl these checks are required by bakefile:
|
||||
AC_CANONICAL_SYSTEM
|
||||
AC_PROG_AWK
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_PROG_CXXCPP
|
||||
|
||||
dnl we want to always have DEBUG==WX_DEBUG
|
||||
WX_DEBUG=$DEBUG
|
||||
|
||||
dnl the following macros will search for the best matching wxWidgets build
|
||||
dnl (taking in count the values of the --enable-debug|unicode|shared and of
|
||||
dnl the --with-toolkit|wxshared options) and then set appropriately all the
|
||||
dnl WX_* options
|
||||
WX_CONVERT_STANDARD_OPTIONS_TO_WXCONFIG_FLAGS
|
||||
WX_CONFIG_CHECK([2.8.0], [wxWin=1],,[core,base],[$WXCONFIG_FLAGS])
|
||||
WX_DETECT_STANDARD_OPTION_VALUES
|
||||
|
||||
dnl here all WX_* option values are available for your own processing...
|
||||
|
||||
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CONFIGURE END
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
AC_BAKEFILE([m4_include(autoconf_inc.m4)])
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
||||
|
||||
|
||||
dnl show a nice summary of the chosen build settings to the user
|
||||
WX_STANDARD_OPTIONS_SUMMARY_MSG_BEGIN
|
||||
WX_STANDARD_OPTIONS_SUMMARY_MSG_END
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<!-- a typical nice feature which wxpresets make available to wx-based programs
|
||||
is to allow the user to build with different configurations those programs;
|
||||
this is achieved in few fundamental steps:
|
||||
|
||||
1) set a different BUILDDIR for different build configurations
|
||||
2) set different output dirs for the libraries built with a
|
||||
different shared/static setting
|
||||
3) set different output names for the libraries built with
|
||||
different unicode/ansi and release/debug settings
|
||||
-->
|
||||
<include file="presets/wx.bkl"/>
|
||||
|
||||
<!-- the following line implements step #1: -->
|
||||
<set-wxlike-builddir/>
|
||||
|
||||
<!-- through the use of the 'wx-lib' and 'wxlike' templates, we'll get
|
||||
the ability to compile against any wxWidgets build using, for our
|
||||
program, the same configuration of the selected wxWidgets build.
|
||||
-->
|
||||
<template id="my" template="wx-lib,wxlike">
|
||||
<!-- wxlike-dirname implements step #2 (see initial comment) -->
|
||||
<wxlike-dirname>lib</wxlike-dirname>
|
||||
|
||||
<sources>libsample.cpp</sources>
|
||||
</template>
|
||||
|
||||
|
||||
<lib id="static" template="my" cond="WX_SHARED=='0'">
|
||||
<!-- wxlike-libname implements step #3 (see initial comment) -->
|
||||
<wxlike-libname prefix='sample'>test</wxlike-libname>
|
||||
</lib>
|
||||
|
||||
<dll id="shared" template="my" cond="WX_SHARED=='1'">
|
||||
<!-- wxlike-dllname does step #3 (see initial comment) -->
|
||||
<wxlike-dllname prefix='sample'>test</wxlike-dllname>
|
||||
<define>WXMAKINGDLL_LIBSAMPLE</define>
|
||||
|
||||
<wx-lib>core</wx-lib>
|
||||
<wx-lib>base</wx-lib>
|
||||
</dll>
|
||||
|
||||
</makefile>
|
||||
@@ -0,0 +1,36 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: libsample.cpp
|
||||
// Purpose: The source of a dummy sample wx-based library
|
||||
// Author: Francesco Montorsi
|
||||
// Created: 26/11/06
|
||||
// Copyright: (c) Francesco Montorsi
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// ============================================================================
|
||||
// declarations
|
||||
// ============================================================================
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
|
||||
// for all others, include the necessary headers (this file is usually all you
|
||||
// need because it includes almost all "standard" wxWindows headers)
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
// ============================================================================
|
||||
// implementation
|
||||
// ============================================================================
|
||||
|
||||
void MyUtilityFunction()
|
||||
{
|
||||
wxPrintf(wxT("Hello world!\n"));
|
||||
fflush(stdout);
|
||||
}
|
||||
533
libs/wxWidgets-3.3.1/build/bakefiles/wxpresets/presets/wx.bkl
Normal file
533
libs/wxWidgets-3.3.1/build/bakefiles/wxpresets/presets/wx.bkl
Normal file
@@ -0,0 +1,533 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<!--
|
||||
Presets for building wxWidgets applications.
|
||||
|
||||
These presets provide the following "public" interface:
|
||||
|
||||
OPTIONS:
|
||||
|
||||
- WX_* : used to let the user of the generated makefile choose a wxWidgets
|
||||
build among those available; you can use them in your project to
|
||||
e.g. build a target only if WX_SHARED is 0 or if WX_PORT is "msw".
|
||||
|
||||
|
||||
VARIABLES:
|
||||
|
||||
- WXLIBPOSTFIX: contains the [u][d] string which is typically useful when
|
||||
defining names of directories/files which should coexist
|
||||
with other builds using different wxWidgets configurations.
|
||||
|
||||
|
||||
TEMPLATES:
|
||||
|
||||
- wx, wx-lib: templates to be used respectively for <dll>/<exe> and <lib>
|
||||
targets; they add all the wxWidgets-related settings (e.g. the
|
||||
include and library search paths, the necessary preprocessor
|
||||
symbols, etc).
|
||||
|
||||
- wxgui: to be used when building GUI-mode applications.
|
||||
|
||||
- wxconsole: to be used when building console-only applications
|
||||
(NOTE: it doesn't add the wxUSE_GUI=0 define since you don't
|
||||
need it when compiling wxBase-only code).
|
||||
|
||||
- wxlike: this template should be combined with "wx" or "wx-lib" and will
|
||||
make your project build with the same Unicode & shared
|
||||
config as the wxWidgets build selected using the WX_* options.
|
||||
|
||||
|
||||
TARGET TAGS:
|
||||
|
||||
- <wx-lib>: to define which wxWidgets libraries to link with;
|
||||
please note that you should use them in the right order or
|
||||
linking under Unix would result in errors, e.g.
|
||||
|
||||
<wx-lib>core</wx-lib>
|
||||
<wx-lib>base</wx-lib>
|
||||
|
||||
is correct, but the reverse is not (if lib A depends on lib B, then
|
||||
lib A must be listed before B). So <wx-lib>base</wx-lib>
|
||||
(which must always be present) should be the last wx-lib tag.
|
||||
|
||||
- <wxlike-libname>,
|
||||
<wxlike-dllname>: useful if you want to have a build logic similar to the
|
||||
wxWidgets build logic which allows different builds to
|
||||
coexist without conflicts. These tags helps you to name
|
||||
libraries using the same wxWidgets rules and thus avoid
|
||||
conflicts between libraries compiled in e.g. Unicode,
|
||||
shared mode and those compiled in ANSI, shared mode &c.
|
||||
|
||||
- <wxlike-lib>: if your library/application needs to link with both
|
||||
wxWidgets and some other wx-based library, which in turn
|
||||
follows the wxWidgets naming conventions, then this tag is
|
||||
what you need to reference the wx-based additional library.
|
||||
|
||||
- <wxlike-dirname>: sets the output directory for the current target to $(value)
|
||||
when on Unix and to e.g. $(value)/vc_lib when on Windows,
|
||||
i.e. acts like <dirname> just following wxWidgets naming rules.
|
||||
Useful to allow multiple builds of the
|
||||
|
||||
- <wxlike-paths>: if your library/application needs to compile & link with both
|
||||
wxWidgets and some other wx-based library, which in turn
|
||||
follows the wxWidgets naming conventions, then this tag is
|
||||
what you need to add to the compiler and linker flags the paths
|
||||
of the "include" and "lib" folders of the wx-based additional library.
|
||||
|
||||
|
||||
GLOBAL TAGS:
|
||||
|
||||
- <set-wxlike-builddir>: sets BUILDDIR using wxWidgets naming rules to help
|
||||
to keep object files compiled with different
|
||||
settings separate.
|
||||
|
||||
- <set-wxlike>: sets a variable with the name of a library named with the same
|
||||
wxWidgets rules.
|
||||
|
||||
|
||||
NOTE: as a reference here is a list of all wxWidgets libraries satisfying
|
||||
the dependency constraints mentioned in <wx-lib> description:
|
||||
|
||||
<wx-lib>webview</wx-lib>
|
||||
<wx-lib>richtext</wx-lib>
|
||||
<wx-lib>aui</wx-lib>
|
||||
<wx-lib>ribbon</wx-lib>
|
||||
<wx-lib>propgrid</wx-lib>
|
||||
<wx-lib>stc</wx-lib>
|
||||
<wx-lib>qa</wx-lib>
|
||||
<wx-lib>gl</wx-lib>
|
||||
<wx-lib>xrc</wx-lib>
|
||||
<wx-lib>html</wx-lib>
|
||||
<wx-lib>media</wx-lib>
|
||||
<wx-lib>net</wx-lib>
|
||||
<wx-lib>xml</wx-lib>
|
||||
<wx-lib>core</wx-lib>
|
||||
<wx-lib>base</wx-lib>
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<makefile>
|
||||
|
||||
<requires version="0.2.2"/>
|
||||
|
||||
<using module="wx_presets"/>
|
||||
|
||||
<!-- this variable identifies the version of the wx presets.
|
||||
this is changed only when major changes to wxpresets take place.
|
||||
-->
|
||||
<set var="WX_PRESETS_VERSION">4</set>
|
||||
|
||||
<!-- list of known libraries used by wx-lib tag defined in wx_unix.bkl and wx_win32.bkl
|
||||
VERY IMPORTANT: when updating this list also update the <wx-lib> and <wx-all-libs>
|
||||
tag definitions.
|
||||
-->
|
||||
<set var="WX_LIB_LIST">
|
||||
base core net xml xrc html adv media gl qa aui ribbon propgrid richtext stc webview
|
||||
</set>
|
||||
|
||||
<!-- if you define this variable to 0 before including wx presets, the
|
||||
"test_for_selected_wxbuild" target which is added by default in win32 and GNU
|
||||
makefiles, won't be added.
|
||||
This is useful when e.g. you want to have wxWidgets as an optional
|
||||
dependency and thus you don't want to perform that check unconditionally.
|
||||
-->
|
||||
<set var="WX_TEST_FOR_SELECTED_WXBUILD" overwrite="0">
|
||||
1
|
||||
</set>
|
||||
|
||||
<!-- OPTIONS -->
|
||||
<!-- -->
|
||||
<!-- These are essentially the configurations you -->
|
||||
<!-- want in bakefile. -->
|
||||
<!-- -->
|
||||
<!-- In MSVC these are the different build -->
|
||||
<!-- configurations you can have (in the build menu), -->
|
||||
<!-- and in autoconf is enabled with enable-xxx=xx. -->
|
||||
<!-- For other compilers a separate configuration -->
|
||||
<!-- file is created (such as config.gcc on gcc) -->
|
||||
<!-- which has several options a user can modify. -->
|
||||
<!-- -->
|
||||
<!-- Note that the above only happens if an option -->
|
||||
<!-- is not constant, i.e. if it cannot be determined -->
|
||||
<!-- by bakefile itself. -->
|
||||
<!-- Also note that for 'autoconf' format these options -->
|
||||
<!-- are only useful when used together with wxpresets.m4 -->
|
||||
<!-- macro file which contains macros for detecting the -->
|
||||
<!-- option values for wx-based projects. See wxpresets.m4 -->
|
||||
<!-- comments for more info. -->
|
||||
|
||||
|
||||
<!-- 'gnu' format needs to redefine the following options later in wx_unix.bkl -->
|
||||
<if cond="FORMAT=='gnu'">
|
||||
<set var="WX_UNICODE"/>
|
||||
<set var="WX_SHARED"/>
|
||||
<set var="WX_PORT"/>
|
||||
<set var="WX_VERSION"/>
|
||||
</if>
|
||||
|
||||
|
||||
<!-- This is a standard option that determines -->
|
||||
<!-- whether the user wants to build this library as -->
|
||||
<!-- a dll or as a static library. -->
|
||||
<if cond="not isdefined('WX_SHARED')">
|
||||
<set var="WX_SHARED_DEFAULT" overwrite="0">0</set>
|
||||
<option name="WX_SHARED">
|
||||
<values>0,1</values>
|
||||
<values-description>Static,DLL</values-description>
|
||||
<default-value>$(WX_SHARED_DEFAULT)</default-value>
|
||||
<description>
|
||||
Use DLL build of wx library?
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
|
||||
<!-- Configuration for building the bakefile with -->
|
||||
<!-- unicode strings or not (unicode or ansi). -->
|
||||
<if cond="not isdefined('WX_UNICODE')">
|
||||
<set var="WX_UNICODE_DEFAULT" overwrite="0">1</set>
|
||||
<option name="WX_UNICODE">
|
||||
<values>0,1</values>
|
||||
<values-description>ANSI,Unicode</values-description>
|
||||
<default-value>$(WX_UNICODE_DEFAULT)</default-value>
|
||||
<description>
|
||||
Use Unicode build of wxWidgets?
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
|
||||
<if cond="not isdefined('WX_DEBUG')">
|
||||
<set var="WX_DEBUG_DEFAULT" overwrite="0">1</set>
|
||||
<option name="WX_DEBUG">
|
||||
<values>0,1</values>
|
||||
<values-description>Release,Debug</values-description>
|
||||
<default-value>$(WX_DEBUG_DEFAULT)</default-value>
|
||||
<description>
|
||||
Use debug build of wxWidgets (linked with debug CRT)?
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
|
||||
<if cond="not isdefined('WX_VERSION')">
|
||||
<set var="WX_VERSION_DEFAULT" overwrite="0">31</set>
|
||||
<option name="WX_VERSION">
|
||||
<default-value>$(WX_VERSION_DEFAULT)</default-value>
|
||||
<description>
|
||||
Version of the wx library to build against.
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
|
||||
<if cond="not isdefined('WX_MONOLITHIC')">
|
||||
<set var="WX_MONOLITHIC_DEFAULT" overwrite="0">0</set>
|
||||
<option name="WX_MONOLITHIC">
|
||||
<values>0,1</values>
|
||||
<values-description>Multilib,Monolithic</values-description>
|
||||
<default-value>$(WX_MONOLITHIC_DEFAULT)</default-value>
|
||||
<description>
|
||||
Use monolithic build of wxWidgets?
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
|
||||
<!-- The directory where wxWidgets is installed: -->
|
||||
<if cond="not isdefined('WX_DIR')">
|
||||
<set var="WX_DIR_DEFAULT" overwrite="0">$(DOLLAR)(WXWIN)</set>
|
||||
<option name="WX_DIR" category="path" never_empty="1">
|
||||
<default-value>$(WX_DIR_DEFAULT)</default-value>
|
||||
<description>
|
||||
The directory where wxWidgets library is installed
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
<!-- HELPER VARIABLES -->
|
||||
<!-- -->
|
||||
|
||||
<!-- These are handy ways of dealing with the -->
|
||||
<!-- extensions in the library names of the -->
|
||||
<!-- wxWindows library. -->
|
||||
<set var="WXLIBPOSTFIX">
|
||||
<if cond="WX_DEBUG=='1' and WX_UNICODE=='1'">ud</if>
|
||||
<if cond="WX_DEBUG=='1' and WX_UNICODE=='0'">d</if>
|
||||
<if cond="WX_DEBUG=='0' and WX_UNICODE=='1'">u</if>
|
||||
</set>
|
||||
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="COMPILER_PREFIX" make_var="1">$(COMPILER)</set>
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- REAL IMPLEMENTATION -->
|
||||
<!-- -->
|
||||
|
||||
<set var="__wx_included_impl">0</set>
|
||||
|
||||
<if cond="FORMAT in ['autoconf','gnu']">
|
||||
<include file="wx_unix.bkl"/>
|
||||
<set var="__wx_included_impl">1</set>
|
||||
</if>
|
||||
|
||||
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
|
||||
<include file="wx_win32.bkl"/>
|
||||
<set var="__wx_included_impl">1</set>
|
||||
</if>
|
||||
|
||||
<if cond="FORMAT=='xcode2'">
|
||||
<!-- xCode2 is an IDE and thus reuses almost nothing from unix part of wxpresets;
|
||||
better use the win32 part! -->
|
||||
<include file="wx_win32.bkl"/>
|
||||
<set var="__wx_included_impl">1</set>
|
||||
</if>
|
||||
|
||||
<if cond="__wx_included_impl=='0'">
|
||||
<error>This format is not (yet) supported by wx preset.</error>
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- HIGH-LEVEL TEMPLATE -->
|
||||
<!-- -->
|
||||
|
||||
<!-- Combine 'wxlike' with 'wx' or 'wx-lib' templates to have your
|
||||
project build in the same configuration used by the selected
|
||||
wxWidgets build -->
|
||||
<template id="wxlike">
|
||||
<!-- WX_DEBUG-dependent -->
|
||||
<set var="_OPT">
|
||||
<if cond="WX_DEBUG=='1'">off</if>
|
||||
<if cond="WX_DEBUG=='0'">speed</if>
|
||||
</set>
|
||||
<set var="_DEBUGINFO">
|
||||
<if cond="WX_DEBUG=='1'">on</if>
|
||||
<if cond="WX_DEBUG=='0'">off</if>
|
||||
</set>
|
||||
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<optimize>$(_OPT)</optimize>
|
||||
<debug-info>$(_DEBUGINFO)</debug-info>
|
||||
</if>
|
||||
</template>
|
||||
|
||||
<!-- Template for building wx-based GUI applications -->
|
||||
<template id="wxgui" template="wx">
|
||||
<app-type>gui</app-type>
|
||||
</template>
|
||||
|
||||
<!-- Template for building wx-based console applications -->
|
||||
<template id="wxconsole" template="wx">
|
||||
<app-type>console</app-type>
|
||||
</template>
|
||||
|
||||
|
||||
|
||||
<!-- UTILITY TAGS -->
|
||||
<!-- -->
|
||||
|
||||
<!-- private helper tag: does the same thing as for <set-wxlike> except that:
|
||||
- the variable created is always named "__temp"
|
||||
- can be used (only) inside targets as this is a non-global tag
|
||||
-->
|
||||
<define-tag name="__setlibname" rules="lib,dll,module,exe">
|
||||
<set var="__temp">
|
||||
<if cond="FORMAT!='autoconf' and FORMAT!='gnu'">
|
||||
$(attributes['prefix'])_$(WX_PORT)$(WX_VERSION)$(WXLIBPOSTFIX)_$(value)
|
||||
</if>
|
||||
<if cond="FORMAT=='autoconf' or FORMAT=='gnu'">
|
||||
$(attributes['prefix'])_$(WX_PORT)$(WXLIBPOSTFIX)_$(value)-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR)
|
||||
</if>
|
||||
</set>
|
||||
</define-tag>
|
||||
|
||||
<!-- A simple tag which helps you to define a library name using the same rules used
|
||||
by wxWidgets. Use the 'prefix' attribute to add your lib's prefix.
|
||||
E.g.:
|
||||
<wxlike-libname prefix='mylib'>module1</wxlike-libname>
|
||||
<wxlike-libname prefix='mylib'>module2</wxlike-libname>
|
||||
-->
|
||||
<define-tag name="wxlike-libname" rules="lib">
|
||||
<__setlibname prefix="$(attributes['prefix'])">$(value)</__setlibname>
|
||||
<libname>$(__temp)</libname>
|
||||
</define-tag>
|
||||
|
||||
<!-- exactly like <wxlike-libname> but this one sets the DLL name (and the DLL lib import name)
|
||||
and thus must be used only inside a <dll> target...
|
||||
-->
|
||||
<define-tag name="wxlike-dllname" rules="dll,module">
|
||||
<__setlibname prefix="$(attributes['prefix'])">$(value)</__setlibname>
|
||||
<libname>$(__temp)</libname>
|
||||
<dllname>$(__temp)</dllname>
|
||||
</define-tag>
|
||||
|
||||
<!-- Links against a library which uses the same wxWidgets conventions.
|
||||
-->
|
||||
<define-tag name="wxlike-lib" rules="exe,lib,dll,module">
|
||||
<__setlibname prefix="$(attributes['prefix'])">$(value)</__setlibname>
|
||||
<sys-lib>$(__temp)</sys-lib>
|
||||
</define-tag>
|
||||
|
||||
<!-- Sets as output folder for the current target a directory
|
||||
called "$(value)/$(COMPILER_PREFIX)_lib|dll", just like wxWidgets does.
|
||||
This makes it possible to keep separated the libraries/exes compiled with
|
||||
different compilers and with a different value for WX_SHARED.
|
||||
-->
|
||||
<define-tag name="wxlike-dirname" rules="lib,dll,exe,module">
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="_DIRNAME_SHARED_SUFFIX">
|
||||
<if cond="WX_SHARED=='0'">lib</if>
|
||||
<if cond="WX_SHARED=='1'">dll</if>
|
||||
</set>
|
||||
<set var="_DIRNAME">
|
||||
$(value)/$(COMPILER_PREFIX)_$(_DIRNAME_SHARED_SUFFIX)
|
||||
</set>
|
||||
|
||||
<dirname>$(_DIRNAME)</dirname>
|
||||
|
||||
<if cond="FORMAT_SUPPORTS_ACTIONS=='1'">
|
||||
<set var="__mkdir_tgt">make_dir_$(id)</set>
|
||||
|
||||
<add-target target="$(__mkdir_tgt)" type="action"/>
|
||||
<modify-target target="$(__mkdir_tgt)">
|
||||
<command cond="TOOLSET=='unix'">
|
||||
@mkdir -p $(_DIRNAME)
|
||||
</command>
|
||||
<command cond="TOOLSET in ['win32','dos']">
|
||||
if not exist $(nativePaths(_DIRNAME)) mkdir $(nativePaths(_DIRNAME))
|
||||
</command>
|
||||
</modify-target>
|
||||
|
||||
<!-- the following code is mostly equivalent to a:
|
||||
<dependency-of>$(id)</dependency-of>
|
||||
put into the __mkdir_tgt target, except that it does _prepend_
|
||||
the __mkdir_tgt dependency instead of appending it.
|
||||
|
||||
This is required because some compilers (e.g. MSVC) need to store in the
|
||||
output folder some files (e.g. the PDB file) while compiling and thus
|
||||
the library output folder must have been created before _any_ source file
|
||||
is compiled, not just before the library is linked.
|
||||
-->
|
||||
<modify-target target="$(id)">
|
||||
<set var="__deps" prepend="1">
|
||||
$(substitute(__mkdir_tgt, lambda x: ref('__depname', x), 'DEP'))
|
||||
</set>
|
||||
</modify-target>
|
||||
</if>
|
||||
</if>
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<set var="_DIRNAME">$(value)</set>
|
||||
<dirname>$(_DIRNAME)</dirname>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
<!-- Adds to the compiler & linker flags the path for the "include" and the
|
||||
"lib" folders of a library following wxWidgets conventions which is
|
||||
located in $(value).
|
||||
-->
|
||||
<define-tag name="wxlike-paths" rules="exe,lib,dll,module">
|
||||
<if cond="FORMAT!='autoconf' and FORMAT!='gnu'">
|
||||
<!-- WXLIBPATH is a path like "/lib/vc_lib"
|
||||
NOTE: even if this template is going to be used for a "lib"
|
||||
target (which does not uses lib-paths at all), we can still
|
||||
use the <lib-path> target: it will just be discarded
|
||||
-->
|
||||
<lib-path>$(value)$(WXLIBPATH)</lib-path>
|
||||
|
||||
<!-- no special include paths for a lib following wxWidgets naming
|
||||
conventions -->
|
||||
<include>$(value)/include</include>
|
||||
</if>
|
||||
|
||||
<!-- for autoconf format the user should use CPPFLAGS and LDFLAGS to
|
||||
specify non-system paths since the wx-based library should have
|
||||
been installed in standard paths
|
||||
-->
|
||||
</define-tag>
|
||||
|
||||
|
||||
|
||||
<!-- UTILITY GLOBAL TAGS -->
|
||||
<!-- -->
|
||||
|
||||
<!-- Sets the BUILDDIR variable using the same rules used by wxWidgets itself.
|
||||
This makes it possible to keep separated the object files compiled with
|
||||
different configuration settings.
|
||||
-->
|
||||
<define-global-tag name="set-wxlike-builddir">
|
||||
<!-- note that the builddir for autoconf should always be '.' -->
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="_BUILDDIR_SHARED_SUFFIX">
|
||||
<if cond="WX_SHARED=='0'"></if>
|
||||
<if cond="WX_SHARED=='1'">_dll</if>
|
||||
</set>
|
||||
|
||||
<set var="BUILDDIR">
|
||||
$(COMPILER_PREFIX)$(WX_PORT)$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX)
|
||||
</set>
|
||||
</if>
|
||||
</define-global-tag>
|
||||
|
||||
<!-- Sets a variable with the name of the 'var' attribute value using the
|
||||
same rules used for wxWidgets library naming.
|
||||
E.g.
|
||||
|
||||
<set-wxlike var='MYMODULE_LIBNAME' prefix='mylib'>
|
||||
mymodule
|
||||
</set-wxlike>
|
||||
|
||||
This tag also supports a 'cond' attribute making it very powerful
|
||||
for conditional linking a wx-based library:
|
||||
|
||||
<option name="USE_MYMODULE">
|
||||
<values>0,1</values>
|
||||
</option>
|
||||
<set-wxlike var='MYMODULE_DEP'
|
||||
prefix='mylib'
|
||||
cond="USE_MYMODULE=='1'">
|
||||
mymodule
|
||||
</set-wxlike>
|
||||
...
|
||||
<exe id="myexe">
|
||||
<sys-lib>$(MYMODULE_DEP)</sys-lib>
|
||||
</exe>
|
||||
-->
|
||||
<define-global-tag name="set-wxlike">
|
||||
<if cond="FORMAT!='autoconf' and FORMAT!='gnu'">
|
||||
<if cond="'cond' not in attributes">
|
||||
<set var="$(attributes['var'])">
|
||||
$(attributes['prefix'])_$(WX_PORT)$(WX_VERSION)$(WXLIBPOSTFIX)_$(value)
|
||||
</set>
|
||||
</if>
|
||||
<if cond="'cond' in attributes">
|
||||
<set var="$(attributes['var'])">
|
||||
<if cond="$(attributes['cond'])">
|
||||
$(attributes['prefix'])_$(WX_PORT)$(WX_VERSION)$(WXLIBPOSTFIX)_$(value)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<if cond="FORMAT=='autoconf' or FORMAT=='gnu'">
|
||||
<if cond="'cond' not in attributes">
|
||||
<set var="$(attributes['var'])">
|
||||
$(attributes['prefix'])_$(WX_PORT)$(WXLIBPOSTFIX)_$(value)-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR)
|
||||
</set>
|
||||
</if>
|
||||
<if cond="'cond' in attributes">
|
||||
<set var="$(attributes['var'])">
|
||||
<if cond="$(attributes['cond'])">
|
||||
$(attributes['prefix'])_$(WX_PORT)$(WXLIBPOSTFIX)_$(value)-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
</if>
|
||||
</define-global-tag>
|
||||
|
||||
|
||||
<include file="wx_xrc.bkl"/>
|
||||
|
||||
</makefile>
|
||||
@@ -0,0 +1,11 @@
|
||||
|
||||
# We use 'COMPILER_PREFIX' option in places where bakefile doesn't like it, so
|
||||
# we must register a substitution function for it that provides additional
|
||||
# knowledge about the option (in this case that it does not contain dir
|
||||
# separators and so utils.nativePaths() doesn't have to do anything with it):
|
||||
|
||||
from utils import addSubstituteCallback
|
||||
|
||||
def __noopSubst(name, func, caller):
|
||||
return '$(%s)' % name
|
||||
addSubstituteCallback('COMPILER_PREFIX', __noopSubst)
|
||||
@@ -0,0 +1,251 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<!--
|
||||
Presents for building wxWidgets applications using Autoconf or GNU toosets.
|
||||
See wx.bkl for platform-independent notes.
|
||||
|
||||
Format-specific notes:
|
||||
|
||||
* autoconf:
|
||||
Beware that you have to use WX_CONFIG_OPTIONS and
|
||||
WX_CONFIG_CHECK in your configure.ac to get at least the
|
||||
WX_CPPFLAGS, WX_CFLAGS, WX_CXXFLAGS, WX_LIBS option values defined.
|
||||
|
||||
To detect the WX_* option values typically you also want to use
|
||||
the WX_STANDARD_OPTIONS, WX_CONVERT_STANDARD_OPTIONS_TO_WXCONFIG_FLAGS,
|
||||
WX_CONFIG_CHECK and finally WX_DETECT_STANDARD_OPTION_VALUES macros
|
||||
(see wxwin.m4 for more info).
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<makefile>
|
||||
|
||||
|
||||
|
||||
<!-- ============================================================== -->
|
||||
<!-- Autoconf -->
|
||||
<!-- ============================================================== -->
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<option name="WX_CFLAGS"/>
|
||||
<option name="WX_CXXFLAGS"/>
|
||||
<option name="WX_CPPFLAGS"/>
|
||||
<option name="WX_LIBS"/>
|
||||
<option name="WX_RESCOMP"/>
|
||||
<option name="WX_VERSION_MAJOR"/>
|
||||
<option name="WX_VERSION_MINOR"/>
|
||||
<option name="WX_PORT"/>
|
||||
|
||||
<!-- wxwin.m4 macros will detect all WX_* options defined above -->
|
||||
|
||||
|
||||
<!-- VERY IMPORTANT: <wx-lib>base</wx-lib> must be the last wx-lib tag
|
||||
in all your bakefiles !!
|
||||
-->
|
||||
<define-tag name="wx-lib" rules="exe,dll,module">
|
||||
<if cond="value=='base'">
|
||||
<!-- all wx-dependent libraries should have been already listed
|
||||
thus we can now add WX_LIBS to the linker line -->
|
||||
<ldlibs>$(WX_LIBS)</ldlibs>
|
||||
</if>
|
||||
<if cond="value not in WX_LIB_LIST.split()">
|
||||
<error>Unknown wxWidgets library given in the wx-lib tag</error>
|
||||
</if>
|
||||
</define-tag>
|
||||
</if>
|
||||
|
||||
|
||||
<!-- ============================================================== -->
|
||||
<!-- GNU makefiles for Unix -->
|
||||
<!-- ============================================================== -->
|
||||
|
||||
<if cond="FORMAT=='gnu'">
|
||||
|
||||
<!-- remove those WX_* vars which were created just to avoid the definition
|
||||
of the WX_* options in wx.bkl -->
|
||||
<unset var="WX_SHARED"/>
|
||||
<unset var="WX_UNICODE"/>
|
||||
<unset var="WX_PORT"/>
|
||||
<unset var="WX_VERSION"/>
|
||||
|
||||
<set var="WX_CONFIG_DEFAULT" overwrite="0">wx-config</set>
|
||||
<option name="WX_CONFIG">
|
||||
<default-value>$(WX_CONFIG_DEFAULT)</default-value>
|
||||
<description>Location and arguments of wx-config script</description>
|
||||
</option>
|
||||
|
||||
<set var="WX_PORT_DEFAULT" overwrite="0">
|
||||
$(DOLLAR)(shell $(WX_CONFIG) --query-toolkit)
|
||||
</set>
|
||||
<option name="WX_PORT">
|
||||
<values>gtk2,msw,x11,osx_cocoa,osx_carbon,dfb</values>
|
||||
<default-value force="1">$(WX_PORT_DEFAULT)</default-value>
|
||||
<description>
|
||||
Port of the wx library to build against
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<set var="WX_SHARED_DEFAULT" overwrite="0">
|
||||
$(DOLLAR)(shell if test -z `$(WX_CONFIG) --query-linkage`; then echo 1; else echo 0; fi)
|
||||
</set>
|
||||
<option name="WX_SHARED">
|
||||
<values>0,1</values>
|
||||
<values-description>Static,DLL</values-description>
|
||||
<default-value force="1">$(WX_SHARED_DEFAULT)</default-value>
|
||||
<description>
|
||||
Use DLL build of wx library to use?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<set var="WX_UNICODE_DEFAULT" overwrite="0">
|
||||
$(DOLLAR)(shell $(WX_CONFIG) --query-chartype | sed 's/unicode/1/;s/ansi/0/')
|
||||
</set>
|
||||
<option name="WX_UNICODE">
|
||||
<values>0,1</values>
|
||||
<values-description>ANSI,Unicode</values-description>
|
||||
<default-value force="1">$(WX_UNICODE_DEFAULT)</default-value>
|
||||
<description>
|
||||
Compile Unicode build of wxWidgets?
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<set var="WX_VERSION_DEFAULT" overwrite="0">
|
||||
$(DOLLAR)(shell $(WX_CONFIG) --query-version | sed -e 's/\([0-9]*\)\.\([0-9]*\)/\1\2/')
|
||||
</set>
|
||||
<option name="WX_VERSION">
|
||||
<default-value>$(WX_VERSION_DEFAULT)</default-value>
|
||||
<description>
|
||||
Version of the wx library to build against.
|
||||
</description>
|
||||
</option>
|
||||
|
||||
<!-- Get MAJOR and MINOR version numbers -->
|
||||
<set var="WX_VERSION_MAJOR" make_var="1">
|
||||
$(DOLLAR)(shell echo $(DOLLAR)(WX_VERSION) | cut -c1,1)
|
||||
</set>
|
||||
<set var="WX_VERSION_MINOR" make_var="1">
|
||||
$(DOLLAR)(shell echo $(DOLLAR)(WX_VERSION) | cut -c2,2)
|
||||
</set>
|
||||
|
||||
|
||||
<!--
|
||||
Using the GNU format creates a configurable makefile just like
|
||||
a win32 makefile: i.e. a makefile where you can select the wanted
|
||||
wxWidgets build using the WX_* options.
|
||||
|
||||
The difference with win32 makefiles is that WX_PORT, WX_UNICODE and
|
||||
WX_SHARED options have a smart default value which is created using
|
||||
the installed wx-config or the wx-config given using WX_CONFIG option
|
||||
-->
|
||||
<set var="WX_CONFIG_UNICODE_FLAG">
|
||||
<if cond="WX_UNICODE=='0'">--unicode=no</if>
|
||||
<if cond="WX_UNICODE=='1'">--unicode=yes</if>
|
||||
</set>
|
||||
<set var="WX_CONFIG_SHARED_FLAG">
|
||||
<if cond="WX_SHARED=='0'">--static=yes</if>
|
||||
<if cond="WX_SHARED=='1'">--static=no</if>
|
||||
</set>
|
||||
<set var="WX_CONFIG_PORT_FLAG">
|
||||
--toolkit=$(WX_PORT)
|
||||
</set>
|
||||
<set var="WX_CONFIG_VERSION_FLAG">
|
||||
--version=$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR)
|
||||
</set>
|
||||
|
||||
<set var="WX_CONFIG_FLAGS" make_var="1">
|
||||
$(WX_CONFIG_UNICODE_FLAG) $(WX_CONFIG_SHARED_FLAG)
|
||||
$(WX_CONFIG_PORT_FLAG) $(WX_CONFIG_VERSION_FLAG)
|
||||
</set>
|
||||
|
||||
<set var="DEFAULT_CXX">`$(DOLLAR)(WX_CONFIG) --cxx`</set>
|
||||
<set var="WX_CFLAGS">`$(DOLLAR)(WX_CONFIG) --cflags $(WX_CONFIG_FLAGS)`</set>
|
||||
<set var="WX_CXXFLAGS">`$(DOLLAR)(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)`</set>
|
||||
<set var="WX_CPPFLAGS">`$(DOLLAR)(WX_CONFIG) --cppflags $(WX_CONFIG_FLAGS)`</set>
|
||||
<set var="WX_RESCOMP">`$(DOLLAR)(WX_CONFIG) --rescomp $(WX_CONFIG_FLAGS)`</set>
|
||||
|
||||
<!--
|
||||
VERY IMPORTANT: before starting to build all targets of the generated makefile,
|
||||
we need to check if the selected wxWidgets build exists; we do
|
||||
that simply creating the following target; if it fails the make
|
||||
program will halt with the wx-config error message...
|
||||
-->
|
||||
<if cond="WX_TEST_FOR_SELECTED_WXBUILD=='1'">
|
||||
<action id="test_for_selected_wxbuild">
|
||||
<dependency-of>all</dependency-of>
|
||||
|
||||
<!-- Use @ to hide to the user that we're running wx-config... -->
|
||||
<command>@$(DOLLAR)(WX_CONFIG) $(WX_CONFIG_FLAGS)</command>
|
||||
</action>
|
||||
</if>
|
||||
|
||||
<!-- we need these vars but the trick used in the default values above
|
||||
prevents bakefile from detecting it: -->
|
||||
<set var="FORMAT_OUTPUT_VARIABLES" append="1">WX_CONFIG WX_VERSION</set>
|
||||
|
||||
|
||||
<!-- VERY IMPORTANT: <wx-lib>base</wx-lib> must be the last wx-lib tag
|
||||
in all your bakefiles !!
|
||||
-->
|
||||
<define-tag name="wx-lib" rules="exe,dll,module">
|
||||
<if cond="value=='base'">
|
||||
<!-- all wx libraries should have been already specified, thus
|
||||
$(__liblist) should contain the full list of required wxlibs... -->
|
||||
<set var="__liblist" append="1">base</set>
|
||||
<ldlibs>`$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs $(','.join(__liblist.split()))`</ldlibs>
|
||||
</if>
|
||||
<if cond="value!='base'">
|
||||
<set var="__liblist" append="1">$(value)</set>
|
||||
</if>
|
||||
<if cond="value not in WX_LIB_LIST.split()">
|
||||
<error>Unknown wxWidgets library given in the wx-lib tag</error>
|
||||
</if>
|
||||
</define-tag>
|
||||
</if>
|
||||
|
||||
<!-- ============================================================== -->
|
||||
<!-- Common code -->
|
||||
<!-- ============================================================== -->
|
||||
|
||||
<if cond="FORMAT not in ['gnu','autoconf']">
|
||||
<error>
|
||||
Don't include presets/wx_unix.bkl directly, use presets/wx.bkl.
|
||||
</error>
|
||||
</if>
|
||||
|
||||
<!--
|
||||
We need to re-define the WINDRES resource compiler name to the resource compiler
|
||||
returned by 'wx-config - -rescomp' since this option returns both the name of the
|
||||
resource compiler to use (windres) and the flags required for that compiler.
|
||||
|
||||
This line typically does something *only* when the Makefile.in generated
|
||||
using this bakefile, is used on Windows with MSYS (when using Cygwin, resources
|
||||
are not compiled at all).
|
||||
Without this line, in fact, when compiling with MSYS on Windows, the - -include-dir
|
||||
option which tells windres to look in wxWidgets\include folder would be missing and
|
||||
then windres would fail to find the wxMSW resources.
|
||||
|
||||
NOTE: overwriting the WINDRES variable we add wxWidgets resource flags to
|
||||
all targets which include this bakefile; this could be useless to those
|
||||
targets which are not wx-based eventually present in that bakefile but
|
||||
in any case it shouldn't do any harm.
|
||||
-->
|
||||
<set var="WINDRES">$(WX_RESCOMP)</set>
|
||||
|
||||
<template id="wx-lib">
|
||||
<cxxflags>$(WX_CXXFLAGS)</cxxflags>
|
||||
<cflags>$(WX_CFLAGS)</cflags>
|
||||
</template>
|
||||
|
||||
<template id="wx" template="wx-lib">
|
||||
<!--
|
||||
Don't include the $(WX_LIBS) variable in linker options here since
|
||||
it would make impossible for the user to obtain the right library
|
||||
order when he needs to specify, *before* WX_LIBS, its own libraries
|
||||
that depend on wxWidgets libraries; to avoid this, we include
|
||||
$(WX_LIBS) as soon as we found the <wx-lib>base</wx-lib> tag which
|
||||
the user should always put *after* all other wx-dependent libraries
|
||||
-->
|
||||
</template>
|
||||
|
||||
</makefile>
|
||||
@@ -0,0 +1,342 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<!-- Original source: https://wiki.wxwidgets.org/Bakefile -->
|
||||
<!-- Modified by: Francesco Montorsi <frm@users.sourceforge.net> -->
|
||||
<!-- Vaclav Slavik <vslavik@fastmail.fm> to better fit
|
||||
into Bakefile's presets -->
|
||||
<!-- Creation date: 6/9/2004 -->
|
||||
<!-- Last revision: 22/1/2005 off-CVS -->
|
||||
|
||||
|
||||
<makefile>
|
||||
|
||||
|
||||
<!-- -->
|
||||
<!-- OPTIONS -->
|
||||
<!-- -->
|
||||
|
||||
<set var="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES_NORMAL">
|
||||
<!-- 'NORMAL' here refers to the fact that the formats for which
|
||||
FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES_NORMAL==1 only need
|
||||
additional compiler and/or linker flags (see e.g. WXMACHINE_FLAG)
|
||||
-->
|
||||
<if cond="FORMAT in ['msvc']">1</if>
|
||||
<if cond="FORMAT not in ['msvc']">0</if>
|
||||
</set>
|
||||
<set var="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES_VIA_MSVS_PLATFORMS">
|
||||
<!-- the formats for which FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES_VIA_MSVS_PLATFORMS==1
|
||||
need special handling: see the docs of the MSVS_PLATFORMS variable in Bakefile docs.
|
||||
-->
|
||||
<if cond="FORMAT in ['msvs2005prj','msvs2008prj']">1</if>
|
||||
<if cond="FORMAT not in ['msvs2005prj','msvs2008prj']">0</if>
|
||||
</set>
|
||||
<set var="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES">
|
||||
<if cond="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES_NORMAL=='1'">1</if>
|
||||
<if cond="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES_VIA_MSVS_PLATFORMS=='1'">1</if>
|
||||
<if cond="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES_NORMAL=='0' and FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES_VIA_MSVS_PLATFORMS=='0'">0</if>
|
||||
</set>
|
||||
|
||||
<!-- This is a standard option that determines -->
|
||||
<!-- the architecture for which the lib/exe/dll later -->
|
||||
<!-- declared are meant. -->
|
||||
<if cond="not isdefined('TARGET_CPU') and FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES_NORMAL=='1'">
|
||||
<set var="TARGET_CPU_DEFAULT" overwrite="0">X86</set>
|
||||
<option name="TARGET_CPU">
|
||||
<values>X86,AMD64,IA64</values>
|
||||
<values-description>i386-compatible,AMD 64 bit,Itanium 64 bit</values-description>
|
||||
<default-value>$(TARGET_CPU_DEFAULT)</default-value>
|
||||
<description>
|
||||
Architecture of the CPU for which to build the executables and libraries
|
||||
</description>
|
||||
</option>
|
||||
</if>
|
||||
<if cond="not isdefined('TARGET_CPU') and FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES_VIA_MSVS_PLATFORMS=='1'">
|
||||
<!-- defining TARGET_CPU also for the formats using the MSVS_PLATFORM variable allows to write
|
||||
easier tests in user bakefiles; e.g.:
|
||||
|
||||
<set var="MY_ARCH_DEPENDENT_VARIABLE">
|
||||
<if cond="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES=='0'">value1</if>
|
||||
<if cond="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES=='1' and TARGET_CPU=='X86'">value2</if>
|
||||
<if cond="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES=='1' and TARGET_CPU=='AMD64'">value3</if>
|
||||
<if cond="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES=='1' and TARGET_CPU=='IA64'">value4</if>
|
||||
</set>
|
||||
-->
|
||||
<set var="TARGET_CPU">
|
||||
<if cond="MSVS_PLATFORM=='win32'">X86</if>
|
||||
<if cond="MSVS_PLATFORM=='win64'">AMD64</if>
|
||||
<if cond="MSVS_PLATFORM=='ia64'">IA64</if>
|
||||
<!-- MSVS_PLATFORM currently does not support ia64 but this line is still needed by bakefile
|
||||
to correctly set the TARGET_CPU variable -->
|
||||
</set>
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
<!-- HELPER VARIABLES -->
|
||||
<!-- -->
|
||||
|
||||
|
||||
<!-- The debug define we need with win32 compilers -->
|
||||
<!-- (on Linux, the wx-config program is used). -->
|
||||
<set var="WXDEBUG_DEFINE">
|
||||
<if cond="WX_DEBUG=='1'">__WXDEBUG__</if>
|
||||
</set>
|
||||
|
||||
<!-- These are handy ways of dealing with the -->
|
||||
<!-- extensions in the library names of the -->
|
||||
<!-- wxWindows library. -->
|
||||
<set var="WX3RDPARTYLIBPOSTFIX">
|
||||
<if cond="WX_DEBUG=='1'">d</if>
|
||||
</set>
|
||||
|
||||
<set var="WXCPU">
|
||||
<if cond="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES=='1' and TARGET_CPU=='AMD64'">_x64</if>
|
||||
<if cond="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES=='1' and TARGET_CPU=='IA64'">_ia64</if>
|
||||
</set>
|
||||
|
||||
<set var="WXMACHINE_FLAG">
|
||||
<!-- add the /MACHINE linker flag to formats with "normal" multiple-arch support when building in 64bit mode
|
||||
(formats using the MSVS_PLATFORM variable don't need the /MACHINE linker flag!): -->
|
||||
<if cond="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES_NORMAL=='1' and TARGET_CPU=='AMD64'">/MACHINE:AMD64</if>
|
||||
<if cond="FORMAT_SUPPORTS_MULTIPLE_ARCHITECTURES_NORMAL=='1' and TARGET_CPU=='IA64'">/MACHINE:IA64</if>
|
||||
</set>
|
||||
|
||||
<set var="WXLIBPATH">
|
||||
<if cond="WX_SHARED=='0'">$(DIRSEP)lib$(DIRSEP)$(COMPILER_PREFIX)$(WXCPU)_lib</if>
|
||||
<if cond="WX_SHARED=='1'">$(DIRSEP)lib$(DIRSEP)$(COMPILER_PREFIX)$(WXCPU)_dll</if>
|
||||
</set>
|
||||
|
||||
<!-- under Unix this is an option (detected at configure-time);
|
||||
under Windows this is not an user option! -->
|
||||
<set var="WX_PORT">msw</set>
|
||||
|
||||
<set var="WXLIBINCLUDE">$(WXLIBPATH)$(DIRSEP)$(WX_PORT)$(WXLIBPOSTFIX)</set>
|
||||
|
||||
|
||||
<!-- All the possible mixes for the wx library names -->
|
||||
<set var="WXLIB_BASE_NAME">
|
||||
<if cond="WX_MONOLITHIC=='0'">wxbase$(WX_VERSION)$(WXLIBPOSTFIX)</if>
|
||||
|
||||
<!--
|
||||
the trick used to support monolithic builds is here: when the
|
||||
<wx-lib>base</wx-lib> tag is found, and user selected
|
||||
WX_MONOLITHIC=1, then the base library is translated to the
|
||||
monolithic library
|
||||
-->
|
||||
<if cond="WX_MONOLITHIC=='1'">wx$(WX_PORT)$(WX_VERSION)$(WXLIBPOSTFIX)</if>
|
||||
</set>
|
||||
|
||||
|
||||
<!-- Libraries whose name is prefixed with 'wxbase' -->
|
||||
<define-global-tag name="define-wxbase-lib-name">
|
||||
<set var="WXLIB_$(value.upper())_NAME">
|
||||
<if cond="WX_MONOLITHIC=='0'">
|
||||
wxbase$(WX_VERSION)$(WXLIBPOSTFIX)_$(value)
|
||||
</if>
|
||||
</set>
|
||||
</define-global-tag>
|
||||
|
||||
<define-wxbase-lib-name>net</define-wxbase-lib-name>
|
||||
<define-wxbase-lib-name>xml</define-wxbase-lib-name>
|
||||
|
||||
|
||||
<!-- Libraries whose name is prefixed with 'wx' only -->
|
||||
<define-global-tag name="define-wxlib-name">
|
||||
<set var="WXLIB_$(value.upper())_NAME">
|
||||
<if cond="WX_MONOLITHIC=='0'">
|
||||
wx$(WX_PORT)$(WX_VERSION)$(WXLIBPOSTFIX)_$(value)
|
||||
</if>
|
||||
</set>
|
||||
</define-global-tag>
|
||||
|
||||
<define-wxlib-name>core</define-wxlib-name>
|
||||
<define-wxlib-name>media</define-wxlib-name>
|
||||
<define-wxlib-name>xrc</define-wxlib-name>
|
||||
<define-wxlib-name>html</define-wxlib-name>
|
||||
<define-wxlib-name>adv</define-wxlib-name>
|
||||
<define-wxlib-name>qa</define-wxlib-name>
|
||||
<define-wxlib-name>aui</define-wxlib-name>
|
||||
<define-wxlib-name>ribbon</define-wxlib-name>
|
||||
<define-wxlib-name>propgrid</define-wxlib-name>
|
||||
<define-wxlib-name>stc</define-wxlib-name>
|
||||
<define-wxlib-name>richtext</define-wxlib-name>
|
||||
<define-wxlib-name>webview</define-wxlib-name>
|
||||
|
||||
<!-- NOTE: The GL lib is not part of the monolithic build; treat it as a contrib! -->
|
||||
|
||||
|
||||
|
||||
<!-- WX TEMPLATE -->
|
||||
<!-- -->
|
||||
<!-- -->
|
||||
<!-- While not required, templates make your -->
|
||||
<!-- bakefiles much more readable. Templates, in -->
|
||||
<!-- essence, are abstract classes like c++. -->
|
||||
<!-- -->
|
||||
<!-- Your build targets "inherit" the template, -->
|
||||
<!-- along with the info associated with the template -->
|
||||
|
||||
<!-- -->
|
||||
<!-- wxWidgets LIBRARY/APP TEMPLATE -->
|
||||
<!-- -->
|
||||
<!-- The "base class" of all our build targets -->
|
||||
<!-- This links with the appropriate native -->
|
||||
<!-- libraries required by the platform, the libraries -->
|
||||
<!-- we want for our stuff, and the wxWindows libs. -->
|
||||
|
||||
<!-- this tag is used to include wx libraries: -->
|
||||
<define-tag name="wx-lib" rules="exe,dll,module">
|
||||
<if cond="value=='base'"><sys-lib>$(WXLIB_BASE_NAME)</sys-lib></if>
|
||||
<if cond="value=='core'"><sys-lib>$(WXLIB_CORE_NAME)</sys-lib></if>
|
||||
|
||||
<if cond="value=='net'"><sys-lib>$(WXLIB_NET_NAME)</sys-lib></if>
|
||||
<if cond="value=='xml'"><sys-lib>$(WXLIB_XML_NAME)</sys-lib></if>
|
||||
|
||||
<if cond="value=='media'"><sys-lib>$(WXLIB_MEDIA_NAME)</sys-lib></if>
|
||||
<if cond="value=='xrc'"><sys-lib>$(WXLIB_XRC_NAME)</sys-lib></if>
|
||||
<if cond="value=='html'"><sys-lib>$(WXLIB_HTML_NAME)</sys-lib></if>
|
||||
<if cond="value=='adv'"><sys-lib>$(WXLIB_ADV_NAME)</sys-lib></if>
|
||||
<if cond="value=='qa'"><sys-lib>$(WXLIB_QA_NAME)</sys-lib></if>
|
||||
<if cond="value=='aui'"><sys-lib>$(WXLIB_AUI_NAME)</sys-lib></if>
|
||||
<if cond="value=='ribbon'"><sys-lib>$(WXLIB_RIBBON_NAME)</sys-lib></if>
|
||||
<if cond="value=='propgrid'"><sys-lib>$(WXLIB_PROPGRID_NAME)</sys-lib></if>
|
||||
<if cond="value=='richtext'"><sys-lib>$(WXLIB_RICHTEXT_NAME)</sys-lib></if>
|
||||
<if cond="value=='webview'"><sys-lib>$(WXLIB_WEBVIEW_NAME)</sys-lib></if>
|
||||
|
||||
<!-- The GL lib isn't part of the monolithic build, treat it as a contrib: -->
|
||||
<if cond="value=='gl'">
|
||||
<sys-lib>wx$(WX_PORT)$(WX_VERSION)$(WXLIBPOSTFIX)_$(value)</sys-lib>
|
||||
</if>
|
||||
|
||||
<if cond="value=='stc'">
|
||||
<!-- wxSTC requires also the basic scintilla and lexilla libraries
|
||||
which are built as a separate 3rd party libraries -->
|
||||
<sys-lib>$(WXLIB_STC_NAME)</sys-lib>
|
||||
<sys-lib>wxscintilla$(WX3RDPARTYLIBPOSTFIX)</sys-lib>
|
||||
<sys-lib>wxlexilla$(WX3RDPARTYLIBPOSTFIX)</sys-lib>
|
||||
</if>
|
||||
|
||||
<if cond="value not in WX_LIB_LIST.split()">
|
||||
<error>Unknown wxWidgets library given in the wx-lib tag</error>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
<!-- just a placeholder to mark the place where <wx-lib> will be placed,
|
||||
thanks to the order precedence declaration below it: -->
|
||||
<define-tag name="__wx-libs-point" rules="exe,dll,module"/>
|
||||
<tag-info name="wx-lib"
|
||||
position="before:__wx-libs-point"/>
|
||||
<tag-info name="__wx-syslibs"
|
||||
position="after:__wx-libs-point"/>
|
||||
|
||||
|
||||
<!-- template for static wx libraries: -->
|
||||
<template id="wx-lib">
|
||||
<!-- MISCELLANEOUS -->
|
||||
<if cond="FORMAT=='mingw'">
|
||||
<ldflags>-mthreads</ldflags>
|
||||
</if>
|
||||
|
||||
<define>$(substituteFromDict(WX_SHARED,{'1':'WXUSINGDLL','0':''}))</define>
|
||||
|
||||
<define>$(WXDEBUG_DEFINE)</define>
|
||||
<define>__WXMSW__</define>
|
||||
|
||||
<if cond="FORMAT!='xcode2'">
|
||||
<include>$(WX_DIR)$(WXLIBINCLUDE)</include>
|
||||
<include>$(WX_DIR)/include</include>
|
||||
</if>
|
||||
</template>
|
||||
|
||||
|
||||
<!-- this ugly tag contains all sys-lib tags used by "wx" template,
|
||||
in order to make sure they are not reorder when wx-lib is moved
|
||||
after __wx-libs-point: -->
|
||||
<define-tag name="__wx-syslibs" rules="exe,dll,module">
|
||||
<!-- wx 3rd party libs, always use them: -->
|
||||
<sys-lib>wxtiff$(WX3RDPARTYLIBPOSTFIX)</sys-lib>
|
||||
<sys-lib>wxjpeg$(WX3RDPARTYLIBPOSTFIX)</sys-lib>
|
||||
<sys-lib>wxpng$(WX3RDPARTYLIBPOSTFIX)</sys-lib>
|
||||
<sys-lib>wxwebp$(WX3RDPARTYLIBPOSTFIX)</sys-lib>
|
||||
<sys-lib>wxzlib$(WX3RDPARTYLIBPOSTFIX)</sys-lib>
|
||||
<!-- For regex we won't use the WX3RDPARTYLIBPOSTIX postfix:
|
||||
unliked tiff, jpeg, png, webp, zlib, expat, when building
|
||||
in Unicode mode, the "u" suffix is appended to regex -->
|
||||
<sys-lib>wxregex$(WXLIBPOSTFIX)</sys-lib>
|
||||
<sys-lib>wxexpat$(WX3RDPARTYLIBPOSTFIX)</sys-lib>
|
||||
|
||||
<!-- link-in system libs that wx depends on: -->
|
||||
<!-- If on borland, we don't need to do much -->
|
||||
<if cond="FORMAT=='borland'">
|
||||
<sys-lib>ole2w32</sys-lib>
|
||||
</if>
|
||||
|
||||
<!-- Non-borland, on the other hand... -->
|
||||
<if cond="FORMAT!='borland'">
|
||||
<sys-lib>kernel32</sys-lib>
|
||||
<sys-lib>user32</sys-lib>
|
||||
<sys-lib>gdi32</sys-lib>
|
||||
<sys-lib>gdiplus</sys-lib>
|
||||
<sys-lib>msimg32</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>ws2_32</sys-lib>
|
||||
</if>
|
||||
|
||||
<!-- Libs common to both borland and MSVC -->
|
||||
<if cond="FORMAT=='msvc' or FORMAT=='borland'">
|
||||
<sys-lib>oleacc</sys-lib>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
<!-- template for wx executables/dlls: -->
|
||||
<template id="wx" template="wx-lib">
|
||||
<if cond="FORMAT!='xcode2'">
|
||||
<lib-path>$(WX_DIR)$(WXLIBPATH)</lib-path>
|
||||
</if>
|
||||
|
||||
<ldflags>$(WXMACHINE_FLAG)</ldflags>
|
||||
|
||||
<!-- wx libs must come before 3rd party and sys libs, this is
|
||||
the place where the hack explained above is carried on: -->
|
||||
<__wx-libs-point/>
|
||||
<__wx-syslibs/>
|
||||
</template>
|
||||
|
||||
<if cond="FORMAT_SUPPORTS_ACTIONS=='1' and WX_TEST_FOR_SELECTED_WXBUILD=='1'">
|
||||
|
||||
<!--
|
||||
VERY IMPORTANT: before starting to build all targets of the generated makefile,
|
||||
we need to check if the selected wxWidgets build exists; we do
|
||||
that simply creating the following target; if it fails the make
|
||||
program will halt printing the following nice error message...
|
||||
(much better than the 'could not find wx/*.h file')
|
||||
-->
|
||||
<action id="test_for_selected_wxbuild">
|
||||
<dependency-of>all</dependency-of>
|
||||
|
||||
<!-- the @ is to hide these actions from the user -->
|
||||
<command>
|
||||
@if not exist $(WX_DIR)$(WXLIBINCLUDE)$(DIRSEP)wx$(DIRSEP)setup.h \
|
||||
echo ----------------------------------------------------------------------------
|
||||
@if not exist $(WX_DIR)$(WXLIBINCLUDE)$(DIRSEP)wx$(DIRSEP)setup.h \
|
||||
echo The selected wxWidgets build is not available!
|
||||
@if not exist $(WX_DIR)$(WXLIBINCLUDE)$(DIRSEP)wx$(DIRSEP)setup.h \
|
||||
echo Please use the options prefixed with WX_ to select another wxWidgets build.
|
||||
@if not exist $(WX_DIR)$(WXLIBINCLUDE)$(DIRSEP)wx$(DIRSEP)setup.h \
|
||||
echo ----------------------------------------------------------------------------
|
||||
@if not exist $(WX_DIR)$(WXLIBINCLUDE)$(DIRSEP)wx$(DIRSEP)setup.h \
|
||||
exit 1
|
||||
</command>
|
||||
</action>
|
||||
</if>
|
||||
|
||||
</makefile>
|
||||
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<!--
|
||||
|
||||
Bakefile XRC support; included by wx.bkl, do not include directly.
|
||||
|
||||
Usage:
|
||||
|
||||
<exe id="myapp" template="wxgui,simple">
|
||||
...
|
||||
<sources>...</sources>
|
||||
...
|
||||
<xrc-file>myapp.xrc</xrc-file>
|
||||
<xrc-file>file2.xrc</xrc-file>
|
||||
</exe>
|
||||
|
||||
Then in application code, you have to call initialization for every XRC
|
||||
file:
|
||||
|
||||
InitXMLResource_myapp();
|
||||
InitXMLResource_file2();
|
||||
|
||||
-->
|
||||
|
||||
<makefile>
|
||||
|
||||
<!-- XRC section -->
|
||||
<option name="WXRC" category="path">
|
||||
<description>Path to find the wxrc executable.</description>
|
||||
<default-value>wxrc</default-value>
|
||||
</option>
|
||||
|
||||
|
||||
<define-tag name="xrc-file" rules="exe,dll,lib">
|
||||
<set var="_xrc_file">$(value)</set>
|
||||
<set var="_xrc_cpp">$(value.replace('.xrc', '_xrc.cpp'))</set>
|
||||
<set var="_xrc_base">$(value[value.rfind('/')+1:value.rfind('.')])</set>
|
||||
<set var="_wxrc_options">-c -n InitXMLResource_$(_xrc_base)</set>
|
||||
|
||||
<sources>$(_xrc_cpp)</sources>
|
||||
<if cond="FORMAT not in ['msvs2003prj','msvs2005prj']">
|
||||
<clean-files>$(_xrc_cpp)</clean-files>
|
||||
<add-target target="$(_xrc_cpp)" type="action"/>
|
||||
<modify-target target="$(_xrc_cpp)">
|
||||
<set var="_xrc">$(_xrc_file)</set>
|
||||
<depends-on-file>$(SRCDIR)/$(_xrc)</depends-on-file>
|
||||
<command>
|
||||
$(WXRC) $(_wxrc_options) -o $(_xrc_cpp) $(_xrc)
|
||||
</command>
|
||||
</modify-target>
|
||||
</if>
|
||||
<if cond="FORMAT in ['msvs2003prj','msvs2005prj']">
|
||||
<sources>$(_xrc_file)</sources>
|
||||
<!--
|
||||
A hack to add XRC compilation step to MSVC projects.
|
||||
|
||||
NB: it's important to use backslashes and not slashes here.
|
||||
-->
|
||||
<set var="_custom_build_files" append="1">$(_xrc_file.replace('/','\\'))</set>
|
||||
<set var="_custom_build_$(_xrc_file.replace('/','_').replace('.','_'))">
|
||||
Compiling XRC resources: $(_xrc_file)...
|
||||
InputPath=$(_xrc_file)
|
||||
|
||||
"$(_xrc_cpp.replace('/','\\'))" : "$(DOLLAR)(INTDIR)"
|
||||
$(TAB)$(WXRC) $(_wxrc_options) -o $(_xrc_cpp) $(_xrc_file)
|
||||
</set>
|
||||
</if>
|
||||
|
||||
</define-tag>
|
||||
|
||||
</makefile>
|
||||
@@ -0,0 +1,48 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.59)
|
||||
|
||||
AC_INIT([minimal],[1.2.5],[vslavik@fastmail.fm])
|
||||
|
||||
AC_CONFIG_SRCDIR([minimal.cpp])
|
||||
|
||||
AC_CANONICAL_BUILD
|
||||
AC_CANONICAL_HOST
|
||||
AC_CANONICAL_TARGET
|
||||
|
||||
|
||||
|
||||
AM_OPTIONS_WXCONFIG
|
||||
|
||||
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_AWK
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_PROG_CXXCPP
|
||||
|
||||
|
||||
|
||||
AM_PATH_WXCONFIG(2.4.1, WXFOUND=1)
|
||||
|
||||
if test "$WXFOUND" != 1; then
|
||||
AC_MSG_ERROR([
|
||||
Please check that wx-config is in path, the directory
|
||||
where wxWindows libraries are installed (returned by
|
||||
'wx-config --libs' command) is in LD_LIBRARY_PATH or
|
||||
equivalent variable and wxWindows is version 2.4.0 or above.
|
||||
])
|
||||
fi
|
||||
|
||||
AC_BAKEFILE([m4_include(autoconf_inc.m4)])
|
||||
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
])
|
||||
|
||||
AC_OUTPUT
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<makefile>
|
||||
|
||||
<include file="presets/wx.bkl"/>
|
||||
|
||||
<exe id="minimal" template="wxgui">
|
||||
|
||||
<!-- this sample builds always in debug mode; if you have
|
||||
compiled wxWidgets in release mode, you'll get link errors! -->
|
||||
<debug-info>on</debug-info>
|
||||
<runtime-libs>dynamic</runtime-libs>
|
||||
|
||||
<sources>minimal.cpp</sources>
|
||||
|
||||
<wx-lib>core</wx-lib>
|
||||
<wx-lib>base</wx-lib>
|
||||
</exe>
|
||||
|
||||
</makefile>
|
||||
@@ -0,0 +1,177 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: minimal.cpp
|
||||
// Purpose: Minimal wxWidgets sample
|
||||
// Author: Julian Smart
|
||||
// Created: 04/01/98
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// ============================================================================
|
||||
// declarations
|
||||
// ============================================================================
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
|
||||
// for all others, include the necessary headers (this file is usually all you
|
||||
// need because it includes almost all "standard" wxWidgets headers)
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// resources
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// private classes
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Define a new application type, each program should derive a class from wxApp
|
||||
class MyApp : public wxApp
|
||||
{
|
||||
public:
|
||||
// override base class virtuals
|
||||
// ----------------------------
|
||||
|
||||
// this one is called on application startup and is a good place for the app
|
||||
// initialization (doing it here and not in the ctor allows to have an error
|
||||
// return: if OnInit() returns false, the application terminates)
|
||||
virtual bool OnInit();
|
||||
};
|
||||
|
||||
// Define a new frame type: this is going to be our main frame
|
||||
class MyFrame : public wxFrame
|
||||
{
|
||||
public:
|
||||
// ctor(s)
|
||||
MyFrame(const wxString& title);
|
||||
|
||||
// event handlers (these functions should _not_ be virtual)
|
||||
void OnQuit(wxCommandEvent& event);
|
||||
void OnAbout(wxCommandEvent& event);
|
||||
|
||||
private:
|
||||
// any class wishing to process wxWindows events must use this macro
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constants
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// IDs for the controls and the menu commands
|
||||
enum
|
||||
{
|
||||
// menu items
|
||||
Minimal_Quit = wxID_EXIT,
|
||||
|
||||
// it is important for the id corresponding to the "About" command to have
|
||||
// this standard value as otherwise it won't be handled properly under Mac
|
||||
// (where it is special and put into the "Apple" menu)
|
||||
Minimal_About = wxID_ABOUT
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// event tables and other macros for wxWindows
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// the event tables connect the wxWindows events with the functions (event
|
||||
// handlers) which process them. It can be also done at run-time, but for the
|
||||
// simple menu events like this the static method is much simpler.
|
||||
wxBEGIN_EVENT_TABLE(MyFrame, wxFrame)
|
||||
EVT_MENU(Minimal_Quit, MyFrame::OnQuit)
|
||||
EVT_MENU(Minimal_About, MyFrame::OnAbout)
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
// Create a new application object: this macro will allow wxWidgets to create
|
||||
// the application object during program execution (it's better than using a
|
||||
// static object for many reasons) and also implements the accessor function
|
||||
// wxGetApp() which will return the reference of the right type (i.e. MyApp and
|
||||
// not wxApp)
|
||||
wxIMPLEMENT_APP(MyApp);
|
||||
|
||||
// ============================================================================
|
||||
// implementation
|
||||
// ============================================================================
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// the application class
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// 'Main program' equivalent: the program execution "starts" here
|
||||
bool MyApp::OnInit()
|
||||
{
|
||||
// create the main application window
|
||||
MyFrame *frame = new MyFrame(wxT("Minimal wxWidgets App"));
|
||||
|
||||
// and show it (the frames, unlike simple controls, are not shown when
|
||||
// created initially)
|
||||
frame->Show(true);
|
||||
|
||||
// success: wxApp::OnRun() will be called which will enter the main message
|
||||
// loop and the application will run. If we returned false here, the
|
||||
// application would exit immediately.
|
||||
return true;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// main frame
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// frame constructor
|
||||
MyFrame::MyFrame(const wxString& title)
|
||||
: wxFrame(nullptr, wxID_ANY, title)
|
||||
{
|
||||
// set the frame icon
|
||||
|
||||
#if wxUSE_MENUS
|
||||
// create a menu bar
|
||||
wxMenu *menuFile = new wxMenu;
|
||||
|
||||
// the "About" item should be in the help menu
|
||||
wxMenu *helpMenu = new wxMenu;
|
||||
helpMenu->Append(Minimal_About, wxT("&About\tF1"), wxT("Show about dialog"));
|
||||
|
||||
menuFile->Append(Minimal_Quit, wxT("E&xit\tAlt-X"), wxT("Quit this program"));
|
||||
|
||||
// now append the freshly created menu to the menu bar...
|
||||
wxMenuBar *menuBar = new wxMenuBar();
|
||||
menuBar->Append(menuFile, wxT("&File"));
|
||||
menuBar->Append(helpMenu, wxT("&Help"));
|
||||
|
||||
// ... and attach this menu bar to the frame
|
||||
SetMenuBar(menuBar);
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
#if wxUSE_STATUSBAR
|
||||
// create a status bar just for fun (by default with 1 pane only)
|
||||
CreateStatusBar(2);
|
||||
SetStatusText(wxT("Welcome to wxWidgets!"));
|
||||
#endif // wxUSE_STATUSBAR
|
||||
}
|
||||
|
||||
|
||||
// event handlers
|
||||
|
||||
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
// true is to force the frame to close
|
||||
Close(true);
|
||||
}
|
||||
|
||||
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
wxString msg;
|
||||
msg.Printf( wxT("This is the About dialog of the minimal sample.\n")
|
||||
wxT("Welcome to %s"), wxVERSION_STRING);
|
||||
|
||||
wxMessageBox(msg, wxT("About Minimal"), wxOK | wxICON_INFORMATION, this);
|
||||
}
|
||||
165
libs/wxWidgets-3.3.1/build/bakefiles/wxwin.py
Normal file
165
libs/wxWidgets-3.3.1/build/bakefiles/wxwin.py
Normal file
@@ -0,0 +1,165 @@
|
||||
#
|
||||
# Helper functions for wxWidgets bakefiles
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
import utils
|
||||
|
||||
# We use 'CFG' option in places where bakefile doesn't like it, so we must
|
||||
# register a substitution function for it that provides additional knowledge
|
||||
# about the option (in this case that it does not contain dir separators and
|
||||
# so utils.nativePaths() doesn't have to do anything with it):
|
||||
|
||||
try:
|
||||
# this fails in 0.1.4 and 0.1.5 has different subst.callbacks signature:
|
||||
utils.checkBakefileVersion('0.1.5')
|
||||
def __noopSubst(name, func, caller):
|
||||
return '$(%s)' % name
|
||||
except AttributeError:
|
||||
def __noopSubst(func, name):
|
||||
return '$(%s)' % name
|
||||
utils.addSubstituteCallback('CFG', __noopSubst)
|
||||
utils.addSubstituteCallback('LIBDIRNAME', __noopSubst)
|
||||
utils.addSubstituteCallback('SETUPHDIR', __noopSubst)
|
||||
utils.addSubstituteCallback('OBJS', __noopSubst)
|
||||
|
||||
|
||||
def mk_wxid(id):
|
||||
"""Creates wxWidgets library identifier from bakefile target ID that
|
||||
follows this convention: DLLs end with 'dll', static libraries
|
||||
end with 'lib'. If withPrefix=1, then _wxid is returned instead
|
||||
of wxid."""
|
||||
if id.endswith('dll') or id.endswith('lib'):
|
||||
wxid = id[:-3]
|
||||
else:
|
||||
wxid = id
|
||||
return wxid
|
||||
|
||||
|
||||
# All libs that are part of the main library:
|
||||
MAIN_LIBS = ['mono', 'base', 'core', 'adv', 'html', 'xml', 'net', 'webview',
|
||||
'media', 'qa', 'xrc', 'aui', 'ribbon', 'propgrid', 'richtext', 'stc']
|
||||
# List of library names/ids for categories with different names:
|
||||
LIBS_NOGUI = ['xml', 'net']
|
||||
LIBS_GUI = ['core', 'adv', 'html', 'gl', 'qa', 'xrc', 'media',
|
||||
'aui', 'propgrid', 'richtext', 'stc', 'ribbon', 'webview']
|
||||
# Additional ld flags
|
||||
EXTRALDFLAGS = {
|
||||
'webview' : '$(EXTRALDFLAGS_WEBVIEW)',
|
||||
}
|
||||
# Additional libraries that must be linked in:
|
||||
EXTRALIBS = {
|
||||
'gl' : '$(EXTRALIBS_OPENGL)',
|
||||
'xml' : '$(EXTRALIBS_XML)',
|
||||
'html' : '$(EXTRALIBS_HTML)',
|
||||
'adv' : '$(PLUGIN_ADV_EXTRALIBS)',
|
||||
'media' : '$(EXTRALIBS_MEDIA)',
|
||||
'stc' : '$(EXTRALIBS_STC)',
|
||||
'webview' : '$(EXTRALIBS_WEBVIEW)',
|
||||
}
|
||||
|
||||
def mkLibName(wxid):
|
||||
"""Returns string that can be used as library name, including name
|
||||
suffixes, prefixes, version tags etc. This must be kept in sync
|
||||
with variables defined in common.bkl!"""
|
||||
if wxid == 'mono':
|
||||
return '$(WXNAMEPREFIXGUI)$(WXNAMESUFFIX)$(WXVERSIONTAG)$(HOST_SUFFIX)'
|
||||
if wxid == 'base':
|
||||
return '$(WXNAMEPREFIX)$(WXNAMESUFFIX)$(WXVERSIONTAG)$(HOST_SUFFIX)'
|
||||
if wxid in LIBS_NOGUI:
|
||||
return '$(WXNAMEPREFIX)$(WXNAMESUFFIX)_%s$(WXVERSIONTAG)$(HOST_SUFFIX)' % wxid
|
||||
return '$(WXNAMEPREFIXGUI)$(WXNAMESUFFIX)_%s$(WXVERSIONTAG)$(HOST_SUFFIX)' % wxid
|
||||
|
||||
def mkDllName(wxid):
|
||||
"""Returns string that can be used as DLL name, including name
|
||||
suffixes, prefixes, version tags etc. This must be kept in sync
|
||||
with variables defined in common.bkl!"""
|
||||
if wxid == 'mono':
|
||||
return '$(WXDLLNAMEPREFIXGUI)$(WXNAMESUFFIX)$(WXCOMPILER)$(VENDORTAG)$(WXDLLVERSIONTAG)'
|
||||
if wxid == 'base':
|
||||
return '$(WXDLLNAMEPREFIX)$(WXNAMESUFFIX)$(WXCOMPILER)$(VENDORTAG)$(WXDLLVERSIONTAG)'
|
||||
if wxid in LIBS_NOGUI:
|
||||
return '$(WXDLLNAMEPREFIX)$(WXNAMESUFFIX)_%s$(WXCOMPILER)$(VENDORTAG)$(WXDLLVERSIONTAG)' % wxid
|
||||
return '$(WXDLLNAMEPREFIXGUI)$(WXNAMESUFFIX)_%s$(WXCOMPILER)$(VENDORTAG)$(WXDLLVERSIONTAG)' % wxid
|
||||
|
||||
|
||||
def libToLink(wxlibname):
|
||||
"""Returns string to pass to <sys-lib> when linking against 'wxlibname'.
|
||||
For one of main libraries, libToLink('foo') returns '$(WXLIB_FOO)' which
|
||||
must be defined in common.bkl as either nothing (in monolithic build) or
|
||||
mkLibName('foo') (otherwise).
|
||||
"""
|
||||
if wxlibname in MAIN_LIBS:
|
||||
return '$(WXLIB_%s)' % wxlibname.upper()
|
||||
else:
|
||||
return mkLibName(wxlibname)
|
||||
|
||||
|
||||
def extraLdflags(wxlibname):
|
||||
if wxlibname in EXTRALDFLAGS:
|
||||
return EXTRALDFLAGS[wxlibname]
|
||||
else:
|
||||
return ''
|
||||
|
||||
def extraLdlibs(wxlibname):
|
||||
if wxlibname in EXTRALIBS:
|
||||
return EXTRALIBS[wxlibname]
|
||||
else:
|
||||
return ''
|
||||
|
||||
wxVersion = None
|
||||
VERSION_FILE = '../../include/wx/version.h'
|
||||
|
||||
def getVersion():
|
||||
"""Returns wxWidgets version as a tuple: (major,minor,release)."""
|
||||
global wxVersion
|
||||
if wxVersion == None:
|
||||
f = open(VERSION_FILE, 'rt')
|
||||
lines = f.readlines()
|
||||
f.close()
|
||||
major = minor = release = None
|
||||
for l in lines:
|
||||
if not l.startswith('#define'): continue
|
||||
splitline = l.strip().split()
|
||||
if splitline[0] != '#define': continue
|
||||
if len(splitline) < 3: continue
|
||||
name = splitline[1]
|
||||
value = splitline[2]
|
||||
if value == None: continue
|
||||
if name == 'wxMAJOR_VERSION': major = int(value)
|
||||
if name == 'wxMINOR_VERSION': minor = int(value)
|
||||
if name == 'wxRELEASE_NUMBER': release = int(value)
|
||||
if major != None and minor != None and release != None:
|
||||
break
|
||||
wxVersion = (major, minor, release)
|
||||
return wxVersion
|
||||
|
||||
def getVersionMajor():
|
||||
return getVersion()[0]
|
||||
def getVersionMinor():
|
||||
return getVersion()[1]
|
||||
def getVersionRelease():
|
||||
return getVersion()[2]
|
||||
|
||||
|
||||
def headersOnly(files):
|
||||
"""Filters 'files' so that only headers are left. Used with
|
||||
<msvc-project-files> to add headers to VC++ projects but not files such
|
||||
as arrimpl.cpp."""
|
||||
|
||||
def callback(cond, sources):
|
||||
prf = suf = ''
|
||||
if sources[0].isspace(): prf=' '
|
||||
if sources[-1].isspace(): suf=' '
|
||||
retval = []
|
||||
for s in sources.split():
|
||||
if s.endswith('.h'):
|
||||
retval.append(s)
|
||||
return '%s%s%s' % (prf, ' '.join(retval), suf)
|
||||
return utils.substitute2(files, callback)
|
||||
|
||||
|
||||
def makeDspDependency(lib):
|
||||
"""Returns suitable entry for <depends-on-dsp> for main libs."""
|
||||
return '%s:$(nativePaths(WXTOPDIR))build\\msw\\wx_%s.dsp' % (lib,lib)
|
||||
57
libs/wxWidgets-3.3.1/build/bakefiles/zlib.bkl
Normal file
57
libs/wxWidgets-3.3.1/build/bakefiles/zlib.bkl
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" ?>
|
||||
<makefile>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<option name="wxUSE_ZLIB"/>
|
||||
<set var="LIB_ZLIB">
|
||||
<if cond="wxUSE_ZLIB=='builtin'">
|
||||
wxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="wxUSE_ZLIB">builtin</set>
|
||||
<set var="LIB_ZLIB">
|
||||
<if cond="wxUSE_ZLIB=='builtin'">
|
||||
wxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
|
||||
</if>
|
||||
</set>
|
||||
</if>
|
||||
<set var="INC_ZLIB">
|
||||
<if cond="wxUSE_ZLIB=='builtin'">$(TOP_SRCDIR)src/zlib</if>
|
||||
</set>
|
||||
|
||||
<lib id="wxzlib" template_append="3rdparty_lib"
|
||||
cond="wxUSE_ZLIB=='builtin' and BUILDING_LIB=='1'">
|
||||
<dirname>$(LIBDIRNAME)</dirname>
|
||||
<cflags-borland>
|
||||
-w-8004 -w-8008 -w-8012 -w-8057 -w-8066
|
||||
</cflags-borland>
|
||||
<if cond="IS_MSVC">
|
||||
<!--
|
||||
Define this to get rid of many warnings about using open(),
|
||||
read() and other POSIX functions in zlib code. This is much
|
||||
more convenient than having to modify it to avoid them.
|
||||
-->
|
||||
<define>_CRT_NONSTDC_NO_WARNINGS</define>
|
||||
</if>
|
||||
<sources>
|
||||
src/zlib/adler32.c
|
||||
src/zlib/compress.c
|
||||
src/zlib/crc32.c
|
||||
src/zlib/deflate.c
|
||||
src/zlib/gzclose.c
|
||||
src/zlib/gzlib.c
|
||||
src/zlib/gzread.c
|
||||
src/zlib/gzwrite.c
|
||||
src/zlib/infback.c
|
||||
src/zlib/inffast.c
|
||||
src/zlib/inflate.c
|
||||
src/zlib/inftrees.c
|
||||
src/zlib/trees.c
|
||||
src/zlib/uncompr.c
|
||||
src/zlib/zutil.c
|
||||
</sources>
|
||||
</lib>
|
||||
|
||||
</makefile>
|
||||
Reference in New Issue
Block a user