1 # Copyright (c) 2012 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.
10 'target_conditions': [
11 # This part is shared between the targets defined below.
14 '../build/build_config.h',
15 'third_party/dmg_fp/dmg_fp.h',
16 'third_party/dmg_fp/g_fmt.cc',
17 'third_party/dmg_fp/dtoa_wrapper.cc',
18 'third_party/icu/icu_utf.cc',
19 'third_party/icu/icu_utf.h',
20 'third_party/nspr/prcpucfg.h',
21 'third_party/nspr/prcpucfg_freebsd.h',
22 'third_party/nspr/prcpucfg_linux.h',
23 'third_party/nspr/prcpucfg_mac.h',
24 'third_party/nspr/prcpucfg_nacl.h',
25 'third_party/nspr/prcpucfg_openbsd.h',
26 'third_party/nspr/prcpucfg_solaris.h',
27 'third_party/nspr/prcpucfg_win.h',
28 'third_party/nspr/prtime.cc',
29 'third_party/nspr/prtime.h',
30 'third_party/nspr/prtypes.h',
31 'third_party/xdg_mime/xdgmime.h',
32 'allocator/allocator_extension.cc',
33 'allocator/allocator_extension.h',
34 'allocator/type_profiler_control.cc',
35 'allocator/type_profiler_control.h',
36 'android/base_jni_registrar.cc',
37 'android/base_jni_registrar.h',
38 'android/build_info.cc',
39 'android/build_info.h',
40 'android/cpu_features.cc',
41 'android/scoped_java_ref.cc',
42 'android/scoped_java_ref.h',
43 'android/jni_android.cc',
44 'android/jni_android.h',
45 'android/jni_array.cc',
46 'android/jni_array.h',
47 'android/jni_helper.cc',
48 'android/jni_helper.h',
49 'android/jni_registrar.cc',
50 'android/jni_registrar.h',
51 'android/jni_string.cc',
52 'android/jni_string.h',
53 'android/locale_utils.cc',
54 'android/locale_utils.h',
55 'android/path_service_android.cc',
56 'android/path_service_android.h',
57 'android/path_utils.cc',
58 'android/path_utils.h',
62 'atomic_sequence_num.h',
64 'atomicops_internals_gcc.h',
65 'atomicops_internals_mac.h',
66 'atomicops_internals_tsan.h',
67 'atomicops_internals_x86_gcc.cc',
68 'atomicops_internals_x86_gcc.h',
69 'atomicops_internals_x86_msvc.h',
73 'base_paths_android.cc',
74 'base_paths_android.h',
77 'base_paths_posix.cc',
89 'bind_internal_win.h',
95 'callback_internal.cc',
96 'callback_internal.h',
97 'cancelable_callback.h',
98 'chromeos/chromeos_version.cc',
99 'chromeos/chromeos_version.h',
102 'compiler_specific.h',
103 'containers/linked_list.h',
104 'containers/mru_cache.h',
105 'containers/small_map.h',
106 'containers/stack_container.h',
109 'critical_closure.h',
110 'critical_closure_ios.mm',
113 'debug/crash_logging.cc',
114 'debug/crash_logging.h',
115 'debug/debug_on_start_win.cc',
116 'debug/debug_on_start_win.h',
119 'debug/debugger_posix.cc',
120 'debug/debugger_win.cc',
121 # This file depends on files from the 'allocator' target,
122 # but this target does not depend on 'allocator' (see
123 # allocator.gyp for details).
124 'debug/leak_annotations.h',
125 'debug/leak_tracker.h',
128 'debug/stack_trace.cc',
129 'debug/stack_trace.h',
130 'debug/stack_trace_android.cc',
131 'debug/stack_trace_ios.mm',
132 'debug/stack_trace_posix.cc',
133 'debug/stack_trace_win.cc',
134 'debug/trace_event.cc',
135 'debug/trace_event.h',
136 'debug/trace_event_android.cc',
137 'debug/trace_event_impl.cc',
138 'debug/trace_event_impl.h',
139 'debug/trace_event_win.cc',
142 'file_descriptor_posix.h',
147 'file_util_android.cc',
148 'file_util_linux.cc',
150 'file_util_posix.cc',
152 'file_util_proxy.cc',
154 'file_version_info.h',
155 'file_version_info_mac.h',
156 'file_version_info_mac.mm',
157 'file_version_info_win.cc',
158 'file_version_info_win.h',
159 'files/dir_reader_fallback.h',
160 'files/dir_reader_linux.h',
161 'files/dir_reader_posix.h',
162 'files/file_path_watcher.cc',
163 'files/file_path_watcher.h',
164 'files/file_path_watcher_kqueue.cc',
165 'files/file_path_watcher_linux.cc',
166 'files/file_path_watcher_stub.cc',
167 'files/file_path_watcher_win.cc',
168 'files/important_file_writer.h',
169 'files/important_file_writer.cc',
170 'files/scoped_temp_dir.cc',
171 'files/scoped_temp_dir.h',
182 'hi_res_timer_manager_posix.cc',
183 'hi_res_timer_manager_win.cc',
184 'hi_res_timer_manager.h',
187 'ios/device_util.mm',
190 'ios/scoped_critical_action.h',
191 'ios/scoped_critical_action.mm',
192 'json/json_file_value_serializer.cc',
193 'json/json_file_value_serializer.h',
194 'json/json_parser.cc',
195 'json/json_parser.h',
196 'json/json_reader.cc',
197 'json/json_reader.h',
198 'json/json_string_value_serializer.cc',
199 'json/json_string_value_serializer.h',
200 'json/json_value_converter.h',
201 'json/json_writer.cc',
202 'json/json_writer.h',
203 'json/string_escape.cc',
204 'json/string_escape.h',
213 'mac/authorization_util.h',
214 'mac/authorization_util.mm',
215 'mac/bind_objc_block.h',
216 'mac/bundle_locations.h',
217 'mac/bundle_locations.mm',
218 'mac/cocoa_protocols.h',
219 'mac/foundation_util.h',
220 'mac/foundation_util.mm',
223 'mac/libdispatch_task_runner.cc',
224 'mac/libdispatch_task_runner.h',
226 'mac/mac_logging.cc',
229 'mac/objc_property_releaser.h',
230 'mac/objc_property_releaser.mm',
231 'mac/os_crash_dumps.cc',
232 'mac/os_crash_dumps.h',
233 'mac/scoped_aedesc.h',
234 'mac/scoped_authorizationref.h',
235 'mac/scoped_block.h',
236 'mac/scoped_cftyperef.h',
237 'mac/scoped_ioobject.h',
238 'mac/scoped_launch_data.h',
239 'mac/scoped_mach_port.cc',
240 'mac/scoped_mach_port.h',
241 'mac/scoped_nsautorelease_pool.h',
242 'mac/scoped_nsautorelease_pool.mm',
243 'mac/scoped_nsexception_enabler.h',
244 'mac/scoped_nsexception_enabler.mm',
245 'mac/scoped_sending_event.h',
246 'mac/scoped_sending_event.mm',
249 'memory/aligned_memory.cc',
250 'memory/aligned_memory.h',
251 'memory/discardable_memory.cc',
252 'memory/discardable_memory.h',
253 'memory/discardable_memory_android.cc',
254 'memory/discardable_memory_mac.cc',
255 'memory/linked_ptr.h',
256 'memory/manual_constructor.h',
257 'memory/raw_scoped_refptr_mismatch_checker.h',
258 'memory/ref_counted.cc',
259 'memory/ref_counted.h',
260 'memory/ref_counted_memory.cc',
261 'memory/ref_counted_memory.h',
262 'memory/scoped_handle.h',
263 'memory/scoped_nsobject.h',
264 'memory/scoped_open_process.h',
265 'memory/scoped_policy.h',
266 'memory/scoped_ptr.h',
267 'memory/scoped_vector.h',
268 'memory/singleton.cc',
269 'memory/singleton.h',
270 'memory/weak_ptr.cc',
274 'message_loop_proxy.cc',
275 'message_loop_proxy.h',
276 'message_loop_proxy_impl.cc',
277 'message_loop_proxy_impl.h',
280 'message_pump_android.cc',
281 'message_pump_android.h',
282 'message_pump_default.cc',
283 'message_pump_default.h',
284 'message_pump_win.cc',
285 'message_pump_win.h',
286 'metrics/sample_map.cc',
287 'metrics/sample_map.h',
288 'metrics/sample_vector.cc',
289 'metrics/sample_vector.h',
290 'metrics/bucket_ranges.cc',
291 'metrics/bucket_ranges.h',
292 'metrics/histogram.cc',
293 'metrics/histogram.h',
294 'metrics/histogram_base.cc',
295 'metrics/histogram_base.h',
296 'metrics/histogram_flattener.h',
297 'metrics/histogram_samples.cc',
298 'metrics/histogram_samples.h',
299 'metrics/histogram_snapshot_manager.cc',
300 'metrics/histogram_snapshot_manager.h',
301 'metrics/sparse_histogram.cc',
302 'metrics/sparse_histogram.h',
303 'metrics/statistics_recorder.cc',
304 'metrics/statistics_recorder.h',
305 'metrics/stats_counters.cc',
306 'metrics/stats_counters.h',
307 'metrics/stats_table.cc',
308 'metrics/stats_table.h',
311 'native_library_mac.mm',
312 'native_library_posix.cc',
313 'native_library_win.cc',
315 'observer_list_threadsafe.h',
316 'os_compat_android.cc',
317 'os_compat_android.h',
328 'platform_file_posix.cc',
329 'platform_file_win.cc',
331 'posix/eintr_wrapper.h',
332 'posix/global_descriptors.cc',
333 'posix/global_descriptors.h',
334 'posix/unix_domain_socket_linux.cc',
335 'posix/unix_domain_socket_linux.h',
338 'process_info_mac.cc',
339 'process_info_win.cc',
344 'process_util_freebsd.cc',
345 'process_util_ios.mm',
346 'process_util_linux.cc',
347 'process_util_mac.mm',
348 'process_util_openbsd.cc',
349 'process_util_posix.cc',
350 'process_util_win.cc',
352 'profiler/scoped_profile.cc',
353 'profiler/scoped_profile.h',
354 'profiler/alternate_timer.cc',
355 'profiler/alternate_timer.h',
356 'profiler/tracked_time.cc',
357 'profiler/tracked_time.h',
361 'rand_util_posix.cc',
366 'safe_strerror_posix.cc',
367 'safe_strerror_posix.h',
368 'scoped_native_library.cc',
369 'scoped_native_library.h',
370 'sequence_checker.h',
371 'sequence_checker_impl.cc',
372 'sequence_checker_impl.h',
373 'sequenced_task_runner.cc',
374 'sequenced_task_runner.h',
375 'sequenced_task_runner_helpers.h',
380 'shared_memory_android.cc',
381 'shared_memory_nacl.cc',
382 'shared_memory_posix.cc',
383 'shared_memory_win.cc',
384 'single_thread_task_runner.h',
386 'string_number_conversions.cc',
387 'string_number_conversions.h',
392 'string_tokenizer.h',
395 'string_util_posix.h',
399 'stringize_macros.h',
402 'supports_user_data.cc',
403 'supports_user_data.h',
404 'synchronization/cancellation_flag.cc',
405 'synchronization/cancellation_flag.h',
406 'synchronization/condition_variable.h',
407 'synchronization/condition_variable_posix.cc',
408 'synchronization/condition_variable_win.cc',
409 'synchronization/lock.cc',
410 'synchronization/lock.h',
411 'synchronization/lock_impl.h',
412 'synchronization/lock_impl_posix.cc',
413 'synchronization/lock_impl_win.cc',
414 'synchronization/spin_wait.h',
415 'synchronization/waitable_event.h',
416 'synchronization/waitable_event_posix.cc',
417 'synchronization/waitable_event_watcher.h',
418 'synchronization/waitable_event_watcher_posix.cc',
419 'synchronization/waitable_event_watcher_win.cc',
420 'synchronization/waitable_event_win.cc',
421 'system_monitor/system_monitor.cc',
422 'system_monitor/system_monitor.h',
423 'system_monitor/system_monitor_android.cc',
424 'system_monitor/system_monitor_android.h',
425 'system_monitor/system_monitor_ios.mm',
426 'system_monitor/system_monitor_mac.mm',
427 'system_monitor/system_monitor_posix.cc',
428 'system_monitor/system_monitor_win.cc',
432 'sys_info_android.cc',
433 'sys_info_chromeos.cc',
434 'sys_info_freebsd.cc',
438 'sys_info_openbsd.cc',
441 'sys_string_conversions.h',
442 'sys_string_conversions_mac.mm',
443 'sys_string_conversions_posix.cc',
444 'sys_string_conversions_win.cc',
447 'task_runner_util.h',
449 'thread_task_runner_handle.cc',
450 'thread_task_runner_handle.h',
451 'threading/non_thread_safe.h',
452 'threading/non_thread_safe_impl.cc',
453 'threading/non_thread_safe_impl.h',
454 'threading/platform_thread.h',
455 'threading/platform_thread_mac.mm',
456 'threading/platform_thread_posix.cc',
457 'threading/platform_thread_win.cc',
458 'threading/post_task_and_reply_impl.cc',
459 'threading/post_task_and_reply_impl.h',
460 'threading/sequenced_worker_pool.cc',
461 'threading/sequenced_worker_pool.h',
462 'threading/simple_thread.cc',
463 'threading/simple_thread.h',
464 'threading/thread.cc',
465 'threading/thread.h',
466 'threading/thread_checker.h',
467 'threading/thread_checker_impl.cc',
468 'threading/thread_checker_impl.h',
469 'threading/thread_collision_warner.cc',
470 'threading/thread_collision_warner.h',
471 'threading/thread_local.h',
472 'threading/thread_local_posix.cc',
473 'threading/thread_local_storage.h',
474 'threading/thread_local_storage_posix.cc',
475 'threading/thread_local_storage_win.cc',
476 'threading/thread_local_win.cc',
477 'threading/thread_restrictions.h',
478 'threading/thread_restrictions.cc',
479 'threading/watchdog.cc',
480 'threading/watchdog.h',
481 'threading/worker_pool.h',
482 'threading/worker_pool.cc',
483 'threading/worker_pool_posix.cc',
484 'threading/worker_pool_posix.h',
485 'threading/worker_pool_win.cc',
493 'tracked_objects.cc',
498 'utf_offset_string_conversions.cc',
499 'utf_offset_string_conversions.h',
500 'utf_string_conversion_utils.cc',
501 'utf_string_conversion_utils.h',
502 'utf_string_conversions.cc',
503 'utf_string_conversions.h',
506 'value_conversions.cc',
507 'value_conversions.h',
512 'nix/mime_util_xdg.cc',
513 'nix/mime_util_xdg.h',
516 'win/enum_variant.h',
517 'win/enum_variant.cc',
518 'win/event_trace_consumer.h',
519 'win/event_trace_controller.cc',
520 'win/event_trace_controller.h',
521 'win/event_trace_provider.cc',
522 'win/event_trace_provider.h',
525 'win/iat_patch_function.cc',
526 'win/iat_patch_function.h',
527 'win/iunknown_impl.h',
528 'win/iunknown_impl.cc',
531 'win/object_watcher.cc',
532 'win/object_watcher.h',
535 'win/resource_util.cc',
536 'win/resource_util.h',
537 'win/sampling_profiler.cc',
538 'win/sampling_profiler.h',
539 'win/scoped_bstr.cc',
541 'win/scoped_co_mem.h',
542 'win/scoped_com_initializer.h',
543 'win/scoped_comptr.h',
544 'win/scoped_gdi_object.h',
545 'win/scoped_handle.cc',
546 'win/scoped_handle.h',
548 'win/scoped_hglobal.h',
549 'win/scoped_process_information.cc',
550 'win/scoped_process_information.h',
551 'win/scoped_propvariant.h',
552 'win/scoped_select_object.h',
553 'win/scoped_variant.cc',
554 'win/scoped_variant.h',
557 'win/startup_information.cc',
558 'win/startup_information.h',
559 'win/text_services_message_filter.cc',
560 'win/text_services_message_filter.h',
561 'win/windows_version.cc',
562 'win/windows_version.h',
565 'win/wrapped_window_proc.cc',
566 'win/wrapped_window_proc.h',
569 'BASE_IMPLEMENTATION',
574 'msvs_disabled_warnings': [
577 'target_conditions': [
578 ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
580 ['exclude', '^nix/'],
583 'atomicops_internals_x86_gcc.cc',
584 'message_pump_glib.cc',
585 'message_pump_aurax11.cc',
588 ['<(toolkit_uses_gtk)==0 or >(nacl_untrusted_build)==1', {
589 'sources!': ['message_pump_gtk.cc'],
591 ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
593 # Not automatically excluded by the *linux.cc rules.
598 ['>(nacl_untrusted_build)==1', {
600 'allocator/type_profiler_control.cc',
601 'allocator/type_profiler_control.h',
605 'debug/stack_trace_posix.cc',
607 'file_util_posix.cc',
608 'file_util_proxy.cc',
609 'files/file_path_watcher_kqueue.cc',
610 'native_library_posix.cc',
612 'platform_file_posix.cc',
613 'posix/unix_domain_socket_linux.cc',
616 'process_util_posix.cc',
617 'rand_util_posix.cc',
618 'scoped_native_library.cc',
619 'files/scoped_temp_dir.cc',
620 'shared_memory_posix.cc',
622 'threading/sequenced_worker_pool.cc',
623 'third_party/dynamic_annotations/dynamic_annotations.c',
625 # Metrics won't work in the NaCl sandbox.
626 'sources/': [ ['exclude', '^metrics/'] ],
628 ['OS == "android" and >(nacl_untrusted_build)==0', {
630 'base_paths_posix.cc',
631 'files/file_path_watcher_kqueue.cc',
632 'files/file_path_watcher_stub.cc',
633 'system_monitor/system_monitor_posix.cc',
636 ['include', '^files/file_path_watcher_linux\\.cc$'],
637 ['include', '^process_util_linux\\.cc$'],
638 ['include', '^posix/unix_domain_socket_linux\\.cc$'],
639 ['include', '^sys_info_linux\\.cc$'],
640 ['include', '^sys_string_conversions_posix\\.cc$'],
641 ['include', '^worker_pool_linux\\.cc$'],
646 # Pull in specific Mac files for iOS (which have been filtered out
647 # by file name rules).
648 ['include', '^atomicops_internals_mac\\.'],
649 ['include', '^base_paths_mac\\.'],
650 ['include', '^file_util_mac\\.'],
651 ['include', '^file_version_info_mac\\.'],
652 ['include', '^mac/bundle_locations\\.'],
653 ['include', '^mac/foundation_util\\.'],
654 ['include', '^mac/mac_logging\\.'],
655 ['include', '^mac/objc_property_releaser\\.'],
656 ['include', '^mac/scoped_mach_port\\.'],
657 ['include', '^mac/scoped_nsautorelease_pool\\.'],
658 ['include', '^memory/discardable_memory_mac\\.'],
659 ['include', '^message_pump_mac\\.'],
660 ['include', '^threading/platform_thread_mac\\.'],
661 ['include', '^sys_string_conversions_mac\\.'],
662 ['include', '^time_mac\\.'],
663 ['include', '^worker_pool_mac\\.'],
664 # Exclude all process_util except the minimal implementation
665 # needed on iOS (mostly for unit tests).
666 ['exclude', '^process_util'],
667 ['include', '^process_util_ios\\.mm$'],
670 'message_pump_libevent.cc'
673 ['OS != "mac" or >(nacl_untrusted_build)==1', {
675 'mac/scoped_aedesc.h'
678 # For now, just test the *BSD platforms enough to exclude them.
679 # Subsequent changes will include them further.
680 ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
681 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
684 ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
685 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
688 ['OS != "win" or >(nacl_untrusted_build)==1', {
689 'sources/': [ ['exclude', '^win/'] ],
692 ['OS != "android" or >(nacl_untrusted_build)==1', {
693 'sources/': [ ['exclude', '^android/'] ],
696 ['OS == "win" and >(nacl_untrusted_build)==0', {
698 '<(DEPTH)/third_party/wtl/include',
701 'event_recorder_stubs.cc',
702 'files/file_path_watcher_kqueue.cc',
703 'files/file_path_watcher_stub.cc',
704 'message_pump_libevent.cc',
705 'posix/file_descriptor_shuffle.cc',
706 # Not using sha1_win.cc because it may have caused a
707 # regression to page cycler moz.
712 ['OS == "linux" and >(nacl_untrusted_build)==0', {
714 'files/file_path_watcher_kqueue.cc',
715 'files/file_path_watcher_stub.cc',
718 ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
720 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
721 ['exclude', '^base_paths_posix\\.cc$'],
722 ['exclude', '^native_library_posix\\.cc$'],
723 ['exclude', '^sys_string_conversions_posix\\.cc$'],
726 ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
728 ['exclude', '^files/file_path_watcher_linux\\.cc$'],
729 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
730 ['exclude', '^file_util_linux\\.cc$'],
731 ['exclude', '^process_linux\\.cc$'],
732 ['exclude', '^process_util_linux\\.cc$'],
733 ['exclude', '^sys_info_linux\\.cc$'],
736 ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
738 ['exclude', '^chromeos/'],
741 # Remove all unnecessary files for build_nexe.py to avoid exceeding
742 # command-line-string limitation when building NaCl on Windows.
743 ['OS == "win" and >(nacl_untrusted_build)==1', {
744 'sources/': [ ['exclude', '\\.h$'] ],
746 ['<(use_system_nspr)==1 and >(nacl_untrusted_build)==0', {
748 ['exclude', '^third_party/nspr/'],