1 # Copyright (c) 2011 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/dynamic_annotations/dynamic_annotations.h',
19 'third_party/icu/icu_utf.cc',
20 'third_party/icu/icu_utf.h',
21 'third_party/nspr/prtime.cc',
22 'third_party/nspr/prtime.h',
23 'third_party/nspr/prcpucfg_linux.h',
24 'third_party/xdg_mime/xdgmime.h',
25 'android/scoped_java_ref.cc',
26 'android/scoped_java_ref.h',
27 'android/jni_android.cc',
28 'android/jni_android.h',
29 'android/jni_array.cc',
30 'android/jni_array.h',
31 'android/jni_string.cc',
32 'android/jni_string.h',
33 'android/path_utils.cc',
34 'android/path_utils.h',
38 'atomic_sequence_num.h',
40 'atomicops_internals_x86_gcc.cc',
41 'atomicops_internals_x86_gcc.h',
42 'atomicops_internals_x86_msvc.h',
46 'base_paths_android.cc',
49 'base_paths_linux.cc',
57 'bind_internal_win.h',
60 'callback_internal.cc',
61 'callback_internal.h',
65 'compiler_specific.h',
70 'debug/debug_on_start_win.cc',
71 'debug/debug_on_start_win.h',
74 'debug/debugger_posix.cc',
75 'debug/debugger_win.cc',
76 'debug/leak_annotations.h',
77 'debug/leak_tracker.h',
80 'debug/stack_trace.cc',
81 'debug/stack_trace.h',
82 'debug/stack_trace_android.cc',
83 'debug/stack_trace_posix.cc',
84 'debug/stack_trace_win.cc',
85 'debug/trace_event_win.cc',
86 'debug/trace_event.cc',
87 'debug/trace_event.h',
88 'dir_reader_fallback.h',
94 'file_descriptor_posix.h',
99 'file_util_android.cc',
100 'file_util_deprecated.h',
101 'file_util_linux.cc',
103 'file_util_posix.cc',
105 'file_util_proxy.cc',
107 'file_version_info.h',
108 'file_version_info_mac.h',
109 'file_version_info_mac.mm',
110 'file_version_info_win.cc',
111 'file_version_info_win.h',
112 'files/file_path_watcher.cc',
113 'files/file_path_watcher.h',
114 'files/file_path_watcher_kqueue.cc',
115 'files/file_path_watcher_linux.cc',
116 'files/file_path_watcher_stub.cc',
117 'files/file_path_watcher_win.cc',
120 'global_descriptors_posix.cc',
121 'global_descriptors_posix.h',
125 'json/json_reader.cc',
126 'json/json_reader.h',
127 'json/json_value_serializer.cc',
128 'json/json_value_serializer.h',
129 'json/json_writer.cc',
130 'json/json_writer.h',
131 'json/string_escape.cc',
132 'json/string_escape.h',
142 'mac/cocoa_protocols.h',
143 'mac/crash_logging.h',
144 'mac/crash_logging.mm',
145 'mac/foundation_util.h',
146 'mac/foundation_util.mm',
149 'mac/objc_property_releaser.h',
150 'mac/objc_property_releaser.mm',
151 'mac/os_crash_dumps.cc',
152 'mac/os_crash_dumps.h',
153 'mac/scoped_aedesc.h',
154 'mac/scoped_cftyperef.h',
155 'mac/scoped_nsautorelease_pool.h',
156 'mac/scoped_nsautorelease_pool.mm',
157 'mac/scoped_nsexception_enabler.h',
158 'mac/scoped_nsexception_enabler.mm',
161 'memory/linked_ptr.h',
162 'memory/mru_cache.h',
163 'memory/raw_scoped_refptr_mismatch_checker.h',
164 'memory/ref_counted.cc',
165 'memory/ref_counted.h',
166 'memory/ref_counted_memory.cc',
167 'memory/ref_counted_memory.h',
168 'memory/scoped_callback_factory.h',
169 'memory/scoped_handle.h',
170 'memory/scoped_nsobject.h',
171 'memory/scoped_open_process.h',
172 'memory/scoped_ptr.h',
173 'memory/scoped_vector.h',
174 'memory/singleton.h',
175 'memory/weak_ptr.cc',
179 'message_loop_proxy.cc',
180 'message_loop_proxy.h',
181 'message_loop_proxy_impl.cc',
182 'message_loop_proxy_impl.h',
185 'message_pump_default.cc',
186 'message_pump_default.h',
187 'message_pump_win.cc',
188 'message_pump_win.h',
189 'metrics/histogram.cc',
190 'metrics/histogram.h',
191 'metrics/stats_counters.cc',
192 'metrics/stats_counters.h',
193 'metrics/stats_table.cc',
194 'metrics/stats_table.h',
198 'native_library_linux.cc',
199 'native_library_mac.mm',
200 'native_library_win.cc',
202 'observer_list_threadsafe.h',
203 'os_compat_android.cc',
204 'os_compat_android.h',
211 'platform_file_posix.cc',
212 'platform_file_win.cc',
219 'process_util_linux.cc',
220 'process_util_mac.mm',
221 'process_util_openbsd.cc',
222 'process_util_posix.cc',
223 'process_util_win.cc',
228 'rand_util_posix.cc',
230 'safe_strerror_posix.cc',
231 'safe_strerror_posix.h',
232 'scoped_native_library.cc',
233 'scoped_native_library.h',
234 'scoped_temp_dir.cc',
240 'shared_memory_android.cc',
241 'shared_memory_posix.cc',
242 'shared_memory_win.cc',
246 'string_number_conversions.cc',
247 'string_number_conversions.h',
252 'string_tokenizer.h',
255 'string_util_posix.h',
257 'stringize_macros.h',
260 'synchronization/cancellation_flag.cc',
261 'synchronization/cancellation_flag.h',
262 'synchronization/condition_variable.h',
263 'synchronization/condition_variable_posix.cc',
264 'synchronization/condition_variable_win.cc',
265 'synchronization/lock.cc',
266 'synchronization/lock.h',
267 'synchronization/lock_impl.h',
268 'synchronization/lock_impl_posix.cc',
269 'synchronization/lock_impl_win.cc',
270 'synchronization/waitable_event.h',
271 'synchronization/waitable_event_posix.cc',
272 'synchronization/waitable_event_watcher.h',
273 'synchronization/waitable_event_watcher_posix.cc',
274 'synchronization/waitable_event_watcher_win.cc',
275 'synchronization/waitable_event_win.cc',
276 'system_monitor/system_monitor.cc',
277 'system_monitor/system_monitor.h',
278 'system_monitor/system_monitor_android.cc',
279 'system_monitor/system_monitor_mac.mm',
280 'system_monitor/system_monitor_posix.cc',
281 'system_monitor/system_monitor_win.cc',
283 'sys_info_chromeos.cc',
284 'sys_info_freebsd.cc',
287 'sys_info_openbsd.cc',
290 'sys_string_conversions.h',
291 'sys_string_conversions_linux.cc',
292 'sys_string_conversions_mac.mm',
293 'sys_string_conversions_win.cc',
299 'threading/non_thread_safe.h',
300 'threading/non_thread_safe_impl.cc',
301 'threading/non_thread_safe_impl.h',
302 'threading/platform_thread.h',
303 'threading/platform_thread_mac.mm',
304 'threading/platform_thread_posix.cc',
305 'threading/platform_thread_win.cc',
306 'threading/post_task_and_reply_impl.cc',
307 'threading/post_task_and_reply_impl.h',
308 'threading/simple_thread.cc',
309 'threading/simple_thread.h',
310 'threading/thread.cc',
311 'threading/thread.h',
312 'threading/thread_checker.h',
313 'threading/thread_checker_impl.cc',
314 'threading/thread_checker_impl.h',
315 'threading/thread_collision_warner.cc',
316 'threading/thread_collision_warner.h',
317 'threading/thread_local.h',
318 'threading/thread_local_posix.cc',
319 'threading/thread_local_storage.h',
320 'threading/thread_local_storage_posix.cc',
321 'threading/thread_local_storage_win.cc',
322 'threading/thread_local_win.cc',
323 'threading/thread_restrictions.h',
324 'threading/thread_restrictions.cc',
325 'threading/watchdog.cc',
326 'threading/watchdog.h',
327 'threading/worker_pool.h',
328 'threading/worker_pool.cc',
329 'threading/worker_pool_posix.cc',
330 'threading/worker_pool_posix.h',
331 'threading/worker_pool_win.cc',
337 'tracked_objects.cc',
340 'utf_offset_string_conversions.cc',
341 'utf_offset_string_conversions.h',
342 'utf_string_conversion_utils.cc',
343 'utf_string_conversion_utils.h',
344 'utf_string_conversions.cc',
345 'utf_string_conversions.h',
348 'value_conversions.cc',
349 'value_conversions.h',
356 'win/event_trace_consumer.h',
357 'win/event_trace_controller.cc',
358 'win/event_trace_controller.h',
359 'win/event_trace_provider.cc',
360 'win/event_trace_provider.h',
363 'win/iat_patch_function.cc',
364 'win/iat_patch_function.h',
365 'win/object_watcher.cc',
366 'win/object_watcher.h',
369 'win/resource_util.cc',
370 'win/resource_util.h',
371 'win/scoped_bstr.cc',
373 'win/scoped_co_mem.h',
374 'win/scoped_com_initializer.h',
375 'win/scoped_comptr.h',
376 'win/scoped_gdi_object.h',
377 'win/scoped_handle.h',
379 'win/scoped_hglobal.h',
380 'win/scoped_select_object.h',
381 'win/scoped_variant.cc',
382 'win/scoped_variant.h',
383 'win/windows_version.cc',
384 'win/windows_version.h',
387 'win/wrapped_window_proc.cc',
388 'win/wrapped_window_proc.h',
391 'BASE_IMPLEMENTATION',
396 # These warnings are needed for the files in third_party\dmg_fp.
397 'msvs_disabled_warnings': [
398 4244, 4554, 4018, 4102,
400 'mac_framework_dirs': [
401 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
404 [ 'use_wayland == 1', {
406 'message_pump_gtk.cc',
412 ['exclude', '^nix/'],
415 'atomicops_internals_x86_gcc.cc',
416 'message_pump_glib.cc',
420 [ 'toolkit_uses_gtk==0', {
421 'sources!': [ 'message_pump_gtk.cc', ],
423 [ '(touchui==0 and use_aura==0) or OS == "win"', {
424 'sources!' : [ 'message_pump_x.cc', ],
426 'sources!' : [ 'message_pump_gtk.cc', ],
427 'sources/' : [ [ 'include', 'message_pump_x.cc', ] ],
429 [ 'OS != "linux" and OS != "openbsd"', {
431 # Not automatically excluded by the *linux.cc rules.
436 [ 'OS == "android"', {
438 ['exclude', '^debug/stack_trace.cc'],
439 ['exclude', '^debug/stack_trace_posix.cc'],
440 ['exclude', '^system_monitor/system_monitor_posix.cc'],
441 ['include', '^native_library_linux.cc'],
442 ['include', '^process_util_linux.cc'],
443 ['include', '^sys_info_linux.cc'],
444 ['include', '^sys_string_conversions_linux.cc'],
445 ['include', '^worker_pool_linux.cc'],
446 # TODO(michaelbai): The below files are excluded because of the
447 # missing JNI, add them back when JNI is ready.
448 ['exclude', '^android/'],
449 ['exclude', '^message_pump_android.cc'],
450 ['exclude', '^base_paths_android.cc'],
451 ['exclude', '^debug/stack_trace_android.cc'],
456 'mac/scoped_aedesc.h'
459 # For now, just test the *BSD platforms enough to exclude them.
460 # Subsequent changes will include them further.
461 [ 'OS != "freebsd"', {
462 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
465 [ 'OS != "openbsd"', {
466 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
470 'sources/': [ ['exclude', '^win/'] ],
473 ['OS != "android"', {
474 'sources/': [ ['exclude', '^android/'] ],
479 '<(DEPTH)/third_party/wtl/include',
482 'event_recorder_stubs.cc',
483 'file_descriptor_shuffle.cc',
484 'files/file_path_watcher_kqueue.cc',
485 'files/file_path_watcher_stub.cc',
486 'message_pump_libevent.cc',
487 # Not using sha1_win.cc because it may have caused a
488 # regression to page cycler moz.
495 'files/file_path_watcher_kqueue.cc',
496 'files/file_path_watcher_stub.cc',
501 'files/file_path_watcher_stub.cc',
504 [ 'OS == "openbsd"', {
506 ['exclude', '^files/file_path_watcher_linux\\.cc$'],
507 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
508 ['exclude', '^file_util_linux\\.cc$'],
509 ['exclude', '^process_linux\\.cc$'],
510 ['exclude', '^process_util_linux\\.cc$'],
511 ['exclude', '^sys_info_linux\\.cc$'],
520 'target_name': 'base',
521 'type': '<(component)',
522 'toolsets': ['host', 'target'],
528 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
529 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
531 # TODO(gregoryd): direct_dependent_settings should be shared with the
532 # 64-bit target, but it doesn't work due to a bug in gyp
533 'direct_dependent_settings': {
542 'sources/': [ ['include', '_chromeos\\.cc$'] ]
545 [ 'linux_use_tcmalloc==0', {
549 'direct_dependent_settings': {
556 [ 'toolkit_uses_gtk==1', {
558 '../build/linux/system.gyp:gtk',
560 'export_dependent_settings': [
561 '../build/linux/system.gyp:gtk',
567 '../build/util/build_util.gyp:lastchange#target',
568 '../build/linux/system.gyp:glib',
569 '../build/linux/system.gyp:x11',
576 '-Wno-write-strings',
578 'export_dependent_settings': [
579 '../build/linux/system.gyp:glib',
580 '../build/linux/system.gyp:x11',
584 ['exclude', '/xdg_user_dirs/'],
585 ['exclude', '_nss\.cc$'],
588 [ 'OS == "android"', {
591 '../third_party/ashmem/ashmem.gyp:ashmem#target',
602 [ '_toolset=="host" and host_os=="linux"', {
604 '../build/linux/system.gyp:glib',
609 [ 'OS == "freebsd" or OS == "openbsd"', {
611 '/usr/local/include',
615 '-L/usr/local/lib -lexecinfo',
623 # We need rt for clock_gettime().
625 # For 'native_library_linux.cc'
633 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
634 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
635 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
636 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
637 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
638 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
642 '../third_party/mach_override/mach_override.gyp:mach_override',
646 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
648 [ 'component=="shared_library"', {
652 'debug/debug_on_start_win.cc',
659 'third_party/nspr/prcpucfg.h',
660 'third_party/nspr/prcpucfg_win.h',
661 'third_party/nspr/prtypes.h',
662 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
663 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
668 'event_recorder_stubs.cc',
669 'event_recorder_win.cc',
670 'file_descriptor_shuffle.cc',
671 'file_descriptor_shuffle.h',
676 'message_pump_android.cc',
677 'message_pump_android.h',
678 'message_pump_glib.cc',
679 'message_pump_glib.h',
680 'message_pump_gtk.cc',
681 'message_pump_gtk.h',
682 'message_pump_observer.h',
685 'message_pump_libevent.cc',
686 'message_pump_libevent.h',
687 'message_pump_mac.h',
688 'message_pump_mac.mm',
689 'message_pump_wayland.cc',
690 'message_pump_wayland.h',
691 'metrics/field_trial.cc',
692 'metrics/field_trial.h',
696 'sync_socket_win.cc',
697 'sync_socket_posix.cc',
707 'target_name': 'base_nacl_win64',
708 'type': '<(component)',
714 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
716 # TODO(gregoryd): direct_dependent_settings should be shared with the
717 # 32-bit target, but it doesn't work due to a bug in gyp
718 'direct_dependent_settings': {
724 '<@(nacl_win64_defines)',
728 'msvs_target_platform': 'x64',
732 [ 'component == "shared_library"', {
734 'debug/debug_on_start_win.cc',
740 'target_name': 'base_i18n_nacl_win64',
741 'type': '<(component)',
742 # TODO(gregoryd): direct_dependent_settings should be shared with the
743 # 32-bit target, but it doesn't work due to a bug in gyp
744 'direct_dependent_settings': {
750 '<@(nacl_win64_defines)',
751 'BASE_I18N_IMPLEMENTATION',
757 'i18n/icu_util_nacl_win64.cc',
761 'msvs_target_platform': 'x64',
767 [ 'os_posix==1 and OS!="mac"', {
770 'target_name': 'symbolize',
771 'type': 'static_library',
772 'toolsets': ['host', 'target'],
777 [ 'OS == "solaris"', {
780 '/usr/gnu/include/libelf',
791 'third_party/symbolize/symbolize.cc',
792 'third_party/symbolize/demangle.cc',
799 'target_name': 'xdg_mime',
800 'type': 'static_library',
801 'toolsets': ['host', 'target'],
809 'third_party/xdg_mime/xdgmime.c',
810 'third_party/xdg_mime/xdgmime.h',
811 'third_party/xdg_mime/xdgmimealias.c',
812 'third_party/xdg_mime/xdgmimealias.h',
813 'third_party/xdg_mime/xdgmimecache.c',
814 'third_party/xdg_mime/xdgmimecache.h',
815 'third_party/xdg_mime/xdgmimeglob.c',
816 'third_party/xdg_mime/xdgmimeglob.h',
817 'third_party/xdg_mime/xdgmimeicon.c',
818 'third_party/xdg_mime/xdgmimeicon.h',
819 'third_party/xdg_mime/xdgmimeint.c',
820 'third_party/xdg_mime/xdgmimeint.h',
821 'third_party/xdg_mime/xdgmimemagic.c',
822 'third_party/xdg_mime/xdgmimemagic.h',
823 'third_party/xdg_mime/xdgmimeparent.c',
824 'third_party/xdg_mime/xdgmimeparent.h',