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
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Template for wxWindows samples: -->
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
|
|
<set var="MACOSX_RESOURCES">
|
|
|
|
<if cond="TOOLKIT=='MAC'">
|
2003-08-10 15:06:14 -04:00
|
|
|
Carbon.r $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).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>
|
2003-08-10 15:06:14 -04:00
|
|
|
<include>$(SRCDIR)/$(WXTOPDIR)samples</include> <!-- for .rc files -->
|
2003-08-06 11:41:49 -04:00
|
|
|
<win32-res>$(WXTOPDIR)samples/sample.rc</win32-res>
|
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>
|
|
|
|
</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>
|
|
|
|
<__command>$(LF)$(SAMPLES_RPATH_POSTLINK)</__command>
|
|
|
|
</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>
|
|
|
|
<__command>$(SAMPLES_RPATH_POSTLINK)</__command>
|
|
|
|
</if>
|
2003-07-20 18:00:40 -04:00
|
|
|
</template>
|
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-08-10 17:21:23 -04:00
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
|
|
<include file="mac_bundles.bkl"/>
|
|
|
|
</if>
|
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
</makefile>
|