2003-06-23 15:50:43 -04:00
|
|
|
<?xml version="1.0" ?>
|
2003-07-06 17:51:34 -04:00
|
|
|
<!-- $Id$ -->
|
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<makefile>
|
|
|
|
|
|
|
|
<include file="common.bkl"/>
|
2003-07-06 17:51:34 -04:00
|
|
|
<set var="file_common_samples_included">1</set>
|
2003-06-23 15:50:43 -04:00
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
2004-05-23 10:56:36 -04:00
|
|
|
<!-- Template for wxWidgets samples: -->
|
2003-06-23 15:50:43 -04:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
|
|
<set var="MACOSX_RESOURCES">
|
|
|
|
<if cond="TOOLKIT=='MAC'">
|
2005-04-14 18:11:55 -04:00
|
|
|
Carbon.r sample.r
|
2003-06-23 15:50:43 -04:00
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</if>
|
2003-06-27 15:22:12 -04:00
|
|
|
|
|
|
|
<set var="DLLFLAG">
|
|
|
|
<if cond="SHARED=='1'">WXUSINGDLL</if>
|
|
|
|
</set>
|
2003-06-23 15:50:43 -04:00
|
|
|
|
2003-07-20 18:00:40 -04:00
|
|
|
<template id="wx_util_b" template="wx">
|
2003-06-23 15:50:43 -04:00
|
|
|
<include>$(SRCDIR)</include>
|
2003-06-27 15:22:12 -04:00
|
|
|
<define>$(DLLFLAG)</define>
|
2003-07-01 17:50:34 -04:00
|
|
|
</template>
|
|
|
|
|
2003-07-20 18:00:40 -04:00
|
|
|
<template id="wx_util" template="wx_util_b">
|
2003-06-27 15:22:12 -04:00
|
|
|
<app-type>gui</app-type>
|
2003-06-23 15:50:43 -04:00
|
|
|
<mac-res cond="FORMAT=='autoconf'">$(MACOSX_RESOURCES)</mac-res>
|
2004-02-10 06:19:46 -05:00
|
|
|
<!-- resource files includes: -->
|
|
|
|
<include>$(SRCDIR)/$(WXTOPDIR)samples</include>
|
|
|
|
<!-- this include is not added via <include> for autoconf, see
|
|
|
|
common.bkl: -->
|
2005-11-08 17:49:46 -05:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
|
|
<res-include>$(RCDEFDIR)</res-include>
|
2005-11-08 18:17:24 -05:00
|
|
|
<res-include>$(TOP_SRCDIR)include</res-include>
|
2005-11-08 17:49:46 -05:00
|
|
|
</if>
|
2004-02-10 06:19:46 -05:00
|
|
|
|
2003-08-06 11:41:49 -04:00
|
|
|
<win32-res>$(WXTOPDIR)samples/sample.rc</win32-res>
|
2003-10-01 06:23:27 -04:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
|
|
<wx-os2-lib-resource/>
|
|
|
|
</if>
|
2004-08-15 15:47:36 -04:00
|
|
|
|
|
|
|
<!-- FIXME: temporary, until bakefile can reuse existing pch files -->
|
|
|
|
<if cond="FORMAT!='autoconf'">
|
|
|
|
<define>NOPCH</define>
|
|
|
|
</if>
|
2003-06-23 15:50:43 -04:00
|
|
|
</template>
|
2003-07-01 17:50:34 -04:00
|
|
|
|
2003-07-20 18:00:40 -04:00
|
|
|
<template id="wx_util_console" template="wx_util_b">
|
2003-07-01 17:50:34 -04:00
|
|
|
<app-type>console</app-type>
|
2005-02-10 11:26:34 -05:00
|
|
|
<define>wxUSE_GUI=0</define>
|
2003-07-01 17:50:34 -04:00
|
|
|
</template>
|
2003-07-20 18:00:40 -04:00
|
|
|
|
|
|
|
<template id="wx_sample" template="wx_util">
|
2003-08-10 12:38:38 -04:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
2003-08-10 17:21:23 -04:00
|
|
|
<wx-mac-app-bundle/>
|
2003-08-10 12:38:38 -04:00
|
|
|
<ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
|
2005-01-19 05:56:37 -05:00
|
|
|
<postlink-command>$(SAMPLES_RPATH_POSTLINK)</postlink-command>
|
2003-08-10 12:38:38 -04:00
|
|
|
</if>
|
2003-07-20 18:00:40 -04:00
|
|
|
</template>
|
|
|
|
<template id="wx_sample_console" template="wx_util_console">
|
2003-08-10 12:38:38 -04:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
|
|
<ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
|
2005-01-19 05:56:37 -05:00
|
|
|
<postlink-command>$(SAMPLES_RPATH_POSTLINK)</postlink-command>
|
2003-08-10 12:38:38 -04:00
|
|
|
</if>
|
2003-07-20 18:00:40 -04:00
|
|
|
</template>
|
2004-03-03 17:56:16 -05:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Support for samples data files: -->
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
|
|
<define-rule name="wx-data" extends="copy-files">
|
|
|
|
<template>
|
|
|
|
<dependency-of>all</dependency-of>
|
|
|
|
<dstdir>$(BUILDDIR)</dstdir>
|
|
|
|
<srcdir>$(SRCDIR)</srcdir>
|
|
|
|
</template>
|
2003-07-06 17:51:34 -04:00
|
|
|
|
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<define-tag name="files">
|
|
|
|
<clean-files>
|
|
|
|
$(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
|
|
|
|
</clean-files>
|
|
|
|
</define-tag>
|
2003-07-06 17:51:34 -04:00
|
|
|
-->
|
2003-06-23 15:50:43 -04:00
|
|
|
</define-rule>
|
2003-10-01 06:23:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Misc platform specialities: -->
|
|
|
|
<!-- =============================================================== -->
|
2003-06-23 15:50:43 -04:00
|
|
|
|
2003-08-10 17:21:23 -04:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
|
|
<include file="mac_bundles.bkl"/>
|
2003-10-01 06:23:27 -04:00
|
|
|
|
|
|
|
<!--
|
|
|
|
A hack to include precompiled OS/2 resource file in apps instead of
|
|
|
|
compiling it from .rc file (gcc on OS/2 doesn't ship with resource
|
|
|
|
compiler):
|
|
|
|
-->
|
|
|
|
<define-tag name="wx-os2-lib-resource" rules="exe">
|
|
|
|
<set var="os2_lib_res">
|
|
|
|
<if cond="PLATFORM_OS2=='1'">
|
|
|
|
$(TOP_SRCDIR)include/wx/os2/wx.res
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
<set var="__objects" append="1">$(os2_lib_res)</set>
|
|
|
|
</define-tag>
|
2003-08-10 17:21:23 -04:00
|
|
|
</if>
|
2003-10-01 06:23:27 -04:00
|
|
|
|
2003-08-10 17:21:23 -04:00
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
</makefile>
|