File: Jamfile.v2

package info (click to toggle)
boost1.42 1.42.0-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 277,864 kB
  • ctags: 401,076
  • sloc: cpp: 1,235,659; xml: 74,142; ansic: 41,313; python: 26,756; sh: 11,840; cs: 2,118; makefile: 655; perl: 494; yacc: 456; asm: 353; csh: 6
file content (55 lines) | stat: -rw-r--r-- 1,987 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Boost serialization Library Build Jamfile
#  (C) Copyright Robert Ramey 2002-2004.
#  Use, modification, and distribution are subject to the
#  Boost Software License, Version 1.0. (See accompanying file
#  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
#  See http://www.boost.org/libs/serialization for the library home page.

project libs/serialization/example
    : id serialization_test
    : requirements <library>../build//boost_serialization
    ;

rule demo_bsl_run ( demo-name : othersources * : requirements * )
{
    return [ run
        # sources
            $(demo-name).cpp 
            $(othersources).cpp
        : # command
        : # input files
        : # requirements
            # toolset suppress-warnings
            <toolset>gcc:<cxxflags>"-Wno-non-virtual-dtor -Wno-ctor-dtor-privacy"
            <toolset>msvc-8.0:<cxxflags>"-wd4996"
            <toolset>borland:<cxxflags>"-w-8080 -w-8071 -w-8057 -w-8062 -w-8008 -w-0018 -w-8066"
            # toolset optimizations
            <toolset>gcc:<cxxflags>"-ftemplate-depth-255"
            <toolset>msvc:<cxxflags>"-Gy"
            # toolset shared library support
            <toolset>como,<runtime-link>shared:<build>no
            <toolset>msvc,<stdlib>stlport,<runtime-link>shared:<build>no
            <toolset>cw,<runtime-link>static:<build>no
            $(requirements)
         : # test name
            $(demo-name)
       ]
    ;
}

test-suite "demo-suite" :
    # demos
    [ demo_bsl_run demo ]
    [ demo_bsl_run demo_auto_ptr ]
    [ demo_bsl_run demo_exception ]
    [ demo_bsl_run demo_fast_archive ]
    [ demo_bsl_run demo_pimpl : demo_pimpl_A ]
    [ demo_bsl_run demo_polymorphic : demo_polymorphic_A ]
    [ demo_bsl_run demo_portable_archive : portable_binary_iarchive portable_binary_oarchive ]
    [ demo_bsl_run demo_shared_ptr ]
    [ demo_bsl_run demo_xml ]
    [ demo_bsl_run demo_xml_save ]
    [ demo_bsl_run demo_xml_load : : <dependency>demo_xml_save ]
;