2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

Add new example.

[SVN r21665]
This commit is contained in:
Vladimir Prus
2004-01-13 09:57:55 +00:00
parent 9e5bdd213d
commit 5ff4bd0451
6 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
# By default, build the project with two variants
# we've defined in project-root.jam
project
: default-build crazy super_release
;
exe a : a.cpp libs//l ;

3
v2/example/variant/a.cpp Normal file
View File

@@ -0,0 +1,3 @@
void l();
int main() { l(); return 0; }

View File

@@ -0,0 +1,2 @@
lib l : l.cpp ;

View File

@@ -0,0 +1,4 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
void l() {}

View File

@@ -0,0 +1,10 @@
# Define a build variant which is just combination
# of four properties.
variant crazy : <optimization>speed <inlining>off
<debug-symbols>on <profiling>on ;
# Define a built variant inherited from 'release'.
# It defines one new property and get all properties
# from parent variant.
variant super_release : release : <define>USE_ASM ;

View File

@@ -0,0 +1,7 @@
This example shows how user can create his own build variants.
Two variants are defined: "crazy", which is just random combination
of properties, and "super-release", which is inherited from "release",
and differs by a single define.
See the project-root.jam for the definitions.