• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Boost.Wave: A Standard compliant C++ preprocessor library
2#
3# Boost Wave Library Build Jamfile
4#
5# http://www.boost.org/
6#
7# Copyright (c) 2001-2011 Hartmut Kaiser. Distributed under the Boost
8# Software License, Version 1.0. (See accompanying file
9# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10
11project boost/wave
12    : requirements
13      <link>shared:<define>BOOST_ALL_DYN_LINK=1
14      <link>static:<define>BOOST_THREAD_USE_LIB=1
15      <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
16      <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
17    : source-location ../src
18    ;
19
20SOURCES =
21    instantiate_cpp_exprgrammar
22    instantiate_cpp_grammar
23    instantiate_cpp_literalgrs
24    instantiate_defined_grammar
25    instantiate_has_include_grammar
26    instantiate_predef_macros
27    instantiate_re2c_lexer
28    instantiate_re2c_lexer_str
29    token_ids
30    wave_config_constant
31    cpplexer/re2clex/aq
32    cpplexer/re2clex/cpp_re
33    ;
34
35lib boost_wave
36    :
37    $(SOURCES)
38    ../../filesystem/build//boost_filesystem
39    ../../thread/build//boost_thread
40    ;
41
42for local source in $(SOURCES)
43{
44    local requirements ;
45
46    # workaround for compiler bug
47    requirements += <toolset-msvc:version>7.1:<rtti>off ;
48    requirements += <toolset-msvc:version>7.1_stlport4:<rtti>off ;
49
50    if $(source) in cpplexer/re2clex/cpp_re
51    {
52        requirements += <warnings>off ;
53    }
54
55    if $(source) in instantiate_re2c_lexer instantiate_re2c_lexer_str
56    {
57        requirements += <toolset>msvc-8.0:<define>_CRT_SECURE_NO_WARNINGS ;
58    }
59
60    obj $(source) : $(source).cpp : $(requirements) ;
61}
62
63boost-install boost_wave ;
64