Upstream version 7.36.153.0
[platform/framework/web/crosswalk.git] / src / base / base.gypi
index c9101d8..b4eba71 100644 (file)
@@ -6,6 +6,7 @@
   'target_defaults': {
     'variables': {
       'base_target': 0,
+      'base_i18n_target': 0,
     },
     'target_conditions': [
       # This part is shared between the targets defined below.
           'third_party/dmg_fp/dtoa_wrapper.cc',
           'third_party/icu/icu_utf.cc',
           'third_party/icu/icu_utf.h',
-          'third_party/nspr/prcpucfg.h',
-          'third_party/nspr/prcpucfg_freebsd.h',
-          'third_party/nspr/prcpucfg_linux.h',
-          'third_party/nspr/prcpucfg_mac.h',
-          'third_party/nspr/prcpucfg_nacl.h',
-          'third_party/nspr/prcpucfg_openbsd.h',
-          'third_party/nspr/prcpucfg_solaris.h',
-          'third_party/nspr/prcpucfg_win.h',
           'third_party/nspr/prtime.cc',
           'third_party/nspr/prtime.h',
-          'third_party/nspr/prtypes.h',
+          'third_party/superfasthash/superfasthash.c',
           'third_party/xdg_mime/xdgmime.h',
           'allocator/allocator_extension.cc',
           'allocator/allocator_extension.h',
           'allocator/type_profiler_control.cc',
           'allocator/type_profiler_control.h',
-          'android/activity_status.cc',
-          'android/activity_status.h',
+          'android/application_status_listener.cc',
+          'android/application_status_listener.h',
           'android/base_jni_registrar.cc',
           'android/base_jni_registrar.h',
           'android/build_info.cc',
           'android/build_info.h',
+          'android/command_line_android.cc',
+          'android/command_line_android.h',
+          'android/content_uri_utils.cc',
+          'android/content_uri_utils.h',
           'android/cpu_features.cc',
           'android/fifo_utils.cc',
           'android/fifo_utils.h',
           'android/jni_android.h',
           'android/jni_array.cc',
           'android/jni_array.h',
-          'android/jni_helper.cc',
-          'android/jni_helper.h',
           'android/jni_registrar.cc',
           'android/jni_registrar.h',
           'android/jni_string.cc',
           'android/jni_string.h',
+          'android/jni_weak_ref.cc',
+          'android/jni_weak_ref.h',
+          'android/library_loader/library_loader_hooks.cc',
+          'android/library_loader/library_loader_hooks.h',
           'android/memory_pressure_listener_android.cc',
           'android/memory_pressure_listener_android.h',
           'android/java_handler_thread.cc',
@@ -67,6 +66,8 @@
           'android/sys_utils.cc',
           'android/sys_utils.h',
           'android/thread_utils.h',
+          'android/trace_event_binding.cc',
+          'android/trace_event_binding.h',
           'at_exit.cc',
           'at_exit.h',
           'atomic_ref_count.h',
@@ -80,6 +81,8 @@
           'atomicops_internals_x86_msvc.h',
           'barrier_closure.cc',
           'barrier_closure.h',
+          'base64.cc',
+          'base64.h',
           'base_export.h',
           'base_paths.cc',
           'base_paths.h',
@@ -92,9 +95,9 @@
           'base_paths_win.cc',
           'base_paths_win.h',
           'base_switches.h',
-          'base64.cc',
-          'base64.h',
           'basictypes.h',
+          'big_endian.cc',
+          'big_endian.h',
           'bind.h',
           'bind_helpers.cc',
           'bind_helpers.h',
           'cpu.cc',
           'cpu.h',
           'critical_closure.h',
-          'critical_closure_ios.mm',
+          'critical_closure_internal_ios.mm',
           'debug/alias.cc',
           'debug/alias.h',
           'debug/crash_logging.cc',
           'debug/crash_logging.h',
-          'debug/debug_on_start_win.cc',
-          'debug/debug_on_start_win.h',
           'debug/debugger.cc',
           'debug/debugger.h',
           'debug/debugger_posix.cc',
           'debug/debugger_win.cc',
+          'debug/dump_without_crashing.cc',
+          'debug/dump_without_crashing.h',
+          'debug/gdi_debug_util_win.cc',
+          'debug/gdi_debug_util_win.h',
           # This file depends on files from the 'allocator' target,
           # but this target does not depend on 'allocator' (see
           # allocator.gyp for details).
           'debug/stack_trace.cc',
           'debug/stack_trace.h',
           'debug/stack_trace_android.cc',
-          'debug/stack_trace_ios.mm',
           'debug/stack_trace_posix.cc',
           'debug/stack_trace_win.cc',
           'debug/trace_event.h',
           'debug/trace_event_impl.cc',
           'debug/trace_event_impl.h',
           'debug/trace_event_impl_constants.cc',
+          'debug/trace_event_synthetic_delay.cc',
+          'debug/trace_event_synthetic_delay.h',
           'debug/trace_event_system_stats_monitor.cc',
           'debug/trace_event_memory.cc',
           'debug/trace_event_memory.h',
           'files/dir_reader_fallback.h',
           'files/dir_reader_linux.h',
           'files/dir_reader_posix.h',
+          'files/file.cc',
+          'files/file.h',
           'files/file_enumerator.cc',
           'files/file_enumerator.h',
           'files/file_enumerator_posix.cc',
           'files/file_path_watcher_linux.cc',
           'files/file_path_watcher_stub.cc',
           'files/file_path_watcher_win.cc',
+          'files/file_posix.cc',
+          'files/file_proxy.cc',
+          'files/file_proxy.h',
           'files/file_util_proxy.cc',
           'files/file_util_proxy.h',
+          'files/file_win.cc',
           'files/important_file_writer.h',
           'files/important_file_writer.cc',
           'files/memory_mapped_file.cc',
           'files/memory_mapped_file.h',
           'files/memory_mapped_file_posix.cc',
           'files/memory_mapped_file_win.cc',
+          'files/scoped_file.cc',
+          'files/scoped_file.h',
           'files/scoped_platform_file_closer.cc',
           'files/scoped_platform_file_closer.h',
           'files/scoped_temp_dir.cc',
           'mac/mac_logging.cc',
           'mac/mac_util.h',
           'mac/mac_util.mm',
+          'mac/mach_logging.cc',
+          'mac/mach_logging.h',
           'mac/objc_property_releaser.h',
           'mac/objc_property_releaser.mm',
           'mac/os_crash_dumps.cc',
           'mac/scoped_launch_data.h',
           'mac/scoped_mach_port.cc',
           'mac/scoped_mach_port.h',
+          'mac/scoped_mach_vm.cc',
+          'mac/scoped_mach_vm.h',
           'mac/scoped_nsautorelease_pool.h',
           'mac/scoped_nsautorelease_pool.mm',
           'mac/scoped_nsexception_enabler.h',
           'mac/scoped_nsobject.h',
           'mac/scoped_sending_event.h',
           'mac/scoped_sending_event.mm',
+          'mac/scoped_typeref.h',
           'mac/sdk_forward_declarations.h',
+          'macros.h',
+          'md5.cc',
+          'md5.h',
           'memory/aligned_memory.cc',
           'memory/aligned_memory.h',
+          'memory/discardable_memory.cc',
           'memory/discardable_memory.h',
           'memory/discardable_memory_android.cc',
           'memory/discardable_memory_emulated.cc',
+          'memory/discardable_memory_emulated.h',
+          'memory/discardable_memory_linux.cc',
           'memory/discardable_memory_mac.cc',
-          'memory/discardable_memory_provider.cc',
-          'memory/discardable_memory_provider.h',
+          'memory/discardable_memory_malloc.cc',
+          'memory/discardable_memory_malloc.h',
+          'memory/discardable_memory_manager.cc',
+          'memory/discardable_memory_manager.h',
+          'memory/discardable_memory_win.cc',
           'memory/linked_ptr.h',
           'memory/manual_constructor.h',
           'memory/memory_pressure_listener.cc',
           'message_loop/message_pump_android.h',
           'message_loop/message_pump_default.cc',
           'message_loop/message_pump_default.h',
-          'message_loop/message_pump_ozone.cc',
-          'message_loop/message_pump_ozone.h',
           'message_loop/message_pump_win.cc',
           'message_loop/message_pump_win.h',
           'metrics/sample_map.cc',
           'metrics/stats_counters.h',
           'metrics/stats_table.cc',
           'metrics/stats_table.h',
+          'metrics/user_metrics.cc',
+          'metrics/user_metrics.h',
+          'metrics/user_metrics_action.h',
           'move.h',
           'native_library.h',
           'native_library_mac.mm',
           'process/launch_posix.cc',
           'process/launch_win.cc',
           'process/memory.h',
+          'process/memory.cc',
           'process/memory_linux.cc',
           'process/memory_mac.mm',
           'process/memory_win.cc',
           'rand_util_win.cc',
           'run_loop.cc',
           'run_loop.h',
-          'safe_numerics.h',
+          'numerics/safe_conversions.h',
+          'numerics/safe_conversions_impl.h',
+          'numerics/safe_math.h',
+          'numerics/safe_math_impl.h',
           'safe_strerror_posix.cc',
           'safe_strerror_posix.h',
+          'scoped_generic.h',
           'scoped_native_library.cc',
           'scoped_native_library.h',
           'sequence_checker.h',
           'sys_info_android.cc',
           'sys_info_chromeos.cc',
           'sys_info_freebsd.cc',
+          'sys_info_internal.h',
           'sys_info_ios.mm',
           'sys_info_linux.cc',
           'sys_info_mac.cc',
           'sys_info_openbsd.cc',
           'sys_info_posix.cc',
           'sys_info_win.cc',
+          'task/cancelable_task_tracker.cc',
+          'task/cancelable_task_tracker.h',
           'task_runner.cc',
           'task_runner.h',
           'task_runner_util.h',
           'timer/hi_res_timer_manager.h',
           'timer/hi_res_timer_manager_posix.cc',
           'timer/hi_res_timer_manager_win.cc',
+          'timer/mock_timer.cc',
+          'timer/mock_timer.h',
           'timer/timer.cc',
           'timer/timer.h',
           'tracked_objects.cc',
           'win/shortcut.h',
           'win/startup_information.cc',
           'win/startup_information.h',
-          'win/text_services_message_filter.cc',
-          'win/text_services_message_filter.h',
           'win/win_util.cc',
           'win/win_util.h',
           'win/windows_version.cc',
           'win/windows_version.h',
           'win/wrapped_window_proc.cc',
           'win/wrapped_window_proc.h',
-          'x11/x11_error_tracker.cc',
-          'x11/x11_error_tracker.h',
-          'x11/x11_error_tracker_gtk.cc',
-        ],
-        'conditions': [
-          ['use_aura==1 and use_x11==1', {
-            'sources': [
-              'x11/edid_parser_x11.cc',
-              'x11/edid_parser_x11.h',
-            ],
-          }],
-          ['google_tv==1', {
-           'sources': [
-             'android/context_types.cc',
-             'android/context_types.h',
-           ],
-          }],
         ],
         'defines': [
           'BASE_IMPLEMENTATION',
           4018,
         ],
         'target_conditions': [
-          ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
+          ['(<(desktop_linux) == 0 and <(chromeos) == 0) or >(nacl_untrusted_build)==1', {
               'sources/': [
                 ['exclude', '^nix/'],
               ],
               'sources!': [
                 'atomicops_internals_x86_gcc.cc',
-                'message_loop/message_pump_glib.cc',
-                'message_loop/message_pump_x11.cc',
               ],
           }],
-          ['<(toolkit_uses_gtk)==0 or >(nacl_untrusted_build)==1', {
-            'sources!': ['message_loop/message_pump_gtk.cc'],
+          ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
+              'sources!': [
+                'message_loop/message_pump_glib.cc',
+              ],
           }],
           ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
               'sources!': [
                'file_util_posix.cc',
                'files/file_enumerator_posix.cc',
                'files/file_path_watcher_kqueue.cc',
+               'files/file_proxy.cc',
                'files/file_util_proxy.cc',
                'memory/shared_memory_posix.cc',
                'native_library_posix.cc',
                'third_party/dynamic_annotations/dynamic_annotations.c',
             ],
             'sources/': [
-              # Metrics won't work in the NaCl sandbox.
-              ['exclude', '^metrics/'],
               ['include', '^threading/platform_thread_linux\\.cc$'],
             ],
           }],
+          ['OS == "android" and _toolset == "target"', {
+           'sources': [
+             'memory/discardable_memory_ashmem_allocator.cc',
+             'memory/discardable_memory_ashmem_allocator.h',
+             'memory/discardable_memory_ashmem.cc',
+             'memory/discardable_memory_ashmem.h',
+           ],
+          }],
           ['OS == "android" and >(nacl_untrusted_build)==0', {
             'sources!': [
               'base_paths_posix.cc',
             ],
           }],
           ['OS == "android" and _toolset == "host" and host_os == "linux"', {
+            'defines': [
+              'OS_ANDROID_HOST=Linux',
+            ],
             'sources/': [
               # Pull in specific files for host builds.
+              ['include', '^atomicops_internals_x86_gcc\\.cc$'],
               ['include', '^threading/platform_thread_linux\\.cc$'],
             ],
           }],
               ['exclude', '(^|/)ios/'],
             ]
           }],
-          ['OS != "mac" or >(nacl_untrusted_build)==1', {
-              'sources!': [
-                'mac/scoped_aedesc.h'
-              ],
-          }],
           # For now, just test the *BSD platforms enough to exclude them.
           # Subsequent changes will include them further.
           ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
               'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
             },
           ],
-          ['OS != "win" or >(nacl_untrusted_build)==1', {
-              'sources/': [ ['exclude', '^win/'] ],
-            },
-          ],
-          ['<(native_discardable_memory)==1', {
-              'sources!': [
-                'memory/discardable_memory_emulated.cc',
-                'memory/discardable_memory_provider.cc',
-                'memory/discardable_memory_provider.h',
-              ],
-            },
-          ],
-          ['OS != "android" or >(nacl_untrusted_build)==1', {
-              'sources/': [ ['exclude', '^android/'] ],
-            },
-          ],
           ['OS == "win" and >(nacl_untrusted_build)==0', {
             'include_dirs': [
               '<(DEPTH)/third_party/wtl/include',
               'strings/string16.cc',
             ],
           },],
-          ['<(use_ozone) == 1', {
-            'sources!': [
-              'message_loop/message_pump_glib.cc',
-              'message_loop/message_pump_x11.cc',
-            ]
-          }],
           ['OS == "linux" and >(nacl_untrusted_build)==0', {
             'sources!': [
               'files/file_path_watcher_kqueue.cc',
               ['exclude', '^sys_info_linux\\.cc$'],
             ],
           }],
-          ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
-            'sources/': [
-              ['exclude', '^chromeos/'],
-            ],
-          }],
           # Remove all unnecessary files for build_nexe.py to avoid exceeding
           # command-line-string limitation when building NaCl on Windows.
           ['OS == "win" and >(nacl_untrusted_build)==1', {
               'sources/': [ ['exclude', '\\.h$'] ],
           }],
-          ['<(use_system_nspr)==1 and >(nacl_untrusted_build)==0', {
-            'sources/': [
-              ['exclude', '^third_party/nspr/'],
-            ],
-          }],
-          ['<(toolkit_uses_gtk) == 1', {
-            'sources!': [
-              'x11/x11_error_tracker.cc',
-            ],
-          }],
         ],
       }],
+      ['base_i18n_target==1', {
+        'defines': [
+          'BASE_I18N_IMPLEMENTATION',
+        ],
+        'sources': [
+          'i18n/base_i18n_export.h',
+          'i18n/bidi_line_iterator.cc',
+          'i18n/bidi_line_iterator.h',
+          'i18n/break_iterator.cc',
+          'i18n/break_iterator.h',
+          'i18n/case_conversion.cc',
+          'i18n/case_conversion.h',
+          'i18n/char_iterator.cc',
+          'i18n/char_iterator.h',
+          'i18n/file_util_icu.cc',
+          'i18n/file_util_icu.h',
+          'i18n/i18n_constants.cc',
+          'i18n/i18n_constants.h',
+          'i18n/icu_encoding_detection.cc',
+          'i18n/icu_encoding_detection.h',
+          'i18n/icu_string_conversions.cc',
+          'i18n/icu_string_conversions.h',
+          'i18n/icu_util.cc',
+          'i18n/icu_util.h',
+          'i18n/number_formatting.cc',
+          'i18n/number_formatting.h',
+          'i18n/rtl.cc',
+          'i18n/rtl.h',
+          'i18n/streaming_utf8_validator.cc',
+          'i18n/streaming_utf8_validator.h',
+          'i18n/string_compare.cc',
+          'i18n/string_compare.h',
+          'i18n/string_search.cc',
+          'i18n/string_search.h',
+          'i18n/time_formatting.cc',
+          'i18n/time_formatting.h',
+          'i18n/timezone.cc',
+          'i18n/timezone.h',
+          'i18n/utf8_validator_tables.cc',
+          'i18n/utf8_validator_tables.h',
+        ],
+      }]
     ],
   },
 }