~e7appew/ubuntu/vivid/bombono-dvd/mux-files-with-spaces

« back to all changes in this revision

Viewing changes to .pc/3b236fb21d9f0dd59cd5f8aa4a902dfc8af2e18b.patch/libs/boost-lib/SConscript

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-05-02 22:09:31 UTC
  • Revision ID: package-import@ubuntu.com-20130502220931-pui7uqs6b468z8sb
Tags: 1.2.1-0ubuntu5
Cherry-pick patches from upstream to build against boost1.53.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
Import('boost_env')
 
3
Import('user_options_dict')
 
4
 
 
5
lib_dir = user_options_dict['LIB_BUILD_DIR']
 
6
#
 
7
# Boost.Test
 
8
#
 
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
 
13
# to sources.
 
14
butf_env.Append(CPPDEFINES = ['BOOST_TEST_DYN_LINK'])
 
15
 
 
16
make_source_files = user_options_dict['make_source_files']
 
17
 
 
18
butf_src = 'libs/test/src/'
 
19
butf_source_files = make_source_files(butf_src, 
 
20
[
 
21
    'compiler_log_formatter.cpp',
 
22
    'debug.cpp',                #1.44
 
23
    'exception_safety.cpp',     #1.44
 
24
    'execution_monitor.cpp',
 
25
    'framework.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',
 
32
    'test_tools.cpp',
 
33
    'unit_test_log.cpp',
 
34
    'unit_test_main.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'
 
40
])
 
41
 
 
42
# libboost_unit_test_framework.a
 
43
# Depends('.',
 
44
#         butf_env.Library( target = user_options_dict['LIB_BUILD_DIR']+'/boost_unit_test_framework', source = butf_source_files )
 
45
#        )
 
46
butf_env.Library( target = lib_dir+'/boost_unit_test_framework', source = butf_source_files )
 
47
 
 
48
#
 
49
# Boost.Filesystem & Boost.System
 
50
#
 
51
bfs_env = boost_env
 
52
 
 
53
bfs_src = 'libs/filesystem/'
 
54
bfs_source_files = make_source_files(bfs_src, 
 
55
[
 
56
    #'convenience.cpp',
 
57
    #'exception.cpp',
 
58
    #'operations_posix_windows.cpp',
 
59
    #'path_posix_windows.cpp'
 
60
 
 
61
    'v2/src/v2_operations.cpp',
 
62
    'v2/src/v2_path.cpp',
 
63
    'v2/src/v2_portability.cpp',
 
64
 
 
65
    # turn off B.F v3 because it is not mature (awkward warnings)
 
66
    #'v3/src/operations.cpp', 
 
67
    #'v3/src/path.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'
 
74
]) 
 
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'] )
 
78
 
 
79
#
 
80
# Boost.Regex
 
81
#
 
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)
 
84
brg_env = boost_env
 
85
 
 
86
brg_src = 'libs/regex/src/'
 
87
brg_source_files = make_source_files(brg_src, 
 
88
[
 
89
    'c_regex_traits.cpp',
 
90
    'cpp_regex_traits.cpp',
 
91
    'cregex.cpp',
 
92
    'fileiter.cpp',
 
93
    'icu.cpp',
 
94
    'instances.cpp',
 
95
    'posix_api.cpp',
 
96
    'regex.cpp',
 
97
    'regex_debug.cpp',
 
98
    'regex_raw_buffer.cpp',
 
99
    'regex_traits_defaults.cpp',
 
100
    'static_mutex.cpp',
 
101
    'w32_regex_traits.cpp',
 
102
    'wc_regex_traits.cpp',
 
103
    'wide_posix_api.cpp',
 
104
    'winstances.cpp',
 
105
    'usinstances.cpp'
 
106
])
 
107
# libboost_regex.a
 
108
brg_env.Library( target = lib_dir+'/boost_regex', source = brg_source_files )
 
109