File tree Expand file tree Collapse file tree 3 files changed +34
-30
lines changed Expand file tree Collapse file tree 3 files changed +34
-30
lines changed Original file line number Diff line number Diff line change 1
- # Copyright René Ferdinand Rivera Morell 2023-2024
1
+ # Copyright 2023-2024 René Ferdinand Rivera Morell
2
+ # Copyright 2024 Peter Dimov
2
3
# Distributed under the Boost Software License, Version 1.0.
3
- # (See accompanying file LICENSE_1_0.txt or copy at
4
- # http://www.boost.org/LICENSE_1_0.txt)
4
+ # https://www.boost.org/LICENSE_1_0.txt
5
5
6
6
require-b2 5.2 ;
7
7
8
8
constant boost_dependencies :
9
- /boost/config//boost_config ;
10
-
11
- project /boost/timer
12
- : common-requirements
13
- <include>include
9
+ /boost/config//boost_config
14
10
;
15
11
12
+ project /boost/timer ;
13
+
16
14
explicit
17
15
[ alias boost_timer : build//boost_timer ]
18
16
[ alias all : boost_timer build test ]
@@ -21,4 +19,3 @@ explicit
21
19
call-if : boost-library timer
22
20
: install boost_timer
23
21
;
24
-
Original file line number Diff line number Diff line change 7
7
8
8
# See library home page at http://www.boost.org/libs/timer
9
9
10
- SOURCES = auto_timers_construction cpu_timer ;
11
-
12
10
constant boost_dependencies_private :
13
11
/boost/io//boost_io
14
12
/boost/predef//boost_predef
15
13
;
16
14
17
15
project
18
- : common-requirements <library>$(boost_dependencies)
19
- : requirements <library>$(boost_dependencies_private) ;
20
-
21
- lib boost_timer
22
- : ../src/$(SOURCES).cpp
23
- : # requirements
24
- <link>shared:<define>BOOST_TIMER_DYN_LINK=1
25
- <link>static:<define>BOOST_TIMER_STATIC_LINK=1
26
- : # default-build
27
- : # usage-requirements
28
- <link>shared:<define>BOOST_TIMER_DYN_LINK=1
29
- <link>static:<define>BOOST_TIMER_STATIC_LINK=1
30
- <define>BOOST_TIMER_NO_LIB=1
31
- ;
16
+ : common-requirements
17
+
18
+ <include>../include
19
+
20
+ <library>$(boost_dependencies)
21
+
22
+ <link>shared:<define>BOOST_TIMER_DYN_LINK=1
23
+ <link>static:<define>BOOST_TIMER_STATIC_LINK=1
24
+
25
+ <define>BOOST_TIMER_NO_LIB=1
26
+
27
+ : requirements
28
+
29
+ <library>$(boost_dependencies_private)
30
+ ;
31
+
32
+ local SOURCES = auto_timers_construction cpu_timer ;
33
+
34
+ lib boost_timer : ../src/$(SOURCES).cpp ;
Original file line number Diff line number Diff line change @@ -15,22 +15,26 @@ path-constant parent : .. ; # so that inspect will start in boost-root/libs/tim
15
15
project
16
16
: requirements
17
17
<library>/boost/timer//boost_timer
18
+ <library>/boost/core//boost_core
19
+ <library>/boost/detail//boost_detail
18
20
;
19
21
20
- run ../example/auto_cpu_timer_example.cpp : : : <test-info>always_show_run_output ;
22
+ run ../example/auto_cpu_timer_example.cpp
23
+ : : : <test-info>always_show_run_output ;
21
24
22
- run cpu_timer_info.cpp : : : <test-info>always_show_run_output <library>/boost/detail//boost_detail ;
25
+ run cpu_timer_info.cpp
26
+ : : : <test-info>always_show_run_output ;
23
27
24
28
run cpu_timer_test.cpp
25
- : : : <test-info>always_show_run_output <library>/boost/detail//boost_detail ;
29
+ : : : <test-info>always_show_run_output ;
26
30
27
31
run ../example/timex.cpp : echo "Hello, world" : : <test-info>always_show_run_output ;
28
32
29
33
compile original_timer_test.cpp ;
30
34
31
- run chrono_conflict_test.cpp /boost/chrono//boost_chrono : : : <link>static ;
35
+ run chrono_conflict_test.cpp : : : <library> /boost/chrono//boost_chrono <link>static ;
32
36
33
- run progress_display_test.cpp /boost/core//boost_core ;
37
+ run progress_display_test.cpp ;
34
38
35
39
# run /boost/tools/inspect//inspect/<variant>release : $(parent) -text -brief : : <test-info>always_show_run_output : inspect ;
36
40
# explicit inspect ;
You can’t perform that action at this time.
0 commit comments