File: Jamfile.v2

package info (click to toggle)
boost1.88 1.88.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 576,932 kB
  • sloc: cpp: 4,149,234; xml: 136,789; ansic: 35,092; python: 33,910; asm: 5,698; sh: 4,604; ada: 1,681; makefile: 1,633; pascal: 1,139; perl: 1,124; sql: 640; yacc: 478; ruby: 271; java: 77; lisp: 24; csh: 6
file content (118 lines) | stat: -rw-r--r-- 5,397 bytes parent folder | download | duplicates (3)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Boost Chrono Library Build Jamfile

# Copyright Beman Dawes 2002, 2006, 2008
# Copyright 2009-2012 Vicente J.Botet Escriba.

# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or www.boost.org/LICENSE_1_0.txt)

# See library home page at http://www.boost.org/libs/chrono

import-search /boost/config/checks ;
import config : requires ;

local cxx11-requirements = [ requires cxx11_hdr_ratio cxx11_template_aliases cxx11_decltype cxx11_char16_t cxx11_char32_t ] ;

project
    : source-location ../src
    : common-requirements
        <include>../include
        <library>$(boost_dependencies)
    : requirements
        <target-os>freebsd:<linkflags>"-lrt"
        <target-os>linux:<linkflags>"-lrt -lpthread"
        <toolset>pgi:<linkflags>"-lrt"
        #<threading>single:<define>BOOST_CHRONO_THREAD_DISABLED
        #<define>BOOST_ERROR_CODE_HEADER_ONLY
        #<define>BOOST_COMMON_TYPE_USES_STATIC_ASSERT
        #<define>BOOST_RATIO_USES_STATIC_ASSERT
        #<define>BOOST_CHRONO_USES_STATIC_ASSERT
        #<define>BOOST_COMMON_TYPE_USES_MPL_ASSERT
        #<define>BOOST_RATIO_USES_MPL_ASSERT
        #<define>BOOST_CHRONO_USES_MPL_ASSERT
        #<define>BOOST_COMMON_TYPE_USES_ARRAY_ASSERT
        #<define>BOOST_RATIO_USES_ARRAY_ASSERT
        #<define>BOOST_CHRONO_USES_ARRAY_ASSERT
        <toolset>sun:<define>__typeof__=__typeof__
        #<toolset>gcc-3.4.4:<linkflags>--enable-auto-import
        #<toolset>gcc-4.3.4:<linkflags>--enable-auto-import
        #<toolset>gcc-mingw-4.4.0:<linkflags>--enable-auto-import
        #<toolset>gcc-mingw-4.5.0:<linkflags>--enable-auto-import
        <warnings>all
        <toolset>gcc:<warnings>extra
        #<toolset>gcc:<warnings>pedantic
        <toolset>gcc:<cxxflags>-Wno-long-long
        #<toolset>gcc:<cxxflags>-Wno-variadic-macros
        <toolset>gcc-4:<cxxflags>-Wno-variadic-macros
        <toolset>gcc-5:<cxxflags>-Wno-variadic-macros
        <toolset>darwin:<warnings>pedantic
        <toolset>darwin:<cxxflags>-Wno-long-long
        #<toolset>darwin:<cxxflags>-Wno-variadic-macros
        <toolset>darwin-4:<cxxflags>-Wno-variadic-macros
        <toolset>darwin-5:<cxxflags>-Wno-variadic-macros
        #<toolset>pathscale:<cxxflags>-Wextra
        <toolset>pathscale:<cxxflags>-Wno-long-long
        <toolset>pathscale:<cxxflags>-pedantic
        <toolset>clang:<warnings>pedantic
        <toolset>clang:<cxxflags>-Wno-long-long
        <toolset>clang:<cxxflags>-Wno-variadic-macros
        <toolset>gcc-4.4.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
        <toolset>gcc-4.5.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
        <toolset>gcc-4.6.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
        <toolset>gcc-4.6.3,<target-os>windows:<cxxflags>-fdiagnostics-show-option
        <toolset>gcc-4.7.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
        <toolset>gcc-4.8.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
        <toolset>msvc:<cxxflags>/wd4512

# Note: Some of the remarks from the Intel compiler are disabled
# remark #193: zero used for undefined preprocessing identifier "XXX"
# remark #304: access control not specified ("public" by default)
# remark #383: value copied to temporary, reference to temporary used
# remark #444: destructor for base class "XXX" (declared at line YYY") is not virtual
# remark #593: variable "XXX" was set but never used
# remark #981: operands are evaluated in unspecified order
# remark #1418: external function definition with no prior declaration
# remark #2415: variable "XXX" of static storage duration was declared but never referenced

        <toolset>intel:<cxxflags>-wd193,304,383,444
        <toolset>intel:<cxxflags>-wd593,981
        <toolset>intel:<cxxflags>-wd1418
        <toolset>intel:<cxxflags>-wd2415



    : usage-requirements  # pass these requirement to dependents (i.e. users)
        <threading>single:<define>BOOST_CHRONO_THREAD_DISABLED
        #<define>BOOST_ERROR_CODE_HEADER_ONLY
        #<define>BOOST_COMMON_TYPE_USES_STATIC_ASSERT
        #<define>BOOST_RATIO_USES_STATIC_ASSERT
        #<define>BOOST_CHRONO_USES_STATIC_ASSERT
        #<define>BOOST_COMMON_TYPE_USES_MPL_ASSERT
        #<define>BOOST_RATIO_USES_MPL_ASSERT
        #<define>BOOST_CHRONO_USES_MPL_ASSERT
        #<define>BOOST_COMMON_TYPE_USES_ARRAY_ASSERT
        #<define>BOOST_RATIO_USES_ARRAY_ASSERT
        #<define>BOOST_CHRONO_USES_ARRAY_ASSERT
        #<toolset>vacpp:<define>BOOST_COMMON_TYPE_DONT_USE_TYPEOF
        <toolset>vacpp:<define>BOOST_TYPEOF_EMULATION
        <toolset>sun:<define>__typeof__=__typeof__

        <link>shared:<define>BOOST_CHRONO_DYN_LINK=1
        <link>static:<define>BOOST_CHRONO_STATIC_LINK=1
        <define>BOOST_CHRONO_NO_LIB=1
        <toolset>gcc-3.4.4:<linkflags>--enable-auto-import
        <toolset>gcc-4.3.4:<linkflags>--enable-auto-import
        <toolset>gcc-4.4.0,<target-os>windows:<linkflags>--enable-auto-import
        <toolset>gcc-4.5.0,<target-os>windows:<linkflags>--enable-auto-import
    ;

SOURCES = chrono thread_clock process_cpu_clocks ;


lib boost_chrono
    : $(SOURCES).cpp
    :
    $(cxx11-requirements)
    <link>shared:<define>BOOST_CHRONO_DYN_LINK=1 # tell source we're building dll's
    <link>static:<define>BOOST_CHRONO_STATIC_LINK=1 # tell source we're building static lib's
    ;