Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: base/base.scons

Issue 53121: Remove the checked-in scons configuration files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/SConstruct ('k') | base/base_gfx.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 __doc__ = """
6 Configuration for building base.lib / libbase.a.
7 """
8
9 Import('env')
10
11 env = env.Clone()
12
13 env.ApplySConscript([
14 '$ICU38_DIR/using_icu38.scons',
15 ])
16
17 if env.Bit('windows'):
18 env.Prepend(
19 CCFLAGS = [
20 '/Wp64',
21 ],
22 )
23
24 # Add object files David M Gay's dtoa and g_fmt third party lib. We
25 # compile these separately so we can disable warnings.
26 env_dmg_fp = env.Clone()
27 if env_dmg_fp.Bit('windows'):
28 env_dmg_fp.Append(
29 CCFLAGS = [
30 '/wd4018',
31 '/wd4102',
32 '/wd4244',
33 '/wd4554',
34 ],
35 )
36 elif env_dmg_fp.Bit('posix'):
37 for var in ['CCFLAGS', 'CXXFLAGS']:
38 if '-Wall' in env_dmg_fp[var]:
39 env_dmg_fp[var].remove('-Wall')
40 env_dmg_fp[var].append('-Wno-write-strings')
41
42 dtoa_cc = env_dmg_fp.ChromeObject('third_party/dmg_fp/dtoa.cc')
43
44 g_fmt_cc = env_dmg_fp.ChromeObject('third_party/dmg_fp/g_fmt.cc')
45
46 # Some files from this list are not yet ported. They are removed from
47 # the list, see code below.
48 input_files = ChromeFileList([
49 'at_exit.cc',
50 'at_exit.h',
51 'atomic_ref_count.h',
52 'atomic_sequence_num.h',
53 'atomicops.h',
54 'atomicops_internals_x86_msvc.h',
55 'base_drag_source.cc',
56 'base_drag_source.h',
57 'base_drop_target.cc',
58 'base_drop_target.h',
59 'base_paths.cc',
60 'base_paths.h',
61 'base_paths_win.cc',
62 'base_paths_win.h',
63 'base_switches.cc',
64 'base_switches.h',
65 'basictypes.h',
66 'third_party/nss/blapi.h',
67 'third_party/nss/blapit.h',
68 '../build/build_config.h',
69 'bzip2_error_handler.cc',
70 'clipboard.cc',
71 'clipboard.h',
72 'clipboard_util.cc',
73 'clipboard_util.h',
74 'clipboard_win.cc',
75 'command_line.cc',
76 'command_line.h',
77 'compiler_specific.h',
78 'condition_variable.h',
79 'condition_variable_win.cc',
80 'cpu.cc',
81 'cpu.h',
82 'debug_on_start.cc',
83 'debug_on_start.h',
84 'debug_util.cc',
85 'debug_util.h',
86 'debug_util_win.cc',
87 'directory_watcher.h',
88 'directory_watcher_win.cc',
89 'third_party/dmg_fp/dmg_fp.h',
90 dtoa_cc,
91 'event_recorder.cc',
92 'event_recorder.h',
93 'field_trial.cc',
94 'field_trial.h',
95 'file_path.cc',
96 'file_path.h',
97 'file_util.cc',
98 'file_util.h',
99 'file_util_win.cc',
100 'file_version_info.cc',
101 'file_version_info.h',
102 'fix_wp64.h',
103 'float_util.h',
104 g_fmt_cc,
105 'hash_tables.h',
106 'histogram.cc',
107 'histogram.h',
108 'hmac.h',
109 'hmac_win.cc',
110 'iat_patch.cc',
111 'iat_patch.h',
112 'icu_util.cc',
113 'icu_util.h',
114 'id_map.h',
115 'idle_timer.cc',
116 'idle_timer.h',
117 'image_util.cc',
118 'image_util.h',
119 'json_reader.cc',
120 'json_reader.h',
121 'json_writer.cc',
122 'json_writer.h',
123 'keyboard_codes.h',
124 'keyboard_codes_posix.h',
125 'keyboard_codes_win.h',
126 'lazy_instance.cc',
127 'lazy_instance.h',
128 'linked_ptr.h',
129 'lock.cc',
130 'lock.h',
131 'lock_impl.h',
132 'lock_impl_win.cc',
133 'logging.cc',
134 'logging.h',
135 'md5.cc',
136 'md5.h',
137 'memory_debug.cc',
138 'memory_debug.h',
139 'message_loop.cc',
140 'message_loop.h',
141 'message_pump.h',
142 'message_pump_default.cc',
143 'message_pump_default.h',
144 'message_pump_win.cc',
145 'message_pump_win.h',
146 'non_thread_safe.cc',
147 'non_thread_safe.h',
148 'object_watcher.cc',
149 'object_watcher.h',
150 'observer_list.h',
151 'observer_list_threadsafe.h',
152 'path_service.cc',
153 'path_service.h',
154 'pe_image.cc',
155 'pe_image.h',
156 'pickle.cc',
157 'pickle.h',
158 'platform_file.h',
159 'platform_file_win.cc',
160 'platform_thread.h',
161 'platform_thread_win.cc',
162 'port.h',
163 'profiler.cc',
164 'profiler.h',
165 'third_party/nspr/prcpucfg.h',
166 'third_party/nspr/prcpucfg_win.h',
167 'process.h',
168 'process_util.h',
169 'process_util_win.cc',
170 'process_win.cc',
171 'third_party/nspr/prtime.cc',
172 'third_party/nspr/prtime.h',
173 'third_party/nspr/prtypes.h',
174 'third_party/purify/pure.h',
175 'third_party/purify/pure_api.c',
176 'rand_util.cc',
177 'rand_util.h',
178 'rand_util_win.cc',
179 'ref_counted.cc',
180 'ref_counted.h',
181 'registry.cc',
182 'registry.h',
183 'resource_util.cc',
184 'resource_util.h',
185 'revocable_store.cc',
186 'revocable_store.h',
187 'scoped_bstr_win.cc',
188 'scoped_bstr_win.h',
189 'scoped_clipboard_writer.cc',
190 'scoped_clipboard_writer.h',
191 'scoped_comptr_win.h',
192 'scoped_handle.h',
193 'scoped_handle_win.h',
194 'scoped_nsautorelease_pool.h',
195 'scoped_ptr.h',
196 'scoped_temp_dir.cc',
197 'scoped_temp_dir.h',
198 'sha2.cc',
199 'sha2.h',
200 'third_party/nss/sha256.h',
201 'third_party/nss/sha512.cc',
202 'shared_memory.h',
203 'shared_memory_win.cc',
204 'simple_thread.cc',
205 'simple_thread.h',
206 'singleton.h',
207 'spin_wait.h',
208 'stack_container.h',
209 'stats_counters.h',
210 'stats_table.cc',
211 'stats_table.h',
212 'string16.h',
213 'string_escape.cc',
214 'string_escape.h',
215 'string_piece.cc',
216 'string_piece.h',
217 'string_tokenizer.h',
218 'string_util.cc',
219 'string_util.h',
220 'string_util_icu.cc',
221 'string_util_win.h',
222 'sys_info.h',
223 'sys_info_win.cc',
224 'sys_string_conversions.h',
225 'sys_string_conversions_win.cc',
226 'system_monitor.cc',
227 'system_monitor.h',
228 'system_monitor_win.cc',
229 'task.h',
230 'test_file_util.h',
231 'test_file_util_win.cc',
232 'thread.cc',
233 'thread.h',
234 'thread_collision_warner.cc',
235 'thread_collision_warner.h',
236 'thread_local.h',
237 'thread_local_storage.h',
238 'thread_local_storage_win.cc',
239 'thread_local_win.cc',
240 'time.cc',
241 'time.h',
242 'time_format.cc',
243 'time_format.h',
244 'time_win.cc',
245 'timer.cc',
246 'timer.h',
247 'trace_event.cc',
248 'trace_event.h',
249 'tracked.cc',
250 'tracked.h',
251 'tracked_objects.cc',
252 'tracked_objects.h',
253 'tuple.h',
254 'values.cc',
255 'values.h',
256 'version.cc',
257 'version.h',
258 'waitable_event.h',
259 'waitable_event_watcher.h',
260 'waitable_event_watcher_win.cc',
261 'waitable_event_win.cc',
262 'watchdog.cc',
263 'watchdog.h',
264 'win_util.cc',
265 'win_util.h',
266 'windows_message_list.h',
267 'wmi_util.cc',
268 'wmi_util.h',
269 'word_iterator.cc',
270 'word_iterator.h',
271 'worker_pool.h',
272 'worker_pool_win.cc',
273 ])
274
275 if env.Bit('posix'):
276 # Remove files that still need to be ported from the input_files list.
277 # TODO(port): delete files from this list as they get ported.
278 input_files.Remove(
279 'clipboard_util.cc',
280 'event_recorder.cc',
281
282 # We have an implementation of idle_timer that depends on XScreenSaver,
283 # but it's unclear if we want it yet, so it's commented out for now.
284 # Leave this 'unported'.
285 'idle_timer.cc',
286
287 'object_watcher.cc',
288
289 'resource_util.cc', # Uses HMODULE, but may be abstractable.
290 )
291
292 input_files.Append(
293 # See above note about idle_timer.cc.
294 'idle_timer_none.cc',
295 )
296
297 if not env.Bit('windows'):
298 # Remove windows-specific files on non-Windows platforms.
299 # TODO(sgk):
300 # Remove the windows-specific files from the input_files list above
301 # and turn this back in to an add-on-Windows list (like we used to)
302 # once we're comfortable re-ordering the files in the generated
303 # .vcproj file(s).
304 input_files.Remove(
305 'base_drag_source.cc',
306 'base_drop_target.cc',
307 'base_paths_win.cc',
308 'clipboard_win.cc',
309 'condition_variable_win.cc',
310 'cpu.cc',
311 'debug_on_start.cc',
312 'debug_util_win.cc',
313 'directory_watcher_win.cc',
314 'file_util_win.cc',
315 'file_version_info.cc',
316 'hmac_win.cc',
317 'iat_patch.cc',
318 'image_util.cc',
319 'lock_impl_win.cc',
320 'message_pump_win.cc',
321 'pe_image.cc',
322 'platform_file_win.cc',
323 'platform_thread_win.cc',
324 'process_util_win.cc',
325 'process_win.cc',
326 'rand_util_win.cc',
327 'registry.cc',
328 'scoped_bstr_win.cc',
329 'scoped_bstr_win.h',
330 'scoped_comptr_win.h',
331 'shared_memory_win.cc',
332 'sys_info_win.cc',
333 'sys_string_conversions_win.cc',
334 'system_monitor_win.cc',
335 'test_file_util_win.cc',
336 'thread_local_storage_win.cc',
337 'thread_local_win.cc',
338 'third_party/purify/pure_api.c',
339 'time_win.cc',
340 'waitable_event_win.cc',
341 'waitable_event_watcher_win.cc',
342 'win_util.cc',
343 'wmi_util.cc',
344 'worker_pool_win.cc',
345 )
346
347 if env.Bit('posix'):
348 input_files.Extend([
349 'condition_variable_posix.cc',
350 'debug_util_posix.cc',
351 'file_util_posix.cc',
352 'lock_impl_posix.cc',
353 'message_pump_libevent.cc',
354 'platform_file_posix.cc',
355 'platform_thread_posix.cc',
356 'process_util_posix.cc',
357 'rand_util_posix.cc',
358 'shared_memory_posix.cc',
359 'string16.cc',
360 'sys_info_posix.cc',
361 'system_monitor_posix.cc',
362 'test_file_util_posix.cc',
363 'thread_local_storage_posix.cc',
364 'thread_local_posix.cc',
365 'time_posix.cc',
366 'waitable_event_posix.cc',
367 'waitable_event_watcher_posix.cc',
368 ])
369
370 if env.Bit('mac'):
371 input_files.Extend([
372 'base_paths_mac.mm',
373 'event_recorder_stubs.cc',
374 'clipboard_mac.mm',
375 'file_util_mac.mm',
376 'file_version_info_mac.mm',
377 'hmac_mac.cc',
378 'mac_util.mm',
379 'message_pump_mac.mm',
380 'platform_thread_mac.mm',
381 'scoped_nsautorelease_pool.mm',
382 'sys_string_conversions_mac.mm',
383 'test_file_util_mac.cc',
384 'worker_pool_mac.mm',
385 ])
386
387 if env.Bit('linux'):
388 input_files.Extend([
389 'atomicops_internals_x86_gcc.cc',
390 'base_paths_linux.cc',
391 'clipboard_linux.cc',
392 'data_pack.cc',
393 'directory_watcher_inotify.cc',
394 'event_recorder_stubs.cc',
395 'file_util_linux.cc',
396 'file_version_info_linux.cc',
397 'hmac_nss.cc',
398 'message_pump_glib.cc',
399 'nss_init.cc',
400 'process_posix.cc',
401 'process_util_linux.cc',
402 'sys_string_conversions_linux.cc',
403 'test_file_util_linux.cc',
404 'worker_pool_linux.cc',
405 'worker_pool_linux.h',
406 ])
407
408 linux_version = env.Command('$BASE_DIR/file_version_info_linux.h',
409 'file_version_info_linux.h.version',
410 ('../chrome/tools/build/linux/version.sh'
411 ' ${SOURCE}'
412 ' ${TARGET}'))
413 env.AlwaysBuild(linux_version)
414 # Always generate version information, e.g. to capture revision changes, which
415 # aren't captured by file dependencies.
416 env.Append(CPPPATH = ['$OBJ_ROOT'])
417
418 env.ChromeLibrary('base', input_files)
419
420 p = env.ChromeMSVSProject('build/base.vcproj',
421 dest='$CHROME_SRC_DIR/base/build/base.vcproj',
422 guid='{1832A374-8A74-4F9E-B536-69A699B3E165}',
423 keyword='Win32Proj',
424 dependencies=[
425 'build/debug_message.vcproj',
426 # Necessary for chrome.sln.
427 '$ICU38_DIR/build/icu.vcproj',
428 ],
429 files=input_files,
430 tools=[
431 'VCPreBuildEventTool',
432 'VCCustomBuildTool',
433 'VCXMLDataGeneratorTool',
434 'VCWebServiceProxyGeneratorTool',
435 'VCMIDLTool',
436 'VCCLCompilerTool',
437 'VCManagedResourceCompilerTool',
438 'VCResourceCompilerTool',
439 'VCPreLinkEventTool',
440 'VCLibrarianTool',
441 'VCALinkTool',
442 'VCXDCMakeTool',
443 'VCBscMakeTool',
444 'VCFxCopTool',
445 'VCPostBuildEventTool',
446 ])
447
448 p.AddConfig('Debug|Win32',
449 ConfigurationType = '4',
450 InheritedPropertySheets = [
451 '$(SolutionDir)../build/debug.vsprops',
452 './base.vsprops',
453 ])
454
455 p.AddConfig('Release|Win32',
456 ConfigurationType = '4',
457 InheritedPropertySheets = [
458 '$(SolutionDir)../build/release.vsprops',
459 './base.vsprops',
460 ])
461
462 p.AddFileConfig(
463 'third_party/dmg_fp/dtoa.cc',
464 'Debug|Win32',
465 tools=[
466 MSVSTool('VCCLCompilerTool',
467 DisableSpecificWarnings='4244;4554;4018;4102'),
468 ])
469
470 p.AddFileConfig(
471 'third_party/dmg_fp/dtoa.cc',
472 'Release|Win32',
473 tools=[
474 MSVSTool('VCCLCompilerTool',
475 DisableSpecificWarnings='4244;4554;4018;4102'),
476 ])
477
478 p.AddFileConfig(
479 'third_party/dmg_fp/g_fmt.cc',
480 'Debug|Win32',
481 tools=[
482 MSVSTool('VCCLCompilerTool', DisableSpecificWarnings='4102'),
483 ])
484
485 p.AddFileConfig(
486 'third_party/dmg_fp/g_fmt.cc',
487 'Release|Win32',
488 tools=[
489 MSVSTool('VCCLCompilerTool', DisableSpecificWarnings='4102'),
490 ])
OLDNEW
« no previous file with comments | « base/SConstruct ('k') | base/base_gfx.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698