3
Import('user_options_dict')
5
lib_dir = user_options_dict['LIB_BUILD_DIR']
9
butf_env = boost_env.Clone()
10
# Boost.Test dynamic build is being built without main(),
11
# static - with main() . I find it stupid (having the difference).
12
# So, build it like dynamic so external Boost can be used without any modification
14
butf_env.Append(CPPDEFINES = ['BOOST_TEST_DYN_LINK'])
16
make_source_files = user_options_dict['make_source_files']
18
butf_src = 'libs/test/src/'
19
butf_source_files = make_source_files(butf_src,
21
'compiler_log_formatter.cpp',
23
'exception_safety.cpp', #1.44
24
'execution_monitor.cpp',
26
'interaction_based.cpp', #1.44
27
'logged_expectations.cpp', #1.44
28
'plain_report_formatter.cpp',
29
'progress_monitor.cpp',
30
'results_collector.cpp',
31
'results_reporter.cpp',
35
'unit_test_monitor.cpp',
36
'unit_test_parameters.cpp',
37
'unit_test_suite.cpp',
38
'xml_log_formatter.cpp',
39
'xml_report_formatter.cpp'
42
# libboost_unit_test_framework.a
44
# butf_env.Library( target = user_options_dict['LIB_BUILD_DIR']+'/boost_unit_test_framework', source = butf_source_files )
46
butf_env.Library( target = lib_dir+'/boost_unit_test_framework', source = butf_source_files )
49
# Boost.Filesystem & Boost.System
53
bfs_src = 'libs/filesystem/'
54
bfs_source_files = make_source_files(bfs_src,
58
#'operations_posix_windows.cpp',
59
#'path_posix_windows.cpp'
61
'v2/src/v2_operations.cpp',
63
'v2/src/v2_portability.cpp',
65
# turn off B.F v3 because it is not mature (awkward warnings)
66
#'v3/src/operations.cpp',
68
#'v3/src/portability.cpp',
69
#'v3/src/utf8_codecvt_facet.cpp',
70
#'v3/src/codecvt_error_category.cpp',
71
#'v3/src/path_traits.cpp',
72
#'v3/src/unique_path.cpp',
73
#'v3/src/windows_file_codecvt.cpp'
75
# libboost_filesystem.a
76
bfs_env.Library( target = lib_dir+'/boost_filesystem', source = bfs_source_files )
77
bfs_env.Library( target = lib_dir+'/boost_system', source = ['libs/system/src/error_code.cpp'] )
82
# If there will be need for ICU then add "-DBOOST_HAS_ICU=1" + corresponding lib for linking,
83
# see libs/regex/build/Jamfile(Jamfile.v2)
86
brg_src = 'libs/regex/src/'
87
brg_source_files = make_source_files(brg_src,
90
'cpp_regex_traits.cpp',
98
'regex_raw_buffer.cpp',
99
'regex_traits_defaults.cpp',
101
'w32_regex_traits.cpp',
102
'wc_regex_traits.cpp',
103
'wide_posix_api.cpp',
108
brg_env.Library( target = lib_dir+'/boost_regex', source = brg_source_files )