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 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 'time_format.cc', | 80 'time_format.cc', |
81 'timer.cc', | 81 'timer.cc', |
82 'trace_event.cc', | 82 'trace_event.cc', |
83 'tracked.cc', | 83 'tracked.cc', |
84 'tracked_objects.cc', | 84 'tracked_objects.cc', |
85 'values.cc', | 85 'values.cc', |
86 'watchdog.cc', | 86 'watchdog.cc', |
87 'word_iterator.cc', | 87 'word_iterator.cc', |
88 ] | 88 ] |
89 | 89 |
| 90 # Add object files David M Gay's dtoa and g_fmt third party lib. We |
| 91 # compile these separately so we can disable warnings. |
| 92 env_dmg_fp = env.Clone() |
| 93 if env_dmg_fp['PLATFORM'] == 'win32': |
| 94 env_dmg_fp.Append( |
| 95 CCFLAGS = [ |
| 96 '/wd4018', |
| 97 '/wd4102', |
| 98 '/wd4244', |
| 99 '/wd4554', |
| 100 ], |
| 101 ) |
| 102 else: |
| 103 env_dmg_fp['CXXFLAGS'].remove('-Wall') |
| 104 env_dmg_fp['CXXFLAGS'].append('-Wno-write-strings') |
| 105 |
| 106 input_files.extend([ |
| 107 env_dmg_fp.Object('third_party/dmg_fp/dtoa.cc'), |
| 108 env_dmg_fp.Object('third_party/dmg_fp/g_fmt.cc'), |
| 109 ]) |
| 110 |
90 if env['PLATFORM'] in ('posix', 'darwin'): | 111 if env['PLATFORM'] in ('posix', 'darwin'): |
91 # Remove files that still need to be ported from the input_files list. | 112 # Remove files that still need to be ported from the input_files list. |
92 # TODO(port): delete files from this list as they get ported. | 113 # TODO(port): delete files from this list as they get ported. |
93 to_be_ported_files = [ | 114 to_be_ported_files = [ |
94 'clipboard_util.cc', | 115 'clipboard_util.cc', |
95 'event_recorder.cc', | 116 'event_recorder.cc', |
96 'file_version_info.cc', | 117 'file_version_info.cc', |
97 | 118 |
98 # This group all depends on MessageLoop. | 119 # This group all depends on MessageLoop. |
99 | 120 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 'hmac_nss.cc', | 211 'hmac_nss.cc', |
191 'message_pump_glib.cc', | 212 'message_pump_glib.cc', |
192 'nss_init.cc', | 213 'nss_init.cc', |
193 'process_posix.cc', | 214 'process_posix.cc', |
194 'process_util_linux.cc', | 215 'process_util_linux.cc', |
195 'sys_string_conversions_linux.cc', | 216 'sys_string_conversions_linux.cc', |
196 'worker_pool.cc', | 217 'worker_pool.cc', |
197 ]) | 218 ]) |
198 | 219 |
199 env.ChromeStaticLibrary('base', input_files) | 220 env.ChromeStaticLibrary('base', input_files) |
OLD | NEW |