OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 __doc__ = """ | 5 __doc__ = """ |
6 Configuration for building base.lib / libbase.a. | 6 Configuration for building base.lib / libbase.a. |
7 """ | 7 """ |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
11 env = env.Clone() | 11 env = env.Clone() |
12 | 12 |
13 env.ApplySConscript([ | 13 env.ApplySConscript([ |
14 '$ICU38_DIR/using_icu38.scons', | 14 '$ICU38_DIR/using_icu38.scons', |
15 ]) | 15 ]) |
16 | 16 |
17 if env['PLATFORM'] == 'win32': | 17 if env['PLATFORM'] == 'win32': |
18 env.Prepend( | 18 env.Prepend( |
19 CCFLAGS = [ | 19 CCFLAGS = [ |
20 '/Wp64', | 20 '/Wp64', |
21 ], | 21 ], |
22 ) | 22 ) |
23 | 23 |
24 # These base files work on *all* platforms; files that don't work | 24 # Some files from this list are not yet ported. They are removed from |
25 # cross-platform live below. | 25 # the list, see code below. |
26 input_files = [ | 26 input_files = [ |
27 'at_exit.cc', | 27 'at_exit.cc', |
28 'base_paths.cc', | 28 'base_paths.cc', |
29 'base_switches.cc', | 29 'base_switches.cc', |
30 'bzip2_error_handler.cc', | 30 'bzip2_error_handler.cc', |
31 'clipboard.cc', | 31 'clipboard.cc', |
32 'clipboard_util.cc', | 32 'clipboard_util.cc', |
33 'command_line.cc', | 33 'command_line.cc', |
34 'debug_util.cc', | 34 'debug_util.cc', |
35 'event_recorder.cc', | 35 'event_recorder.cc', |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 ]) | 102 ]) |
103 | 103 |
104 if env['PLATFORM'] in ('posix', 'darwin'): | 104 if env['PLATFORM'] in ('posix', 'darwin'): |
105 # Remove files that still need to be ported from the input_files list. | 105 # Remove files that still need to be ported from the input_files list. |
106 # TODO(port): delete files from this list as they get ported. | 106 # TODO(port): delete files from this list as they get ported. |
107 to_be_ported_files = [ | 107 to_be_ported_files = [ |
108 'clipboard_util.cc', | 108 'clipboard_util.cc', |
109 'event_recorder.cc', | 109 'event_recorder.cc', |
110 'file_version_info.cc', | 110 'file_version_info.cc', |
111 | 111 |
112 # This group all depends on MessageLoop. | |
113 | |
114 # We have an implementation of idle_timer, but it's unclear if we want it | 112 # We have an implementation of idle_timer, but it's unclear if we want it |
115 # yet, so it's commented out for now. Leave this 'unported'. | 113 # yet, so it's commented out for now. Leave this 'unported'. |
116 'idle_timer.cc', | 114 'idle_timer.cc', |
117 | 115 |
118 'object_watcher.cc', | 116 'object_watcher.cc', |
119 'watchdog.cc', | |
120 | 117 |
121 'resource_util.cc', # Uses HMODULE, but may be abstractable. | 118 'resource_util.cc', # Uses HMODULE, but may be abstractable. |
122 ] | 119 ] |
123 for remove in to_be_ported_files: | 120 for remove in to_be_ported_files: |
124 input_files.remove(remove) | 121 input_files.remove(remove) |
125 | 122 |
126 if env['PLATFORM'] == 'win32': | 123 if env['PLATFORM'] == 'win32': |
127 input_files.extend([ | 124 input_files.extend([ |
128 'base_drag_source.cc', | 125 'base_drag_source.cc', |
129 'base_drop_target.cc', | 126 'base_drop_target.cc', |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 'hmac_nss.cc', | 202 'hmac_nss.cc', |
206 'message_pump_glib.cc', | 203 'message_pump_glib.cc', |
207 'nss_init.cc', | 204 'nss_init.cc', |
208 'process_posix.cc', | 205 'process_posix.cc', |
209 'process_util_linux.cc', | 206 'process_util_linux.cc', |
210 'sys_string_conversions_linux.cc', | 207 'sys_string_conversions_linux.cc', |
211 'worker_pool.cc', | 208 'worker_pool.cc', |
212 ]) | 209 ]) |
213 | 210 |
214 env.ChromeStaticLibrary('base', input_files) | 211 env.ChromeStaticLibrary('base', input_files) |
OLD | NEW |