File: Jamfile.jam

package info (click to toggle)
boost1.90 1.90.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 593,168 kB
  • sloc: cpp: 4,190,642; xml: 196,648; python: 34,618; ansic: 23,145; asm: 5,468; sh: 3,776; makefile: 1,162; perl: 1,020; sql: 728; ruby: 676; yacc: 478; java: 77; lisp: 24; csh: 6
file content (62 lines) | stat: -rw-r--r-- 2,150 bytes parent folder | download | duplicates (2)
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
# Copyright (c) 2022 Klemens D. Morgenstern
#
# Distributed under 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)


lib ws2_32 ;
lib shell32 ;
lib Advapi32 ;
lib Ntdll ;
lib user32 ;
lib Bcrypt ;

project : requirements
  <library>/boost/process//boost_process
  <define>BOOST_ASIO_NO_DEPRECATED
  <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
  <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
  <toolset>msvc:<cxxflags>/bigobj
  <target-os>windows:<define>WIN32_LEAN_AND_MEAN
  <target-os>windows:<define>_WIN32_WINNT=0x0601
  <target-os>linux:<linkflags>-lpthread
  <target-os>freebsd:<linkflags>-lpthread
  <target-os>freebsd:<linkflags>-lkvm
  <target-os>bsd:<linkflags>-lpthread
  <target-os>bsd:<linkflags>-lkvm
  <target-os>netbsd:<linkflags>-lpthread
  <target-os>netbsd:<linkflags>-lkvm
  <target-os>openbsd:<linkflags>-lpthread
  <target-os>openbsd:<linkflags>-lkvm
  <target-os>solaris:<linkflags>-lpthread
  <target-os>solaris:<linkflags>-lkvm
  <os>NT,<toolset>cw:<library>ws2_32
  <os>NT,<toolset>gcc:<library>ws2_32
  <os>NT,<toolset>gcc:<library>Bcrypt
  <library>/boost/test//included
;

import testing ;

exe target : target.cpp :
    <warnings>off <target-os>windows:<source>shell32
                  <target-os>windows:<source>Ntdll

    ;

local test_impl = test_impl.cpp /boost/process//boost_process /boost/test//boost_unit_test_framework ;

test-suite standalone :
    [ run utf8.cpp        $(test_impl) ]
    [ run cstring_ref.cpp $(test_impl) ]
    [ run environment.cpp $(test_impl) ]
    [ run shell.cpp       $(test_impl) ]
    ;

test-suite with_target :
    [ run pid.cpp     $(test_impl) : --log_level=all --catch_system_errors=no -- : target ]
    [ run process.cpp $(test_impl) : --log_level=all --catch_system_errors=no -- : target ]
    [ run windows.cpp $(test_impl) : --log_level=all --catch_system_errors=no -- : target : <build>no <target-os>windows:<build>yes <target-os>windows:<source>Advapi32 ]
    [ run ext.cpp     $(test_impl) : --log_level=all --catch_system_errors=no -- : target : <target-os>darwin:<build>no ]
    ;