]>
git.saurik.com Git - wxWidgets.git/blob - build/bakefiles/wxpresets/libsample/libsample.bkl
6 <include file=
"presets/wx.bkl"/>
9 <!-- a typical nice feature which wxpresets make available to wx-based programs
10 is to allow the user to build with different configurations the same project;
11 this is achieved in fundamental steps:
13 1) set a different BUILDDIR for different build configurations
14 2) set different output dirs for the libraries built with a
15 different shared/static setting
16 3) set different output names for the libraries built with a
17 different unicode/debug setting
19 the following line does step #1:
21 <set-wxlike-builddir/>
23 <!-- through the use of the 'wx-lib' and 'wxlike' template, we'll get
24 the ability to compile against any wxWidgets build using the same
25 configuration of that wxWidgets build.
27 <template id=
"my" template=
"wx-lib,wxlike">
29 <!-- wxlike-libdirname does step #2 (see initial comment) -->
32 <sources>libsample.cpp
</sources>
36 <lib id=
"static" template=
"my" cond=
"WX_SHARED=='0'">
37 <!-- wxlike-libname does step #3 (see initial comment) -->
38 <wxlike-libname prefix='sample'
>test
</wxlike-libname>
41 <dll id=
"shared" template=
"my" cond=
"WX_SHARED=='1'">
42 <!-- wxlike-dllname does step #3 (see initial comment) -->
43 <wxlike-dllname prefix='sample'
>test
</wxlike-dllname>
44 <define>WXMAKINGDLL_LIBSAMPLE
</define>