-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjamroot.jam
59 lines (47 loc) · 2.05 KB
/
jamroot.jam
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
################################################################################
# Copyright (c) 2001-2010 Joel de Guzman
# Copyright (c) 2001-2010 Hartmut Kaiser
# Copyright (c) 2010 Bryce Lelbach
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file BOOST_LICENSE_1_0.rst or copy at http://www.boost.org/LICENSE_1_0.txt)
################################################################################
import os ;
import path ;
import string ;
constant BOOST_ROOT : [ os.environ BOOST_ROOT ] ;
constant SHEOL_ROOT : [ os.environ SHEOL_ROOT ] ;
constant PRANA_ROOT : [ path.pwd ] ;
constant BOOST_PROGRAM_OPTIONS
: $(BOOST_ROOT)/libs/program_options/build//boost_program_options ;
constant BOOST_FILESYSTEM
: $(BOOST_ROOT)/libs/filesystem/build//boost_filesystem ;
constant VALGRIND : [ string.join "valgrind"
"--suppressions=$(PRANA_ROOT)/prana.supp"
"--gen-suppressions=all"
"--memcheck:leak-check=full"
"--memcheck:undef-value-errors=no"
"--error-exitcode=1"
: " " ] ;
variant release_with_valgrind : release : <testing.launcher>"$(VALGRIND)" ;
variant debug_with_valgrind : debug : <testing.launcher>"$(VALGRIND)" ;
use-project /prana : $(PRANA_ROOT)/build ;
project
: requirements
<toolset>gcc:<cxxflags>-fvisibility=hidden
<toolset>gcc:<cxxflags>-ftemplate-depth-500
<toolset>gcc:<cxxflags>-fdiagnostics-show-option
<toolset>gcc:<cxxflags>-Wno-multichar
<toolset>gcc:<cxxflags>-Wattributes
<toolset>gcc:<cxxflags>-Wextra
<toolset>clang:<cxxflags>-fdiagnostics-show-option
<toolset>clang:<cxxflags>-Wno-multichar
<warnings>all
<include>$(PRANA_ROOT)
<include>$(SHEOL_ROOT)
<include>$(BOOST_ROOT)
: build-dir bin.v2
: default-build release_with_valgrind debug_with_valgrind release debug
;
build-project $(PRANA_ROOT)/test/phxpr ;
build-project $(PRANA_ROOT)/test/prana ;