OLD | NEW |
| (Empty) |
1 # Copyright 2009, Google Inc. | |
2 # All rights reserved. | |
3 # | |
4 # Redistribution and use in source and binary forms, with or without | |
5 # modification, are permitted provided that the following conditions are | |
6 # met: | |
7 # | |
8 # * Redistributions of source code must retain the above copyright | |
9 # notice, this list of conditions and the following disclaimer. | |
10 # * Redistributions in binary form must reproduce the above | |
11 # copyright notice, this list of conditions and the following disclaimer | |
12 # in the documentation and/or other materials provided with the | |
13 # distribution. | |
14 # * Neither the name of Google Inc. nor the names of its | |
15 # contributors may be used to endorse or promote products derived from | |
16 # this software without specific prior written permission. | |
17 # | |
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
29 | |
30 | |
31 import socket | |
32 import time | |
33 | |
34 Import('env') | |
35 | |
36 env.SConscript('icu38_o3d.scons', exports=['env']) | |
37 env.ApplySConscript([ | |
38 '$ICU38_DIR/using_icu38.scons', | |
39 ]) | |
40 | |
41 # For FRIEND_TEST in gtest_prod.h | |
42 env.Append(CPPPATH = '$GTEST_DIR/include') | |
43 | |
44 chrome_base_inputs = [ | |
45 'at_exit', | |
46 'base_paths', | |
47 'base_switches', | |
48 'command_line', | |
49 'debug_util', | |
50 'dynamic_annotations', | |
51 'file_path', | |
52 'file_util', | |
53 'histogram', | |
54 'lazy_instance', | |
55 'lock', | |
56 'logging', | |
57 'message_loop', | |
58 'message_pump_default', | |
59 'path_service', | |
60 'pickle', | |
61 'ref_counted', | |
62 'stats_table', | |
63 'string_piece', | |
64 'string_util', | |
65 'string_util_icu', | |
66 'system_monitor', | |
67 'thread_collision_warner', | |
68 'third_party/dmg_fp/dtoa', | |
69 'third_party/dmg_fp/g_fmt', | |
70 'third_party/nspr/prtime', | |
71 'thread', | |
72 'tracked', | |
73 'tracked_objects', | |
74 ] | |
75 | |
76 inputs = [ | |
77 ] | |
78 | |
79 if env.Bit('windows'): | |
80 env.Append(CCFLAGS=['/FIstdlib.h']) | |
81 chrome_base_inputs += [ | |
82 'base_paths_win', | |
83 'condition_variable_win', | |
84 'debug_util_win', | |
85 'file_util_win', | |
86 'lock_impl_win', | |
87 'message_pump_win', | |
88 'platform_thread_win', | |
89 'process_util_win', | |
90 'registry', | |
91 'shared_memory_win', | |
92 'sys_info_win', | |
93 'sys_string_conversions_win', | |
94 'system_monitor_win', | |
95 'thread_local_storage_win', | |
96 'thread_local_win', | |
97 'time_win', | |
98 'waitable_event_win', | |
99 'win_util', | |
100 ] | |
101 # The following are cross-platform, but are not needed on linux or mac, and | |
102 # pull in more third-party dependencies on those platforms, so | |
103 # they are not built on all platforms currently. | |
104 # TODO: get the dependencies straightened out. | |
105 chrome_base_inputs += [ | |
106 'cpu', | |
107 'time', | |
108 'timer', | |
109 ] | |
110 | |
111 chrome_base_inputs_posix = [ | |
112 'atomicops_internals_x86_gcc', | |
113 'condition_variable_posix', | |
114 'debug_util_posix', | |
115 'file_util_posix', | |
116 'lock_impl_posix', | |
117 'message_pump_libevent', | |
118 'platform_thread_posix', | |
119 'process_util_posix', | |
120 'shared_memory_posix', | |
121 'string16', | |
122 'sys_info_posix', | |
123 'time', | |
124 'time_posix', | |
125 'thread_local_posix', | |
126 'thread_local_storage_posix', | |
127 'waitable_event_posix', | |
128 ] | |
129 chrome_base_inputs_mm = [] | |
130 | |
131 if env.Bit('linux'): | |
132 chrome_base_inputs += chrome_base_inputs_posix | |
133 chrome_base_inputs += [ | |
134 'base_paths_linux', | |
135 'file_util_linux', | |
136 'message_pump_glib', | |
137 'process_util_linux', | |
138 'sys_string_conversions_linux', | |
139 ] | |
140 | |
141 if env.Bit('mac'): | |
142 chrome_base_inputs += chrome_base_inputs_posix | |
143 chrome_base_inputs_mm += [ | |
144 'base_paths_mac', | |
145 'mac_util', | |
146 'file_util_mac', | |
147 'message_pump_mac', | |
148 'platform_thread_mac', | |
149 'process_util_mac', | |
150 'scoped_nsautorelease_pool', | |
151 'sys_string_conversions_mac', | |
152 ] | |
153 | |
154 inputs += env.MakeObjects(chrome_base_inputs, '$CHROME_SRC_DIR/base', 'cc') | |
155 inputs += env.MakeObjects(chrome_base_inputs_mm, '$CHROME_SRC_DIR/base', 'mm') | |
156 | |
157 # Build a library called 'o3d_base' from the input sources. | |
158 o3d_base_lib = env.ComponentLibrary('o3d_base', inputs) | |
OLD | NEW |