Remove all .gyp and .gypi files. Except: * //build/linux/system.gyp * //third_party/boringssl/boringssl.gypi * //skia/skia_gn_files.gypi (which are all currently consumed via //build/gypi_to_gn.py). Also remove the remaining contents of //build/linux/unbundle. R=jamesr@chromium.org Review URL: https://codereview.chromium.org/1438853002 .
diff --git a/allocator/allocator.gyp b/allocator/allocator.gyp deleted file mode 100644 index d426c9c..0000000 --- a/allocator/allocator.gyp +++ /dev/null
@@ -1,572 +0,0 @@ -# Copyright (c) 2012 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'target_defaults': { - 'variables': { - # This code gets run a lot and debugged rarely, so it should be fast - # by default. See http://crbug.com/388949. - 'debug_optimize': '2', - 'win_debug_Optimization': '0', - # Run time checks are incompatible with any level of optimizations. - 'win_debug_RuntimeChecks': '0', - }, - }, - 'variables': { - 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', - 'use_vtable_verify%': 0, - }, - 'targets': [ - # Only executables and not libraries should depend on the - # allocator target; only the application (the final executable) - # knows what allocator makes sense. - { - 'target_name': 'allocator', - 'type': 'static_library', - 'direct_dependent_settings': { - 'configurations': { - 'Common_Base': { - 'msvs_settings': { - 'VCLinkerTool': { - 'IgnoreDefaultLibraryNames': ['libcmtd.lib', 'libcmt.lib'], - 'AdditionalDependencies': [ - '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib' - ], - }, - }, - }, - }, - 'conditions': [ - ['OS=="win"', { - 'defines': [ - 'PERFTOOLS_DLL_DECL=', - ], - }], - ], - }, - 'dependencies': [ - '../third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', - ], - 'msvs_settings': { - # TODO(sgk): merge this with build/common.gypi settings - 'VCLibrarianTool': { - 'AdditionalOptions': ['/ignore:4006,4221'], - }, - 'VCLinkerTool': { - 'AdditionalOptions': ['/ignore:4006'], - }, - }, - 'configurations': { - 'Debug_Base': { - 'msvs_settings': { - 'VCCLCompilerTool': { - 'RuntimeLibrary': '0', - }, - }, - 'variables': { - # Provide a way to force disable debugallocation in Debug builds, - # e.g. for profiling (it's more rare to profile Debug builds, - # but people sometimes need to do that). - 'disable_debugallocation%': 0, - }, - 'conditions': [ - ['disable_debugallocation==0', { - 'defines': [ - # Use debugallocation for Debug builds to catch problems early - # and cleanly, http://crbug.com/30715 . - 'TCMALLOC_FOR_DEBUGALLOCATION', - ], - }], - ], - }, - }, - 'conditions': [ - ['use_allocator=="tcmalloc"', { - # Disable the heap checker in tcmalloc. - 'defines': [ - 'NO_HEAP_CHECK', - ], - 'include_dirs': [ - '.', - '<(tcmalloc_dir)/src/base', - '<(tcmalloc_dir)/src', - '../..', - ], - 'sources': [ - # Generated for our configuration from tcmalloc's build - # and checked in. - '<(tcmalloc_dir)/src/config.h', - '<(tcmalloc_dir)/src/config_android.h', - '<(tcmalloc_dir)/src/config_linux.h', - '<(tcmalloc_dir)/src/config_win.h', - - # all tcmalloc native and forked files - '<(tcmalloc_dir)/src/addressmap-inl.h', - '<(tcmalloc_dir)/src/base/abort.cc', - '<(tcmalloc_dir)/src/base/abort.h', - '<(tcmalloc_dir)/src/base/arm_instruction_set_select.h', - '<(tcmalloc_dir)/src/base/atomicops-internals-arm-generic.h', - '<(tcmalloc_dir)/src/base/atomicops-internals-arm-v6plus.h', - '<(tcmalloc_dir)/src/base/atomicops-internals-linuxppc.h', - '<(tcmalloc_dir)/src/base/atomicops-internals-macosx.h', - '<(tcmalloc_dir)/src/base/atomicops-internals-windows.h', - '<(tcmalloc_dir)/src/base/atomicops-internals-x86.cc', - '<(tcmalloc_dir)/src/base/atomicops-internals-x86.h', - '<(tcmalloc_dir)/src/base/atomicops.h', - '<(tcmalloc_dir)/src/base/basictypes.h', - '<(tcmalloc_dir)/src/base/commandlineflags.h', - '<(tcmalloc_dir)/src/base/cycleclock.h', - # We don't list dynamic_annotations.c since its copy is already - # present in the dynamic_annotations target. - '<(tcmalloc_dir)/src/base/dynamic_annotations.h', - '<(tcmalloc_dir)/src/base/elf_mem_image.cc', - '<(tcmalloc_dir)/src/base/elf_mem_image.h', - '<(tcmalloc_dir)/src/base/elfcore.h', - '<(tcmalloc_dir)/src/base/googleinit.h', - '<(tcmalloc_dir)/src/base/linux_syscall_support.h', - '<(tcmalloc_dir)/src/base/linuxthreads.cc', - '<(tcmalloc_dir)/src/base/linuxthreads.h', - '<(tcmalloc_dir)/src/base/logging.cc', - '<(tcmalloc_dir)/src/base/logging.h', - '<(tcmalloc_dir)/src/base/low_level_alloc.cc', - '<(tcmalloc_dir)/src/base/low_level_alloc.h', - '<(tcmalloc_dir)/src/base/simple_mutex.h', - '<(tcmalloc_dir)/src/base/spinlock.cc', - '<(tcmalloc_dir)/src/base/spinlock.h', - '<(tcmalloc_dir)/src/base/spinlock_internal.cc', - '<(tcmalloc_dir)/src/base/spinlock_internal.h', - '<(tcmalloc_dir)/src/base/spinlock_linux-inl.h', - '<(tcmalloc_dir)/src/base/spinlock_posix-inl.h', - '<(tcmalloc_dir)/src/base/spinlock_win32-inl.h', - '<(tcmalloc_dir)/src/base/stl_allocator.h', - '<(tcmalloc_dir)/src/base/synchronization_profiling.h', - '<(tcmalloc_dir)/src/base/sysinfo.cc', - '<(tcmalloc_dir)/src/base/sysinfo.h', - '<(tcmalloc_dir)/src/base/thread_annotations.h', - '<(tcmalloc_dir)/src/base/thread_lister.c', - '<(tcmalloc_dir)/src/base/thread_lister.h', - '<(tcmalloc_dir)/src/base/vdso_support.cc', - '<(tcmalloc_dir)/src/base/vdso_support.h', - '<(tcmalloc_dir)/src/central_freelist.cc', - '<(tcmalloc_dir)/src/central_freelist.h', - '<(tcmalloc_dir)/src/common.cc', - '<(tcmalloc_dir)/src/common.h', - '<(tcmalloc_dir)/src/debugallocation.cc', - '<(tcmalloc_dir)/src/deep-heap-profile.cc', - '<(tcmalloc_dir)/src/deep-heap-profile.h', - '<(tcmalloc_dir)/src/free_list.cc', - '<(tcmalloc_dir)/src/free_list.h', - '<(tcmalloc_dir)/src/getpc.h', - '<(tcmalloc_dir)/src/gperftools/heap-checker.h', - '<(tcmalloc_dir)/src/gperftools/heap-profiler.h', - '<(tcmalloc_dir)/src/gperftools/malloc_extension.h', - '<(tcmalloc_dir)/src/gperftools/malloc_extension_c.h', - '<(tcmalloc_dir)/src/gperftools/malloc_hook.h', - '<(tcmalloc_dir)/src/gperftools/malloc_hook_c.h', - '<(tcmalloc_dir)/src/gperftools/profiler.h', - '<(tcmalloc_dir)/src/gperftools/stacktrace.h', - '<(tcmalloc_dir)/src/gperftools/tcmalloc.h', - '<(tcmalloc_dir)/src/heap-checker-bcad.cc', - '<(tcmalloc_dir)/src/heap-checker.cc', - '<(tcmalloc_dir)/src/heap-profile-table.cc', - '<(tcmalloc_dir)/src/heap-profile-table.h', - '<(tcmalloc_dir)/src/heap-profiler.cc', - '<(tcmalloc_dir)/src/internal_logging.cc', - '<(tcmalloc_dir)/src/internal_logging.h', - '<(tcmalloc_dir)/src/libc_override.h', - '<(tcmalloc_dir)/src/libc_override_gcc_and_weak.h', - '<(tcmalloc_dir)/src/libc_override_glibc.h', - '<(tcmalloc_dir)/src/libc_override_osx.h', - '<(tcmalloc_dir)/src/libc_override_redefine.h', - '<(tcmalloc_dir)/src/linked_list.h', - '<(tcmalloc_dir)/src/malloc_extension.cc', - '<(tcmalloc_dir)/src/malloc_hook-inl.h', - '<(tcmalloc_dir)/src/malloc_hook.cc', - '<(tcmalloc_dir)/src/malloc_hook_mmap_freebsd.h', - '<(tcmalloc_dir)/src/malloc_hook_mmap_linux.h', - '<(tcmalloc_dir)/src/maybe_threads.cc', - '<(tcmalloc_dir)/src/maybe_threads.h', - '<(tcmalloc_dir)/src/memfs_malloc.cc', - '<(tcmalloc_dir)/src/memory_region_map.cc', - '<(tcmalloc_dir)/src/memory_region_map.h', - '<(tcmalloc_dir)/src/packed-cache-inl.h', - '<(tcmalloc_dir)/src/page_heap.cc', - '<(tcmalloc_dir)/src/page_heap.h', - '<(tcmalloc_dir)/src/page_heap_allocator.h', - '<(tcmalloc_dir)/src/pagemap.h', - '<(tcmalloc_dir)/src/profile-handler.cc', - '<(tcmalloc_dir)/src/profile-handler.h', - '<(tcmalloc_dir)/src/profiledata.cc', - '<(tcmalloc_dir)/src/profiledata.h', - '<(tcmalloc_dir)/src/profiler.cc', - '<(tcmalloc_dir)/src/raw_printer.cc', - '<(tcmalloc_dir)/src/raw_printer.h', - '<(tcmalloc_dir)/src/sampler.cc', - '<(tcmalloc_dir)/src/sampler.h', - '<(tcmalloc_dir)/src/span.cc', - '<(tcmalloc_dir)/src/span.h', - '<(tcmalloc_dir)/src/stack_trace_table.cc', - '<(tcmalloc_dir)/src/stack_trace_table.h', - '<(tcmalloc_dir)/src/stacktrace.cc', - '<(tcmalloc_dir)/src/stacktrace_arm-inl.h', - '<(tcmalloc_dir)/src/stacktrace_config.h', - '<(tcmalloc_dir)/src/stacktrace_generic-inl.h', - '<(tcmalloc_dir)/src/stacktrace_libunwind-inl.h', - '<(tcmalloc_dir)/src/stacktrace_powerpc-inl.h', - '<(tcmalloc_dir)/src/stacktrace_win32-inl.h', - '<(tcmalloc_dir)/src/stacktrace_with_context.cc', - '<(tcmalloc_dir)/src/stacktrace_x86-inl.h', - '<(tcmalloc_dir)/src/static_vars.cc', - '<(tcmalloc_dir)/src/static_vars.h', - '<(tcmalloc_dir)/src/symbolize.cc', - '<(tcmalloc_dir)/src/symbolize.h', - '<(tcmalloc_dir)/src/system-alloc.cc', - '<(tcmalloc_dir)/src/system-alloc.h', - '<(tcmalloc_dir)/src/tcmalloc.cc', - '<(tcmalloc_dir)/src/tcmalloc_guard.h', - '<(tcmalloc_dir)/src/thread_cache.cc', - '<(tcmalloc_dir)/src/thread_cache.h', - - 'debugallocation_shim.cc', - ], - # sources! means that these are not compiled directly. - 'sources!': [ - # We simply don't use these, but list them above so that IDE - # users can view the full available source for reference, etc. - '<(tcmalloc_dir)/src/addressmap-inl.h', - '<(tcmalloc_dir)/src/base/atomicops-internals-linuxppc.h', - '<(tcmalloc_dir)/src/base/atomicops-internals-macosx.h', - '<(tcmalloc_dir)/src/base/atomicops-internals-x86-msvc.h', - '<(tcmalloc_dir)/src/base/atomicops-internals-x86.h', - '<(tcmalloc_dir)/src/base/atomicops.h', - '<(tcmalloc_dir)/src/base/basictypes.h', - '<(tcmalloc_dir)/src/base/commandlineflags.h', - '<(tcmalloc_dir)/src/base/cycleclock.h', - '<(tcmalloc_dir)/src/base/elf_mem_image.h', - '<(tcmalloc_dir)/src/base/elfcore.h', - '<(tcmalloc_dir)/src/base/googleinit.h', - '<(tcmalloc_dir)/src/base/linux_syscall_support.h', - '<(tcmalloc_dir)/src/base/simple_mutex.h', - '<(tcmalloc_dir)/src/base/spinlock_linux-inl.h', - '<(tcmalloc_dir)/src/base/spinlock_posix-inl.h', - '<(tcmalloc_dir)/src/base/spinlock_win32-inl.h', - '<(tcmalloc_dir)/src/base/stl_allocator.h', - '<(tcmalloc_dir)/src/base/thread_annotations.h', - '<(tcmalloc_dir)/src/getpc.h', - '<(tcmalloc_dir)/src/gperftools/heap-checker.h', - '<(tcmalloc_dir)/src/gperftools/heap-profiler.h', - '<(tcmalloc_dir)/src/gperftools/malloc_extension.h', - '<(tcmalloc_dir)/src/gperftools/malloc_extension_c.h', - '<(tcmalloc_dir)/src/gperftools/malloc_hook.h', - '<(tcmalloc_dir)/src/gperftools/malloc_hook_c.h', - '<(tcmalloc_dir)/src/gperftools/profiler.h', - '<(tcmalloc_dir)/src/gperftools/stacktrace.h', - '<(tcmalloc_dir)/src/gperftools/tcmalloc.h', - '<(tcmalloc_dir)/src/heap-checker-bcad.cc', - '<(tcmalloc_dir)/src/heap-checker.cc', - '<(tcmalloc_dir)/src/libc_override.h', - '<(tcmalloc_dir)/src/libc_override_gcc_and_weak.h', - '<(tcmalloc_dir)/src/libc_override_glibc.h', - '<(tcmalloc_dir)/src/libc_override_osx.h', - '<(tcmalloc_dir)/src/libc_override_redefine.h', - '<(tcmalloc_dir)/src/malloc_hook_mmap_freebsd.h', - '<(tcmalloc_dir)/src/malloc_hook_mmap_linux.h', - '<(tcmalloc_dir)/src/memfs_malloc.cc', - '<(tcmalloc_dir)/src/packed-cache-inl.h', - '<(tcmalloc_dir)/src/page_heap_allocator.h', - '<(tcmalloc_dir)/src/pagemap.h', - '<(tcmalloc_dir)/src/stacktrace_arm-inl.h', - '<(tcmalloc_dir)/src/stacktrace_config.h', - '<(tcmalloc_dir)/src/stacktrace_generic-inl.h', - '<(tcmalloc_dir)/src/stacktrace_libunwind-inl.h', - '<(tcmalloc_dir)/src/stacktrace_powerpc-inl.h', - '<(tcmalloc_dir)/src/stacktrace_win32-inl.h', - '<(tcmalloc_dir)/src/stacktrace_with_context.cc', - '<(tcmalloc_dir)/src/stacktrace_x86-inl.h', - '<(tcmalloc_dir)/src/tcmalloc_guard.h', - - # Included by debugallocation_shim.cc. - '<(tcmalloc_dir)/src/debugallocation.cc', - '<(tcmalloc_dir)/src/tcmalloc.cc', - ] - },{ - 'include_dirs': [ - '.', - '../..', - ], - }], - ['OS=="linux" and clang_type_profiler==1', { - 'dependencies': [ - 'type_profiler_tcmalloc', - ], - # It is undoing dependencies and cflags_cc for type_profiler which - # build/common.gypi injects into all targets. - 'dependencies!': [ - 'type_profiler', - ], - 'cflags_cc!': [ - '-fintercept-allocation-functions', - ], - }], - ['OS=="win"', { - 'dependencies': [ - 'libcmt', - ], - 'sources': [ - 'allocator_shim_win.cc', - ], - }], - ['profiling!=1', { - 'sources!': [ - # cpuprofiler - '<(tcmalloc_dir)/src/base/thread_lister.c', - '<(tcmalloc_dir)/src/base/thread_lister.h', - '<(tcmalloc_dir)/src/profile-handler.cc', - '<(tcmalloc_dir)/src/profile-handler.h', - '<(tcmalloc_dir)/src/profiledata.cc', - '<(tcmalloc_dir)/src/profiledata.h', - '<(tcmalloc_dir)/src/profiler.cc', - ], - }], - ['OS=="linux" or OS=="freebsd" or OS=="solaris" or OS=="android"', { - 'sources!': [ - '<(tcmalloc_dir)/src/system-alloc.h', - ], - # We enable all warnings by default, but upstream disables a few. - # Keep "-Wno-*" flags in sync with upstream by comparing against: - # http://code.google.com/p/google-perftools/source/browse/trunk/Makefile.am - 'cflags': [ - '-Wno-sign-compare', - '-Wno-unused-result', - ], - 'cflags!': [ - '-fvisibility=hidden', - ], - 'link_settings': { - 'ldflags': [ - # Don't let linker rip this symbol out, otherwise the heap&cpu - # profilers will not initialize properly on startup. - '-Wl,-uIsHeapProfilerRunning,-uProfilerStart', - # Do the same for heap leak checker. - '-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapPKvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi', - '-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapPKvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl', - '-Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakChecker14UnIgnoreObjectEPKv', - ]}, - }], - [ 'use_vtable_verify==1', { - 'cflags': [ - '-fvtable-verify=preinit', - ], - }], - ['order_profiling != 0', { - 'target_conditions' : [ - ['_toolset=="target"', { - 'cflags!': [ '-finstrument-functions' ], - }], - ], - }], - ], - }, - { - # This library is linked in to src/base.gypi:base and allocator_unittests - # It can't depend on either and nothing else should depend on it - all - # other code should use the interfaced provided by base. - 'target_name': 'allocator_extension_thunks', - 'type': 'static_library', - 'sources': [ - 'allocator_extension_thunks.cc', - 'allocator_extension_thunks.h', - ], - 'toolsets': ['host', 'target'], - 'include_dirs': [ - '../../' - ], - 'conditions': [ - ['OS=="linux" and clang_type_profiler==1', { - # It is undoing dependencies and cflags_cc for type_profiler which - # build/common.gypi injects into all targets. - 'dependencies!': [ - 'type_profiler', - ], - 'cflags_cc!': [ - '-fintercept-allocation-functions', - ], - }], - ], - }, - ], - 'conditions': [ - ['OS=="win"', { - 'targets': [ - { - 'target_name': 'libcmt', - 'type': 'none', - 'actions': [ - { - 'action_name': 'libcmt', - 'inputs': [ - 'prep_libc.py', - ], - 'outputs': [ - '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib', - ], - 'action': [ - 'python', - 'prep_libc.py', - '$(VCInstallDir)lib', - '<(SHARED_INTERMEDIATE_DIR)/allocator', - '<(target_arch)', - ], - }, - ], - }, - { - 'target_name': 'allocator_unittests', - 'type': 'executable', - 'dependencies': [ - 'allocator', - 'allocator_extension_thunks', - '../../testing/gtest.gyp:gtest', - ], - 'include_dirs': [ - '.', - '../..', - ], - 'sources': [ - '../profiler/alternate_timer.cc', - '../profiler/alternate_timer.h', - 'allocator_unittest.cc', - ], - }, - ], - }], - ['OS=="win" and target_arch=="ia32"', { - 'targets': [ - { - 'target_name': 'allocator_extension_thunks_win64', - 'type': 'static_library', - 'sources': [ - 'allocator_extension_thunks.cc', - 'allocator_extension_thunks.h', - ], - 'toolsets': ['host', 'target'], - 'include_dirs': [ - '../../' - ], - 'configurations': { - 'Common_Base': { - 'msvs_target_platform': 'x64', - }, - }, - }, - ], - }], - ['OS=="linux" and clang_type_profiler==1', { - # Some targets in this section undo dependencies and cflags_cc for - # type_profiler which build/common.gypi injects into all targets. - 'targets': [ - { - 'target_name': 'type_profiler', - 'type': 'static_library', - 'dependencies!': [ - 'type_profiler', - ], - 'cflags_cc!': [ - '-fintercept-allocation-functions', - ], - 'include_dirs': [ - '../..', - ], - 'sources': [ - 'type_profiler.cc', - 'type_profiler.h', - 'type_profiler_control.h', - ], - 'toolsets': ['host', 'target'], - }, - { - 'target_name': 'type_profiler_tcmalloc', - 'type': 'static_library', - 'dependencies!': [ - 'type_profiler', - ], - 'cflags_cc!': [ - '-fintercept-allocation-functions', - ], - 'include_dirs': [ - '<(tcmalloc_dir)/src', - '../..', - ], - 'sources': [ - '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', - '<(tcmalloc_dir)/src/type_profiler_map.cc', - 'type_profiler_tcmalloc.cc', - 'type_profiler_tcmalloc.h', - ], - }, - { - 'target_name': 'type_profiler_unittests', - 'type': 'executable', - 'dependencies': [ - '../../testing/gtest.gyp:gtest', - '../base.gyp:base', - 'allocator', - 'type_profiler_tcmalloc', - ], - 'include_dirs': [ - '../..', - ], - 'sources': [ - 'type_profiler_control.cc', - 'type_profiler_control.h', - 'type_profiler_unittest.cc', - ], - }, - { - 'target_name': 'type_profiler_map_unittests', - 'type': 'executable', - 'dependencies': [ - '../../testing/gtest.gyp:gtest', - '../base.gyp:base', - 'allocator', - ], - 'dependencies!': [ - 'type_profiler', - ], - 'cflags_cc!': [ - '-fintercept-allocation-functions', - ], - 'include_dirs': [ - '<(tcmalloc_dir)/src', - '../..', - ], - 'sources': [ - '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', - '<(tcmalloc_dir)/src/type_profiler_map.cc', - 'type_profiler_map_unittest.cc', - ], - }, - ], - }], - ['use_allocator=="tcmalloc"', { - 'targets': [ - { - 'target_name': 'tcmalloc_unittest', - 'type': 'executable', - 'sources': [ - 'tcmalloc_unittest.cc', - ], - 'include_dirs': [ - '<(tcmalloc_dir)/src', - '../..', - ], - 'dependencies': [ - '../../testing/gtest.gyp:gtest', - 'allocator', - ], - }, - ], - }], - ], -}
diff --git a/android/jni_generator/jni_generator.gyp b/android/jni_generator/jni_generator.gyp deleted file mode 100644 index 4a17f3e..0000000 --- a/android/jni_generator/jni_generator.gyp +++ /dev/null
@@ -1,68 +0,0 @@ -# Copyright (c) 2012 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'targets': [ - { - 'target_name': 'jni_generator_py_tests', - 'type': 'none', - 'variables': { - 'stamp': '<(INTERMEDIATE_DIR)/jni_generator_py_tests.stamp', - }, - 'actions': [ - { - 'action_name': 'run_jni_generator_py_tests', - 'inputs': [ - 'jni_generator.py', - 'jni_generator_tests.py', - 'java/src/org/chromium/example/jni_generator/SampleForTests.java', - 'golden_sample_for_tests_jni.h', - ], - 'outputs': [ - '<(stamp)', - ], - 'action': [ - 'python', 'jni_generator_tests.py', - '--stamp=<(stamp)', - ], - }, - ], - }, - { - 'target_name': 'jni_sample_header', - 'type': 'none', - 'sources': [ - 'java/src/org/chromium/example/jni_generator/SampleForTests.java', - ], - 'variables': { - 'jni_gen_package': 'example', - }, - 'includes': [ '../../../build/jni_generator.gypi' ], - }, - { - 'target_name': 'jni_sample_java', - 'type': 'none', - 'variables': { - 'java_in_dir': '../../../base/android/jni_generator/java', - }, - 'dependencies': [ - '<(DEPTH)/base/base.gyp:base_java', - ], - 'includes': [ '../../../build/java.gypi' ], - }, - { - 'target_name': 'jni_generator_tests', - 'type': 'executable', - 'dependencies': [ - '../../base.gyp:test_support_base', - 'jni_generator_py_tests', - 'jni_sample_header', - 'jni_sample_java', - ], - 'sources': [ - 'sample_for_tests.cc', - ], - }, - ], -}
diff --git a/base.gyp b/base.gyp deleted file mode 100644 index 4d1b892..0000000 --- a/base.gyp +++ /dev/null
@@ -1,1645 +0,0 @@ -# Copyright (c) 2012 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'variables': { - 'chromium_code': 1, - }, - 'includes': [ - '../build/win_precompile.gypi', - 'base.gypi', - ], - 'targets': [ - { - 'target_name': 'base', - 'type': '<(component)', - 'toolsets': ['host', 'target'], - 'variables': { - 'base_target': 1, - 'enable_wexit_time_destructors': 1, - 'optimize': 'max', - }, - 'dependencies': [ - 'base_static', - 'allocator/allocator.gyp:allocator_extension_thunks', - '../testing/gtest.gyp:gtest_prod', - '../third_party/modp_b64/modp_b64.gyp:modp_b64', - 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', - ], - # TODO(gregoryd): direct_dependent_settings should be shared with the - # 64-bit target, but it doesn't work due to a bug in gyp - 'direct_dependent_settings': { - 'include_dirs': [ - '..', - ], - }, - 'conditions': [ - ['desktop_linux == 1 or chromeos == 1', { - 'conditions': [ - ['chromeos==1', { - 'sources/': [ ['include', '_chromeos\\.cc$'] ] - }], - ], - 'dependencies': [ - 'symbolize', - 'xdg_mime', - ], - 'defines': [ - 'USE_SYMBOLIZE', - ], - }, { # desktop_linux == 0 and chromeos == 0 - 'sources/': [ - ['exclude', '/xdg_user_dirs/'], - ['exclude', '_nss\\.cc$'], - ], - }], - ['use_glib==1', { - 'dependencies': [ - '../build/linux/system.gyp:glib', - ], - 'export_dependent_settings': [ - '../build/linux/system.gyp:glib', - ], - }], - ['OS == "android" and _toolset == "host"', { - # Always build base as a static_library for host toolset, even if - # we're doing a component build. Specifically, we only care about the - # target toolset using components since that's what developers are - # focusing on. In theory we should do this more generally for all - # targets when building for host, but getting the gyp magic - # per-toolset for the "component" variable is hard, and we really only - # need base on host. - 'type': 'static_library', - # Base for host support is the minimum required to run the - # ssl false start blacklist tool. It requires further changes - # to generically support host builds (and tests). - # Note: when building for host, gyp has OS == "android", - # hence the *_android.cc files are included but the actual code - # doesn't have OS_ANDROID / ANDROID defined. - 'conditions': [ - ['host_os == "mac"', { - 'sources/': [ - ['exclude', '^native_library_linux\\.cc$'], - ['exclude', '^process_util_linux\\.cc$'], - ['exclude', '^sys_info_linux\\.cc$'], - ['exclude', '^sys_string_conversions_linux\\.cc$'], - ['exclude', '^worker_pool_linux\\.cc$'], - ], - }], - ], - }], - ['OS == "android" and _toolset == "target"', { - 'conditions': [ - ['target_arch == "ia32" or target_arch == "x64"', { - 'sources/': [ - ['include', '^atomicops_internals_x86_gcc\\.cc$'], - ], - }], - ['target_arch == "mipsel"', { - 'sources/': [ - ['include', '^atomicops_internals_mips_gcc\\.cc$'], - ], - }], - ], - 'dependencies': [ - 'base_java', - 'base_jni_headers', - '../build/android/ndk.gyp:cpu_features', - '../third_party/ashmem/ashmem.gyp:ashmem', - ], - 'link_settings': { - 'libraries': [ - '-llog', - ], - }, - 'sources!': [ - 'debug/stack_trace_posix.cc', - ], - }], - ['os_bsd==1', { - 'include_dirs': [ - '/usr/local/include', - ], - 'link_settings': { - 'libraries': [ - '-L/usr/local/lib -lexecinfo', - ], - }, - }], - ['OS == "linux"', { - 'link_settings': { - 'libraries': [ - # We need rt for clock_gettime(). - '-lrt', - # For 'native_library_linux.cc' - '-ldl', - ], - }, - 'conditions': [ - ['use_allocator!="tcmalloc"', { - 'defines': [ - 'NO_TCMALLOC', - ], - 'direct_dependent_settings': { - 'defines': [ - 'NO_TCMALLOC', - ], - }, - }], - ], - }], - ['OS == "win"', { - # Specify delayload for base.dll. - 'msvs_settings': { - 'VCLinkerTool': { - 'DelayLoadDLLs': [ - 'cfgmgr32.dll', - 'powrprof.dll', - 'setupapi.dll', - ], - 'AdditionalDependencies': [ - 'cfgmgr32.lib', - 'powrprof.lib', - 'setupapi.lib', - ], - }, - }, - # Specify delayload for components that link with base.lib. - 'all_dependent_settings': { - 'msvs_settings': { - 'VCLinkerTool': { - 'DelayLoadDLLs': [ - 'cfgmgr32.dll', - 'powrprof.dll', - 'setupapi.dll', - ], - 'AdditionalDependencies': [ - 'cfgmgr32.lib', - 'powrprof.lib', - 'setupapi.lib', - ], - }, - }, - }, - 'copies': [ - { - 'destination': '<(PRODUCT_DIR)/', - 'files': [ - '../build/win/dbghelp_xp/dbghelp.dll', - ], - }, - ], - 'dependencies': [ - 'trace_event/etw_manifest/etw_manifest.gyp:etw_manifest', - ], - }], - ['OS == "mac" or (OS == "ios" and _toolset == "host")', { - 'link_settings': { - 'libraries': [ - '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', - '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', - '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', - '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', - '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', - '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', - '$(SDKROOT)/System/Library/Frameworks/Security.framework', - ], - }, - }], - ['OS == "ios" and _toolset != "host"', { - 'link_settings': { - 'libraries': [ - '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', - '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', - '$(SDKROOT)/System/Library/Frameworks/CoreText.framework', - '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', - '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', - ], - }, - }], - ['OS != "win" and (OS != "ios" or _toolset == "host")', { - 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'], - },], - ['component=="shared_library"', { - 'conditions': [ - ['OS=="win"', { - 'sources!': [ - 'debug/debug_on_start_win.cc', - ], - }], - ], - }], - ], - 'sources': [ - 'async_socket_io_handler.h', - 'async_socket_io_handler_posix.cc', - 'async_socket_io_handler_win.cc', - 'auto_reset.h', - 'linux_util.cc', - 'linux_util.h', - 'message_loop/message_pump_android.cc', - 'message_loop/message_pump_android.h', - 'message_loop/message_pump_glib.cc', - 'message_loop/message_pump_glib.h', - 'message_loop/message_pump_io_ios.cc', - 'message_loop/message_pump_io_ios.h', - 'message_loop/message_pump_libevent.cc', - 'message_loop/message_pump_libevent.h', - 'message_loop/message_pump_mac.h', - 'message_loop/message_pump_mac.mm', - 'metrics/field_trial.cc', - 'metrics/field_trial.h', - 'posix/file_descriptor_shuffle.cc', - 'posix/file_descriptor_shuffle.h', - 'sync_socket.h', - 'sync_socket_posix.cc', - 'sync_socket_win.cc', - 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', - 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h', - ], - 'includes': [ - '../build/android/increase_size_for_speed.gypi', - ], - }, - { - 'target_name': 'base_i18n', - 'type': '<(component)', - 'variables': { - 'enable_wexit_time_destructors': 1, - 'optimize': 'max', - 'base_i18n_target': 1, - }, - 'dependencies': [ - 'base', - 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', - '../third_party/icu/icu.gyp:icui18n', - '../third_party/icu/icu.gyp:icuuc', - ], - 'conditions': [ - ['OS == "win"', { - # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. - 'msvs_disabled_warnings': [ - 4267, - ], - }], - ['icu_use_data_file_flag==1', { - 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE'], - }, { # else icu_use_data_file_flag !=1 - 'conditions': [ - ['OS=="win"', { - 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_SHARED'], - }, { - 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC'], - }], - ], - }], - ['OS == "ios"', { - 'toolsets': ['host', 'target'], - }], - ], - 'export_dependent_settings': [ - 'base', - ], - 'includes': [ - '../build/android/increase_size_for_speed.gypi', - ], - }, - { - 'target_name': 'base_message_loop_tests', - 'type': 'static_library', - 'dependencies': [ - 'base', - '../testing/gtest.gyp:gtest', - ], - 'sources': [ - 'message_loop/message_loop_test.cc', - 'message_loop/message_loop_test.h', - ], - }, - { - 'target_name': 'base_prefs', - 'type': '<(component)', - 'variables': { - 'enable_wexit_time_destructors': 1, - 'optimize': 'max', - }, - 'dependencies': [ - 'base', - ], - 'export_dependent_settings': [ - 'base', - ], - 'defines': [ - 'BASE_PREFS_IMPLEMENTATION', - ], - 'sources': [ - 'prefs/base_prefs_export.h', - 'prefs/default_pref_store.cc', - 'prefs/default_pref_store.h', - 'prefs/json_pref_store.cc', - 'prefs/json_pref_store.h', - 'prefs/overlay_user_pref_store.cc', - 'prefs/overlay_user_pref_store.h', - 'prefs/persistent_pref_store.h', - 'prefs/pref_change_registrar.cc', - 'prefs/pref_change_registrar.h', - 'prefs/pref_filter.h', - 'prefs/pref_member.cc', - 'prefs/pref_member.h', - 'prefs/pref_notifier.h', - 'prefs/pref_notifier_impl.cc', - 'prefs/pref_notifier_impl.h', - 'prefs/pref_observer.h', - 'prefs/pref_registry.cc', - 'prefs/pref_registry.h', - 'prefs/pref_registry_simple.cc', - 'prefs/pref_registry_simple.h', - 'prefs/pref_service.cc', - 'prefs/pref_service.h', - 'prefs/pref_service_factory.cc', - 'prefs/pref_service_factory.h', - 'prefs/pref_store.cc', - 'prefs/pref_store.h', - 'prefs/pref_value_map.cc', - 'prefs/pref_value_map.h', - 'prefs/pref_value_store.cc', - 'prefs/pref_value_store.h', - 'prefs/scoped_user_pref_update.cc', - 'prefs/scoped_user_pref_update.h', - 'prefs/value_map_pref_store.cc', - 'prefs/value_map_pref_store.h', - 'prefs/writeable_pref_store.h', - ], - 'includes': [ - '../build/android/increase_size_for_speed.gypi', - ], - }, - { - 'target_name': 'base_prefs_test_support', - 'type': 'static_library', - 'dependencies': [ - 'base', - 'base_prefs', - '../testing/gmock.gyp:gmock', - ], - 'sources': [ - 'prefs/mock_pref_change_callback.cc', - 'prefs/pref_store_observer_mock.cc', - 'prefs/pref_store_observer_mock.h', - 'prefs/testing_pref_service.cc', - 'prefs/testing_pref_service.h', - 'prefs/testing_pref_store.cc', - 'prefs/testing_pref_store.h', - ], - }, - { - # This is the subset of files from base that should not be used with a - # dynamic library. Note that this library cannot depend on base because - # base depends on base_static. - 'target_name': 'base_static', - 'type': 'static_library', - 'variables': { - 'enable_wexit_time_destructors': 1, - 'optimize': 'max', - }, - 'toolsets': ['host', 'target'], - 'sources': [ - 'base_switches.cc', - 'base_switches.h', - 'win/pe_image.cc', - 'win/pe_image.h', - ], - 'include_dirs': [ - '..', - ], - 'includes': [ - '../build/android/increase_size_for_speed.gypi', - ], - }, - # Include this target for a main() function that simply instantiates - # and runs a base::TestSuite. - { - 'target_name': 'run_all_unittests', - 'type': 'static_library', - 'dependencies': [ - 'test_support_base', - ], - 'sources': [ - 'test/run_all_unittests.cc', - ], - }, - { - 'target_name': 'base_unittests', - 'type': '<(gtest_target_type)', - 'sources': [ - 'android/application_status_listener_unittest.cc', - 'android/content_uri_utils_unittest.cc', - 'android/jni_android_unittest.cc', - 'android/jni_array_unittest.cc', - 'android/jni_string_unittest.cc', - 'android/library_loader/library_prefetcher_unittest.cc', - 'android/path_utils_unittest.cc', - 'android/scoped_java_ref_unittest.cc', - 'android/sys_utils_unittest.cc', - 'async_socket_io_handler_unittest.cc', - 'at_exit_unittest.cc', - 'atomicops_unittest.cc', - 'barrier_closure_unittest.cc', - 'base64_unittest.cc', - 'big_endian_unittest.cc', - 'bind_unittest.cc', - 'bind_unittest.nc', - 'bits_unittest.cc', - 'build_time_unittest.cc', - 'callback_helpers_unittest.cc', - 'callback_list_unittest.cc', - 'callback_list_unittest.nc', - 'callback_unittest.cc', - 'callback_unittest.nc', - 'cancelable_callback_unittest.cc', - 'command_line_unittest.cc', - 'containers/adapters_unittest.cc', - 'containers/hash_tables_unittest.cc', - 'containers/linked_list_unittest.cc', - 'containers/mru_cache_unittest.cc', - 'containers/scoped_ptr_hash_map_unittest.cc', - 'containers/small_map_unittest.cc', - 'containers/stack_container_unittest.cc', - 'cpu_unittest.cc', - 'debug/crash_logging_unittest.cc', - 'debug/debugger_unittest.cc', - 'debug/leak_tracker_unittest.cc', - 'debug/proc_maps_linux_unittest.cc', - 'debug/stack_trace_unittest.cc', - 'debug/task_annotator_unittest.cc', - 'deferred_sequenced_task_runner_unittest.cc', - 'environment_unittest.cc', - 'file_version_info_unittest.cc', - 'files/dir_reader_posix_unittest.cc', - 'files/file_path_unittest.cc', - 'files/file_path_watcher_unittest.cc', - 'files/file_proxy_unittest.cc', - 'files/file_unittest.cc', - 'files/file_util_proxy_unittest.cc', - 'files/file_util_unittest.cc', - 'files/important_file_writer_unittest.cc', - 'files/memory_mapped_file_unittest.cc', - 'files/scoped_temp_dir_unittest.cc', - 'gmock_unittest.cc', - 'guid_unittest.cc', - 'hash_unittest.cc', - 'i18n/break_iterator_unittest.cc', - 'i18n/case_conversion_unittest.cc', - 'i18n/char_iterator_unittest.cc', - 'i18n/file_util_icu_unittest.cc', - 'i18n/icu_string_conversions_unittest.cc', - 'i18n/number_formatting_unittest.cc', - 'i18n/rtl_unittest.cc', - 'i18n/streaming_utf8_validator_unittest.cc', - 'i18n/string_search_unittest.cc', - 'i18n/time_formatting_unittest.cc', - 'i18n/timezone_unittest.cc', - 'id_map_unittest.cc', - 'ios/crb_protocol_observers_unittest.mm', - 'ios/device_util_unittest.mm', - 'ios/weak_nsobject_unittest.mm', - 'json/json_parser_unittest.cc', - 'json/json_reader_unittest.cc', - 'json/json_value_converter_unittest.cc', - 'json/json_value_serializer_unittest.cc', - 'json/json_writer_unittest.cc', - 'json/string_escape_unittest.cc', - 'lazy_instance_unittest.cc', - 'logging_unittest.cc', - 'mac/bind_objc_block_unittest.mm', - 'mac/dispatch_source_mach_unittest.cc', - 'mac/foundation_util_unittest.mm', - 'mac/libdispatch_task_runner_unittest.cc', - 'mac/mac_util_unittest.mm', - 'mac/objc_property_releaser_unittest.mm', - 'mac/scoped_nsobject_unittest.mm', - 'mac/scoped_objc_class_swizzler_unittest.mm', - 'mac/scoped_sending_event_unittest.mm', - 'md5_unittest.cc', - 'memory/aligned_memory_unittest.cc', - 'memory/discardable_shared_memory_unittest.cc', - 'memory/linked_ptr_unittest.cc', - 'memory/memory_pressure_monitor_chromeos_unittest.cc', - 'memory/memory_pressure_monitor_mac_unittest.cc', - 'memory/memory_pressure_monitor_win_unittest.cc', - 'memory/ref_counted_memory_unittest.cc', - 'memory/ref_counted_unittest.cc', - 'memory/scoped_ptr_unittest.cc', - 'memory/scoped_ptr_unittest.nc', - 'memory/scoped_vector_unittest.cc', - 'memory/shared_memory_unittest.cc', - 'memory/singleton_unittest.cc', - 'memory/weak_ptr_unittest.cc', - 'memory/weak_ptr_unittest.nc', - 'message_loop/message_loop_proxy_impl_unittest.cc', - 'message_loop/message_loop_proxy_unittest.cc', - 'message_loop/message_loop_unittest.cc', - 'message_loop/message_pump_glib_unittest.cc', - 'message_loop/message_pump_io_ios_unittest.cc', - 'message_loop/message_pump_libevent_unittest.cc', - 'metrics/bucket_ranges_unittest.cc', - 'metrics/field_trial_unittest.cc', - 'metrics/histogram_base_unittest.cc', - 'metrics/histogram_delta_serialization_unittest.cc', - 'metrics/histogram_macros_unittest.cc', - 'metrics/histogram_snapshot_manager_unittest.cc', - 'metrics/histogram_unittest.cc', - 'metrics/sample_map_unittest.cc', - 'metrics/sample_vector_unittest.cc', - 'metrics/sparse_histogram_unittest.cc', - 'metrics/statistics_recorder_unittest.cc', - 'move_unittest.cc', - 'numerics/safe_numerics_unittest.cc', - 'observer_list_unittest.cc', - 'os_compat_android_unittest.cc', - 'path_service_unittest.cc', - 'pickle_unittest.cc', - 'posix/file_descriptor_shuffle_unittest.cc', - 'posix/unix_domain_socket_linux_unittest.cc', - 'power_monitor/power_monitor_unittest.cc', - 'prefs/default_pref_store_unittest.cc', - 'prefs/json_pref_store_unittest.cc', - 'prefs/mock_pref_change_callback.h', - 'prefs/overlay_user_pref_store_unittest.cc', - 'prefs/pref_change_registrar_unittest.cc', - 'prefs/pref_member_unittest.cc', - 'prefs/pref_notifier_impl_unittest.cc', - 'prefs/pref_service_unittest.cc', - 'prefs/pref_value_map_unittest.cc', - 'prefs/pref_value_store_unittest.cc', - 'prefs/scoped_user_pref_update_unittest.cc', - 'process/memory_unittest.cc', - 'process/memory_unittest_mac.h', - 'process/memory_unittest_mac.mm', - 'process/process_metrics_unittest.cc', - 'process/process_metrics_unittest_ios.cc', - 'process/process_unittest.cc', - 'process/process_util_unittest.cc', - 'profiler/stack_sampling_profiler_unittest.cc', - 'profiler/tracked_time_unittest.cc', - 'rand_util_unittest.cc', - 'scoped_clear_errno_unittest.cc', - 'scoped_generic_unittest.cc', - 'scoped_native_library_unittest.cc', - 'security_unittest.cc', - 'sequence_checker_unittest.cc', - 'sha1_unittest.cc', - 'stl_util_unittest.cc', - 'strings/nullable_string16_unittest.cc', - 'strings/safe_sprintf_unittest.cc', - 'strings/string16_unittest.cc', - 'strings/string_number_conversions_unittest.cc', - 'strings/string_piece_unittest.cc', - 'strings/string_split_unittest.cc', - 'strings/string_tokenizer_unittest.cc', - 'strings/string_util_unittest.cc', - 'strings/stringize_macros_unittest.cc', - 'strings/stringprintf_unittest.cc', - 'strings/sys_string_conversions_mac_unittest.mm', - 'strings/sys_string_conversions_unittest.cc', - 'strings/utf_offset_string_conversions_unittest.cc', - 'strings/utf_string_conversions_unittest.cc', - 'supports_user_data_unittest.cc', - 'sync_socket_unittest.cc', - 'synchronization/cancellation_flag_unittest.cc', - 'synchronization/condition_variable_unittest.cc', - 'synchronization/lock_unittest.cc', - 'synchronization/waitable_event_unittest.cc', - 'synchronization/waitable_event_watcher_unittest.cc', - 'sys_info_unittest.cc', - 'system_monitor/system_monitor_unittest.cc', - 'task/cancelable_task_tracker_unittest.cc', - 'task_runner_util_unittest.cc', - 'template_util_unittest.cc', - 'test/expectations/expectation_unittest.cc', - 'test/expectations/parser_unittest.cc', - 'test/histogram_tester_unittest.cc', - 'test/test_pending_task_unittest.cc', - 'test/test_reg_util_win_unittest.cc', - 'test/trace_event_analyzer_unittest.cc', - 'test/user_action_tester_unittest.cc', - 'threading/non_thread_safe_unittest.cc', - 'threading/platform_thread_unittest.cc', - 'threading/sequenced_worker_pool_unittest.cc', - 'threading/simple_thread_unittest.cc', - 'threading/thread_checker_unittest.cc', - 'threading/thread_collision_warner_unittest.cc', - 'threading/thread_id_name_manager_unittest.cc', - 'threading/thread_local_storage_unittest.cc', - 'threading/thread_local_unittest.cc', - 'threading/thread_unittest.cc', - 'threading/watchdog_unittest.cc', - 'threading/worker_pool_posix_unittest.cc', - 'threading/worker_pool_unittest.cc', - 'time/pr_time_unittest.cc', - 'time/time_unittest.cc', - 'time/time_win_unittest.cc', - 'timer/hi_res_timer_manager_unittest.cc', - 'timer/mock_timer_unittest.cc', - 'timer/timer_unittest.cc', - 'tools_sanity_unittest.cc', - 'tracked_objects_unittest.cc', - 'tuple_unittest.cc', - 'values_unittest.cc', - 'version_unittest.cc', - 'vlog_unittest.cc', - 'win/dllmain.cc', - 'win/enum_variant_unittest.cc', - 'win/event_trace_consumer_unittest.cc', - 'win/event_trace_controller_unittest.cc', - 'win/event_trace_provider_unittest.cc', - 'win/i18n_unittest.cc', - 'win/iunknown_impl_unittest.cc', - 'win/message_window_unittest.cc', - 'win/object_watcher_unittest.cc', - 'win/pe_image_unittest.cc', - 'win/registry_unittest.cc', - 'win/scoped_bstr_unittest.cc', - 'win/scoped_comptr_unittest.cc', - 'win/scoped_process_information_unittest.cc', - 'win/scoped_variant_unittest.cc', - 'win/shortcut_unittest.cc', - 'win/startup_information_unittest.cc', - 'win/win_util_unittest.cc', - 'win/wrapped_window_proc_unittest.cc', - '<@(trace_event_test_sources)', - ], - 'dependencies': [ - 'base', - 'base_i18n', - 'base_message_loop_tests', - 'base_prefs', - 'base_prefs_test_support', - 'base_static', - 'run_all_unittests', - 'test_support_base', - 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', - '../testing/gmock.gyp:gmock', - '../testing/gtest.gyp:gtest', - '../third_party/icu/icu.gyp:icui18n', - '../third_party/icu/icu.gyp:icuuc', - ], - 'includes': ['../build/nocompile.gypi'], - 'variables': { - # TODO(ajwong): Is there a way to autodetect this? - 'module_dir': 'base' - }, - 'conditions': [ - ['OS == "android"', { - 'dependencies': [ - 'android/jni_generator/jni_generator.gyp:jni_generator_tests', - '../testing/android/native_test.gyp:native_test_native_code', - ], - }], - ['OS == "ios" and _toolset != "host"', { - 'sources/': [ - # Only test the iOS-meaningful portion of process_utils. - ['exclude', '^process/memory_unittest'], - ['exclude', '^process/process_unittest\\.cc$'], - ['exclude', '^process/process_util_unittest\\.cc$'], - ['include', '^process/process_util_unittest_ios\\.cc$'], - # iOS does not use message_pump_libevent. - ['exclude', '^message_loop/message_pump_libevent_unittest\\.cc$'], - ], - 'actions': [ - { - 'action_name': 'copy_test_data', - 'variables': { - 'test_data_files': [ - 'test/data', - ], - 'test_data_prefix': 'base', - }, - 'includes': [ '../build/copy_test_data_ios.gypi' ], - }, - ], - }], - ['desktop_linux == 1 or chromeos == 1', { - 'defines': [ - 'USE_SYMBOLIZE', - ], - 'sources!': [ - 'file_version_info_unittest.cc', - ], - 'conditions': [ - [ 'desktop_linux==1', { - 'sources': [ - 'nix/xdg_util_unittest.cc', - ], - }], - ], - }], - ['use_glib == 1', { - 'dependencies': [ - '../build/linux/system.gyp:glib', - ], - }, { # use_glib == 0 - 'sources!': [ - 'message_loop/message_pump_glib_unittest.cc', - ] - }], - ['use_ozone == 1', { - 'sources!': [ - 'message_loop/message_pump_glib_unittest.cc', - ] - }], - ['OS == "linux"', { - 'dependencies': [ - 'malloc_wrapper', - ], - 'conditions': [ - ['use_allocator!="none"', { - 'dependencies': [ - 'allocator/allocator.gyp:allocator', - ], - }], - ]}, - ], - ['OS == "win"', { - 'sources!': [ - 'file_descriptor_shuffle_unittest.cc', - 'files/dir_reader_posix_unittest.cc', - 'message_loop/message_pump_libevent_unittest.cc', - 'threading/worker_pool_posix_unittest.cc', - ], - # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. - 'msvs_disabled_warnings': [ - 4267, - ], - 'conditions': [ - # This is needed so base_unittests uses the allocator shim, as - # SecurityTest.MemoryAllocationRestriction* tests are dependent - # on tcmalloc. - # TODO(wfh): crbug.com/246278 Move tcmalloc specific tests into - # their own test suite. - ['win_use_allocator_shim==1', { - 'dependencies': [ - 'allocator/allocator.gyp:allocator', - ], - }], - ['icu_use_data_file_flag==0', { - # This is needed to trigger the dll copy step on windows. - # TODO(mark): This should not be necessary. - 'dependencies': [ - '../third_party/icu/icu.gyp:icudata', - ], - }], - ], - }, { # OS != "win" - 'dependencies': [ - '../third_party/libevent/libevent.gyp:libevent' - ], - }], - ], # conditions - 'target_conditions': [ - ['OS == "ios" and _toolset != "host"', { - 'sources/': [ - # Pull in specific Mac files for iOS (which have been filtered out - # by file name rules). - ['include', '^mac/bind_objc_block_unittest\\.mm$'], - ['include', '^mac/foundation_util_unittest\\.mm$',], - ['include', '^mac/objc_property_releaser_unittest\\.mm$'], - ['include', '^mac/scoped_nsobject_unittest\\.mm$'], - ['include', '^sys_string_conversions_mac_unittest\\.mm$'], - ], - }], - ['OS == "android"', { - 'sources/': [ - ['include', '^debug/proc_maps_linux_unittest\\.cc$'], - ], - }], - # Enable more direct string conversions on platforms with native utf8 - # strings - ['OS=="mac" or OS=="ios" or <(chromeos)==1 or <(chromecast)==1', { - 'defines': ['SYSTEM_NATIVE_UTF8'], - }], - ], # target_conditions - }, - { - # GN: //base:base_perftests - 'target_name': 'base_perftests', - 'type': '<(gtest_target_type)', - 'dependencies': [ - 'base', - 'test_support_base', - '../testing/gtest.gyp:gtest', - ], - 'sources': [ - 'message_loop/message_pump_perftest.cc', - 'test/run_all_unittests.cc', - 'threading/thread_perftest.cc', - '../testing/perf/perf_test.cc' - ], - 'conditions': [ - ['OS == "android"', { - 'dependencies': [ - '../testing/android/native_test.gyp:native_test_native_code', - ], - }], - ], - }, - { - # GN: //base:base_i18n_perftests - 'target_name': 'base_i18n_perftests', - 'type': '<(gtest_target_type)', - 'dependencies': [ - 'test_support_base', - 'test_support_perf', - '../testing/gtest.gyp:gtest', - 'base_i18n', - 'base', - ], - 'sources': [ - 'i18n/streaming_utf8_validator_perftest.cc', - ], - }, - { - # GN: //base/test:test_support - 'target_name': 'test_support_base', - 'type': 'static_library', - 'dependencies': [ - 'base', - 'base_static', - 'base_i18n', - '../testing/gmock.gyp:gmock', - '../testing/gtest.gyp:gtest', - '../third_party/icu/icu.gyp:icuuc', - '../third_party/libxml/libxml.gyp:libxml', - 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', - ], - 'export_dependent_settings': [ - 'base', - ], - 'conditions': [ - ['os_posix==0', { - 'sources!': [ - 'test/scoped_locale.cc', - 'test/scoped_locale.h', - ], - }], - ['os_bsd==1', { - 'sources!': [ - 'test/test_file_util_linux.cc', - ], - }], - ['OS == "android"', { - 'dependencies': [ - 'base_unittests_jni_headers', - 'base_java_unittest_support', - ], - }], - ['OS == "ios"', { - 'toolsets': ['host', 'target'], - }], - ], - 'sources': [ - 'test/expectations/expectation.cc', - 'test/expectations/expectation.h', - 'test/expectations/parser.cc', - 'test/expectations/parser.h', - 'test/gtest_util.cc', - 'test/gtest_util.h', - 'test/gtest_xml_unittest_result_printer.cc', - 'test/gtest_xml_unittest_result_printer.h', - 'test/gtest_xml_util.cc', - 'test/gtest_xml_util.h', - 'test/histogram_tester.cc', - 'test/histogram_tester.h', - 'test/ios/wait_util.h', - 'test/ios/wait_util.mm', - 'test/launcher/test_launcher.cc', - 'test/launcher/test_launcher.h', - 'test/launcher/test_result.cc', - 'test/launcher/test_result.h', - 'test/launcher/test_results_tracker.cc', - 'test/launcher/test_results_tracker.h', - 'test/launcher/unit_test_launcher.cc', - 'test/launcher/unit_test_launcher.h', - 'test/launcher/unit_test_launcher_ios.cc', - 'test/mock_chrome_application_mac.h', - 'test/mock_chrome_application_mac.mm', - 'test/mock_devices_changed_observer.cc', - 'test/mock_devices_changed_observer.h', - 'test/mock_entropy_provider.cc', - 'test/mock_entropy_provider.h', - 'test/mock_log.cc', - 'test/mock_log.h', - 'test/multiprocess_test.cc', - 'test/multiprocess_test.h', - 'test/multiprocess_test_android.cc', - 'test/null_task_runner.cc', - 'test/null_task_runner.h', - 'test/opaque_ref_counted.cc', - 'test/opaque_ref_counted.h', - 'test/perf_log.cc', - 'test/perf_log.h', - 'test/perf_test_suite.cc', - 'test/perf_test_suite.h', - 'test/perf_time_logger.cc', - 'test/perf_time_logger.h', - 'test/power_monitor_test_base.cc', - 'test/power_monitor_test_base.h', - 'test/scoped_locale.cc', - 'test/scoped_locale.h', - 'test/scoped_path_override.cc', - 'test/scoped_path_override.h', - 'test/sequenced_task_runner_test_template.cc', - 'test/sequenced_task_runner_test_template.h', - 'test/sequenced_worker_pool_owner.cc', - 'test/sequenced_worker_pool_owner.h', - 'test/simple_test_clock.cc', - 'test/simple_test_clock.h', - 'test/simple_test_tick_clock.cc', - 'test/simple_test_tick_clock.h', - 'test/task_runner_test_template.cc', - 'test/task_runner_test_template.h', - 'test/test_discardable_memory_allocator.cc', - 'test/test_discardable_memory_allocator.h', - 'test/test_file_util.cc', - 'test/test_file_util.h', - 'test/test_file_util_android.cc', - 'test/test_file_util_linux.cc', - 'test/test_file_util_mac.cc', - 'test/test_file_util_posix.cc', - 'test/test_file_util_win.cc', - 'test/test_io_thread.cc', - 'test/test_io_thread.h', - 'test/test_listener_ios.h', - 'test/test_listener_ios.mm', - 'test/test_mock_time_task_runner.cc', - 'test/test_mock_time_task_runner.h', - 'test/test_pending_task.cc', - 'test/test_pending_task.h', - 'test/test_reg_util_win.cc', - 'test/test_reg_util_win.h', - 'test/test_shortcut_win.cc', - 'test/test_shortcut_win.h', - 'test/test_simple_task_runner.cc', - 'test/test_simple_task_runner.h', - 'test/test_suite.cc', - 'test/test_suite.h', - 'test/test_support_android.cc', - 'test/test_support_android.h', - 'test/test_support_ios.h', - 'test/test_support_ios.mm', - 'test/test_switches.cc', - 'test/test_switches.h', - 'test/test_timeouts.cc', - 'test/test_timeouts.h', - 'test/test_ui_thread_android.cc', - 'test/test_ui_thread_android.h', - 'test/thread_test_helper.cc', - 'test/thread_test_helper.h', - 'test/trace_event_analyzer.cc', - 'test/trace_event_analyzer.h', - 'test/trace_to_file.cc', - 'test/trace_to_file.h', - 'test/user_action_tester.cc', - 'test/user_action_tester.h', - 'test/values_test_util.cc', - 'test/values_test_util.h', - ], - 'target_conditions': [ - ['OS == "ios"', { - 'sources/': [ - # Pull in specific Mac files for iOS (which have been filtered out - # by file name rules). - ['include', '^test/test_file_util_mac\\.cc$'], - ], - }], - ['OS == "ios" and _toolset == "target"', { - 'sources!': [ - # iOS uses its own unit test launcher. - 'test/launcher/unit_test_launcher.cc', - ], - }], - ['OS == "ios" and _toolset == "host"', { - 'sources!': [ - 'test/launcher/unit_test_launcher_ios.cc', - 'test/test_support_ios.h', - 'test/test_support_ios.mm', - ], - }], - ], # target_conditions - }, - { - 'target_name': 'test_support_perf', - 'type': 'static_library', - 'dependencies': [ - 'base', - 'test_support_base', - '../testing/gtest.gyp:gtest', - ], - 'sources': [ - 'test/run_all_perftests.cc', - ], - 'direct_dependent_settings': { - 'defines': [ - 'PERF_TEST', - ], - }, - }, - { - 'target_name': 'test_launcher_nacl_nonsfi', - 'conditions': [ - ['disable_nacl==0 and disable_nacl_untrusted==0 and enable_nacl_nonsfi_test==1', { - 'type': 'static_library', - 'sources': [ - 'test/launcher/test_launcher_nacl_nonsfi.cc', - ], - 'dependencies': [ - 'test_support_base', - ], - }, { - 'type': 'none', - }], - ], - }, - ], - 'conditions': [ - ['OS=="ios" and "<(GENERATOR)"=="ninja"', { - 'targets': [ - { - 'target_name': 'test_launcher', - 'toolsets': ['host'], - 'type': 'executable', - 'dependencies': [ - 'test_support_base', - ], - 'sources': [ - 'test/launcher/test_launcher_ios.cc', - ], - }, - ], - }], - ['OS!="ios"', { - 'targets': [ - { - # GN: //base:check_example - 'target_name': 'check_example', - 'type': 'executable', - 'sources': [ - 'check_example.cc', - ], - 'dependencies': [ - 'base', - ], - }, - { - 'target_name': 'build_utf8_validator_tables', - 'type': 'executable', - 'toolsets': ['host'], - 'dependencies': [ - 'base', - '../third_party/icu/icu.gyp:icuuc', - ], - 'sources': [ - 'i18n/build_utf8_validator_tables.cc' - ], - }, - ], - }], - ['OS == "win" and target_arch=="ia32"', { - 'targets': [ - # The base_win64 target here allows us to use base for Win64 targets - # (the normal build is 32 bits). - { - 'target_name': 'base_win64', - 'type': '<(component)', - 'variables': { - 'base_target': 1, - }, - 'dependencies': [ - 'base_static_win64', - 'allocator/allocator.gyp:allocator_extension_thunks_win64', - '../third_party/modp_b64/modp_b64.gyp:modp_b64_win64', - 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64', - 'trace_event/etw_manifest/etw_manifest.gyp:etw_manifest', - ], - # TODO(gregoryd): direct_dependent_settings should be shared with the - # 32-bit target, but it doesn't work due to a bug in gyp - 'direct_dependent_settings': { - 'include_dirs': [ - '..', - ], - }, - 'defines': [ - 'BASE_WIN64', - '<@(nacl_win64_defines)', - ], - 'configurations': { - 'Common_Base': { - 'msvs_target_platform': 'x64', - }, - }, - 'conditions': [ - ['component == "shared_library"', { - 'sources!': [ - 'debug/debug_on_start_win.cc', - ], - }], - ], - # Specify delayload for base_win64.dll. - 'msvs_settings': { - 'VCLinkerTool': { - 'DelayLoadDLLs': [ - 'cfgmgr32.dll', - 'powrprof.dll', - 'setupapi.dll', - ], - 'AdditionalDependencies': [ - 'cfgmgr32.lib', - 'powrprof.lib', - 'setupapi.lib', - ], - }, - }, - # Specify delayload for components that link with base_win64.lib. - 'all_dependent_settings': { - 'msvs_settings': { - 'VCLinkerTool': { - 'DelayLoadDLLs': [ - 'cfgmgr32.dll', - 'powrprof.dll', - 'setupapi.dll', - ], - 'AdditionalDependencies': [ - 'cfgmgr32.lib', - 'powrprof.lib', - 'setupapi.lib', - ], - }, - }, - }, - # TODO(rvargas): Bug 78117. Remove this. - 'msvs_disabled_warnings': [ - 4244, - 4996, - 4267, - ], - 'sources': [ - 'async_socket_io_handler.h', - 'async_socket_io_handler_posix.cc', - 'async_socket_io_handler_win.cc', - 'auto_reset.h', - 'linux_util.cc', - 'linux_util.h', - 'md5.cc', - 'md5.h', - 'message_loop/message_pump_libevent.cc', - 'message_loop/message_pump_libevent.h', - 'metrics/field_trial.cc', - 'metrics/field_trial.h', - 'posix/file_descriptor_shuffle.cc', - 'posix/file_descriptor_shuffle.h', - 'sync_socket.h', - 'sync_socket_posix.cc', - 'sync_socket_win.cc', - 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', - 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h', - ], - }, - { - 'target_name': 'base_i18n_nacl_win64', - 'type': '<(component)', - # TODO(gregoryd): direct_dependent_settings should be shared with the - # 32-bit target, but it doesn't work due to a bug in gyp - 'direct_dependent_settings': { - 'include_dirs': [ - '..', - ], - }, - 'defines': [ - '<@(nacl_win64_defines)', - 'BASE_I18N_IMPLEMENTATION', - ], - 'include_dirs': [ - '..', - ], - 'sources': [ - 'i18n/icu_util_nacl_win64.cc', - ], - 'configurations': { - 'Common_Base': { - 'msvs_target_platform': 'x64', - }, - }, - }, - { - # TODO(rvargas): Remove this when gyp finally supports a clean model. - # See bug 36232. - 'target_name': 'base_static_win64', - 'type': 'static_library', - 'sources': [ - 'base_switches.cc', - 'base_switches.h', - 'win/pe_image.cc', - 'win/pe_image.h', - ], - 'sources!': [ - # base64.cc depends on modp_b64. - 'base64.cc', - ], - 'include_dirs': [ - '..', - ], - 'configurations': { - 'Common_Base': { - 'msvs_target_platform': 'x64', - }, - }, - 'defines': [ - '<@(nacl_win64_defines)', - ], - # TODO(rvargas): Bug 78117. Remove this. - 'msvs_disabled_warnings': [ - 4244, - ], - }, - ], - }], - ['os_posix==1 and OS!="mac" and OS!="ios"', { - 'targets': [ - { - 'target_name': 'symbolize', - 'type': 'static_library', - 'toolsets': ['host', 'target'], - 'variables': { - 'chromium_code': 0, - }, - 'conditions': [ - ['OS == "solaris"', { - 'include_dirs': [ - '/usr/gnu/include', - '/usr/gnu/include/libelf', - ], - },], - ], - 'cflags': [ - '-Wno-sign-compare', - ], - 'cflags!': [ - '-Wextra', - ], - 'defines': [ - 'GLOG_BUILD_CONFIG_INCLUDE="build/build_config.h"', - ], - 'sources': [ - 'third_party/symbolize/config.h', - 'third_party/symbolize/demangle.cc', - 'third_party/symbolize/demangle.h', - 'third_party/symbolize/glog/logging.h', - 'third_party/symbolize/glog/raw_logging.h', - 'third_party/symbolize/symbolize.cc', - 'third_party/symbolize/symbolize.h', - 'third_party/symbolize/utilities.h', - ], - 'include_dirs': [ - '..', - ], - 'includes': [ - '../build/android/increase_size_for_speed.gypi', - ], - }, - { - 'target_name': 'xdg_mime', - 'type': 'static_library', - 'toolsets': ['host', 'target'], - 'variables': { - 'chromium_code': 0, - }, - 'cflags!': [ - '-Wextra', - ], - 'sources': [ - 'third_party/xdg_mime/xdgmime.c', - 'third_party/xdg_mime/xdgmime.h', - 'third_party/xdg_mime/xdgmimealias.c', - 'third_party/xdg_mime/xdgmimealias.h', - 'third_party/xdg_mime/xdgmimecache.c', - 'third_party/xdg_mime/xdgmimecache.h', - 'third_party/xdg_mime/xdgmimeglob.c', - 'third_party/xdg_mime/xdgmimeglob.h', - 'third_party/xdg_mime/xdgmimeicon.c', - 'third_party/xdg_mime/xdgmimeicon.h', - 'third_party/xdg_mime/xdgmimeint.c', - 'third_party/xdg_mime/xdgmimeint.h', - 'third_party/xdg_mime/xdgmimemagic.c', - 'third_party/xdg_mime/xdgmimemagic.h', - 'third_party/xdg_mime/xdgmimeparent.c', - 'third_party/xdg_mime/xdgmimeparent.h', - ], - 'includes': [ - '../build/android/increase_size_for_speed.gypi', - ], - }, - ], - }], - ['OS == "linux"', { - 'targets': [ - { - 'target_name': 'malloc_wrapper', - 'type': 'shared_library', - 'dependencies': [ - 'base', - ], - 'sources': [ - 'test/malloc_wrapper.cc', - ], - } - ], - }], - ['OS == "android"', { - 'targets': [ - { - # GN: //base:base_jni_headers - 'target_name': 'base_jni_headers', - 'type': 'none', - 'sources': [ - 'android/java/src/org/chromium/base/ApkAssets.java', - 'android/java/src/org/chromium/base/ApplicationStatus.java', - 'android/java/src/org/chromium/base/AnimationFrameTimeHistogram.java', - 'android/java/src/org/chromium/base/BuildInfo.java', - 'android/java/src/org/chromium/base/CommandLine.java', - 'android/java/src/org/chromium/base/ContentUriUtils.java', - 'android/java/src/org/chromium/base/CpuFeatures.java', - 'android/java/src/org/chromium/base/EventLog.java', - 'android/java/src/org/chromium/base/FieldTrialList.java', - 'android/java/src/org/chromium/base/ImportantFileWriterAndroid.java', - 'android/java/src/org/chromium/base/JNIUtils.java', - 'android/java/src/org/chromium/base/JavaHandlerThread.java', - 'android/java/src/org/chromium/base/LocaleUtils.java', - 'android/java/src/org/chromium/base/MemoryPressureListener.java', - 'android/java/src/org/chromium/base/PathService.java', - 'android/java/src/org/chromium/base/PathUtils.java', - 'android/java/src/org/chromium/base/PowerMonitor.java', - 'android/java/src/org/chromium/base/SysUtils.java', - 'android/java/src/org/chromium/base/SystemMessageHandler.java', - 'android/java/src/org/chromium/base/ThreadUtils.java', - 'android/java/src/org/chromium/base/TraceEvent.java', - 'android/java/src/org/chromium/base/library_loader/LibraryLoader.java', - 'android/java/src/org/chromium/base/metrics/RecordHistogram.java', - 'android/java/src/org/chromium/base/metrics/RecordUserAction.java', - ], - 'variables': { - 'jni_gen_package': 'base', - }, - 'dependencies': [ - 'android_runtime_jni_headers', - ], - 'includes': [ '../build/jni_generator.gypi' ], - }, - { - # GN: //base:android_runtime_jni_headers - 'target_name': 'android_runtime_jni_headers', - 'type': 'none', - 'variables': { - 'jni_gen_package': 'base', - 'input_java_class': 'java/lang/Runtime.class', - }, - 'includes': [ '../build/jar_file_jni_generator.gypi' ], - }, - { - # TODO(GN) - 'target_name': 'base_unittests_jni_headers', - 'type': 'none', - 'sources': [ - 'test/android/java/src/org/chromium/base/ContentUriTestUtils.java', - 'test/android/java/src/org/chromium/base/TestUiThread.java', - ], - 'variables': { - 'jni_gen_package': 'base', - }, - 'includes': [ '../build/jni_generator.gypi' ], - }, - { - # GN: //base:base_native_libraries_gen - 'target_name': 'base_native_libraries_gen', - 'type': 'none', - 'sources': [ - 'android/java/templates/NativeLibraries.template', - ], - 'variables': { - 'package_name': 'org/chromium/base/library_loader', - 'template_deps': [], - }, - 'includes': [ '../build/android/java_cpp_template.gypi' ], - }, - { - # GN: //base:base_android_java_enums_srcjar - 'target_name': 'base_java_library_process_type', - 'type': 'none', - 'variables': { - 'source_file': 'android/library_loader/library_loader_hooks.h', - }, - 'includes': [ '../build/android/java_cpp_enum.gypi' ], - }, - { - # GN: //base:base_java - 'target_name': 'base_java', - 'type': 'none', - 'variables': { - 'java_in_dir': '../base/android/java', - 'jar_excluded_classes': [ '*/NativeLibraries.class' ], - }, - 'dependencies': [ - 'base_java_application_state', - 'base_java_library_load_from_apk_status_codes', - 'base_java_library_process_type', - 'base_java_memory_pressure_level', - 'base_native_libraries_gen', - '../third_party/jsr-305/jsr-305.gyp:jsr_305_javalib', - ], - 'includes': [ '../build/java.gypi' ], - }, - { - # GN: //base:base_java_unittest_support - 'target_name': 'base_java_unittest_support', - 'type': 'none', - 'dependencies': [ - 'base_java', - ], - 'variables': { - 'java_in_dir': '../base/test/android/java', - }, - 'includes': [ '../build/java.gypi' ], - }, - { - # GN: //base:base_android_java_enums_srcjar - 'target_name': 'base_java_application_state', - 'type': 'none', - 'variables': { - 'source_file': 'android/application_status_listener.h', - }, - 'includes': [ '../build/android/java_cpp_enum.gypi' ], - }, - { - # GN: //base:base_android_java_enums_srcjar - 'target_name': 'base_java_library_load_from_apk_status_codes', - 'type': 'none', - 'variables': { - 'source_file': 'android/library_loader/library_load_from_apk_status_codes.h' - }, - 'includes': [ '../build/android/java_cpp_enum.gypi' ], - }, - { - # GN: //base:base_android_java_enums_srcjar - 'target_name': 'base_java_memory_pressure_level', - 'type': 'none', - 'variables': { - 'source_file': 'memory/memory_pressure_listener.h', - }, - 'includes': [ '../build/android/java_cpp_enum.gypi' ], - }, - { - # GN: //base:base_java_test_support - 'target_name': 'base_java_test_support', - 'type': 'none', - 'dependencies': [ - 'base_java', - '../testing/android/on_device_instrumentation.gyp:reporter_java', - ], - 'variables': { - 'java_in_dir': '../base/test/android/javatests', - }, - 'includes': [ '../build/java.gypi' ], - }, - { - # GN: //base:base_junit_tests - 'target_name': 'base_junit_tests', - 'type': 'none', - 'dependencies': [ - 'base_java', - 'base_java_test_support', - '../testing/android/junit/junit_test.gyp:junit_test_support', - ], - 'variables': { - 'main_class': 'org.chromium.testing.local.JunitTestMain', - 'src_paths': [ - '../base/android/junit/', - ], - }, - 'includes': [ '../build/host_jar.gypi' ], - }, - { - # GN: //base:base_javatests - 'target_name': 'base_javatests', - 'type': 'none', - 'dependencies': [ - 'base_java', - 'base_java_test_support', - ], - 'variables': { - 'java_in_dir': '../base/android/javatests', - }, - 'includes': [ '../build/java.gypi' ], - }, - { - # GN: //base/android/linker:chromium_android_linker - 'target_name': 'chromium_android_linker', - 'type': 'shared_library', - 'sources': [ - 'android/linker/linker_jni.cc', - ], - # The crazy linker is never instrumented. - 'cflags!': [ - '-finstrument-functions', - ], - 'dependencies': [ - # The NDK contains the crazy_linker here: - # '<(android_ndk_root)/crazy_linker.gyp:crazy_linker' - # However, we use our own fork. See bug 384700. - '../third_party/android_crazy_linker/crazy_linker.gyp:crazy_linker', - ], - }, - { - # TODO(GN) - 'target_name': 'base_perftests_apk', - 'type': 'none', - 'dependencies': [ - 'base_perftests', - ], - 'variables': { - 'test_suite_name': 'base_perftests', - }, - 'includes': [ '../build/apk_test.gypi' ], - }, - { - # GN: //base:base_unittests_apk - 'target_name': 'base_unittests_apk', - 'type': 'none', - 'dependencies': [ - 'base_java', - 'base_unittests', - ], - 'variables': { - 'test_suite_name': 'base_unittests', - 'isolate_file': 'base_unittests.isolate', - }, - 'includes': [ '../build/apk_test.gypi' ], - }, - ], - }], - ['OS == "win"', { - 'targets': [ - { - 'target_name': 'debug_message', - 'type': 'executable', - 'sources': [ - 'debug_message.cc', - ], - 'msvs_settings': { - 'VCLinkerTool': { - 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS - }, - }, - }, - { - # Target to manually rebuild pe_image_test.dll which is checked into - # base/test/data/pe_image. - 'target_name': 'pe_image_test', - 'type': 'shared_library', - 'sources': [ - 'win/pe_image_test.cc', - ], - 'msvs_settings': { - 'VCLinkerTool': { - 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS - 'DelayLoadDLLs': [ - 'cfgmgr32.dll', - 'shell32.dll', - ], - 'AdditionalDependencies': [ - 'cfgmgr32.lib', - 'shell32.lib', - ], - }, - }, - }, - ], - }], - ['test_isolation_mode != "noop"', { - 'targets': [ - { - 'target_name': 'base_unittests_run', - 'type': 'none', - 'dependencies': [ - 'base_unittests', - ], - 'includes': [ - '../build/isolate.gypi', - ], - 'sources': [ - 'base_unittests.isolate', - ], - }, - ], - }], - ], -}
diff --git a/base.gypi b/base.gypi deleted file mode 100644 index f086b43..0000000 --- a/base.gypi +++ /dev/null
@@ -1,1038 +0,0 @@ -# Copyright (c) 2012 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'includes': [ - 'trace_event/trace_event.gypi', - ], - 'target_defaults': { - 'variables': { - 'base_target': 0, - 'base_i18n_target': 0, - }, - 'target_conditions': [ - # This part is shared between the targets defined below. - ['base_target==1', { - 'sources': [ - '../build/build_config.h', - 'allocator/allocator_extension.cc', - 'allocator/allocator_extension.h', - 'allocator/type_profiler_control.cc', - 'allocator/type_profiler_control.h', - 'android/animation_frame_time_histogram.cc', - 'android/animation_frame_time_histogram.h', - 'android/apk_assets.cc', - 'android/apk_assets.h', - 'android/application_status_listener.cc', - 'android/application_status_listener.h', - 'android/base_jni_onload.cc', - 'android/base_jni_onload.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/event_log.cc', - 'android/event_log.h', - 'android/field_trial_list.cc', - 'android/field_trial_list.h', - 'android/fifo_utils.cc', - 'android/fifo_utils.h', - 'android/important_file_writer_android.cc', - 'android/important_file_writer_android.h', - 'android/java_handler_thread.cc', - 'android/java_handler_thread.h', - 'android/java_runtime.cc', - 'android/java_runtime.h', - 'android/jni_android.cc', - 'android/jni_android.h', - 'android/jni_array.cc', - 'android/jni_array.h', - 'android/jni_registrar.cc', - 'android/jni_registrar.h', - 'android/jni_string.cc', - 'android/jni_string.h', - 'android/jni_utils.cc', - 'android/jni_utils.h', - 'android/jni_weak_ref.cc', - 'android/jni_weak_ref.h', - 'android/library_loader/library_load_from_apk_status_codes.h', - 'android/library_loader/library_loader_hooks.cc', - 'android/library_loader/library_loader_hooks.h', - 'android/library_loader/library_prefetcher.cc', - 'android/library_loader/library_prefetcher.h', - 'android/locale_utils.cc', - 'android/locale_utils.h', - 'android/memory_pressure_listener_android.cc', - 'android/memory_pressure_listener_android.h', - 'android/path_service_android.cc', - 'android/path_service_android.h', - 'android/path_utils.cc', - 'android/path_utils.h', - 'android/record_histogram.cc', - 'android/record_histogram.h', - 'android/record_user_action.cc', - 'android/record_user_action.h', - 'android/scoped_java_ref.cc', - 'android/scoped_java_ref.h', - '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', - 'atomic_sequence_num.h', - 'atomicops.h', - 'atomicops_internals_gcc.h', - 'atomicops_internals_mac.h', - 'atomicops_internals_portable.h', - 'atomicops_internals_x86_gcc.cc', - 'atomicops_internals_x86_gcc.h', - 'atomicops_internals_x86_msvc.h', - 'barrier_closure.cc', - 'barrier_closure.h', - 'base64.cc', - 'base64.h', - 'base_export.h', - 'base_paths.cc', - 'base_paths.h', - 'base_paths_android.cc', - 'base_paths_android.h', - 'base_paths_mac.h', - 'base_paths_mac.mm', - 'base_paths_posix.cc', - 'base_paths_posix.h', - 'base_paths_win.cc', - 'base_paths_win.h', - 'base_switches.h', - 'basictypes.h', - 'big_endian.cc', - 'big_endian.h', - 'bind.h', - 'bind_helpers.cc', - 'bind_helpers.h', - 'bind_internal.h', - 'bind_internal_win.h', - 'bits.h', - 'build_time.cc', - 'build_time.h', - 'callback.h', - 'callback_helpers.cc', - 'callback_helpers.h', - 'callback_internal.cc', - 'callback_internal.h', - 'callback_list.h', - 'cancelable_callback.h', - 'command_line.cc', - 'command_line.h', - 'compiler_specific.h', - 'containers/adapters.h', - 'containers/hash_tables.h', - 'containers/linked_list.h', - 'containers/mru_cache.h', - 'containers/scoped_ptr_hash_map.h', - 'containers/small_map.h', - 'containers/stack_container.h', - 'cpu.cc', - 'cpu.h', - 'critical_closure.h', - 'critical_closure_internal_ios.mm', - 'debug/alias.cc', - 'debug/alias.h', - 'debug/asan_invalid_access.cc', - 'debug/asan_invalid_access.h', - 'debug/crash_logging.cc', - 'debug/crash_logging.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/leak_annotations.h', - 'debug/leak_tracker.h', - 'debug/proc_maps_linux.cc', - 'debug/proc_maps_linux.h', - 'debug/profiler.cc', - 'debug/profiler.h', - 'debug/stack_trace.cc', - 'debug/stack_trace.h', - 'debug/stack_trace_android.cc', - 'debug/stack_trace_posix.cc', - 'debug/stack_trace_win.cc', - 'debug/task_annotator.cc', - 'debug/task_annotator.h', - 'deferred_sequenced_task_runner.cc', - 'deferred_sequenced_task_runner.h', - 'environment.cc', - 'environment.h', - 'file_descriptor_posix.h', - 'file_version_info.h', - 'file_version_info_mac.h', - 'file_version_info_mac.mm', - 'file_version_info_win.cc', - 'file_version_info_win.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_enumerator_win.cc', - 'files/file_path.cc', - 'files/file_path.h', - 'files/file_path_constants.cc', - 'files/file_path_watcher.cc', - 'files/file_path_watcher.h', - 'files/file_path_watcher_fsevents.cc', - 'files/file_path_watcher_fsevents.h', - 'files/file_path_watcher_kqueue.cc', - 'files/file_path_watcher_kqueue.h', - 'files/file_path_watcher_linux.cc', - 'files/file_path_watcher_mac.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_tracing.cc', - 'files/file_tracing.h', - 'files/file_util.cc', - 'files/file_util.h', - 'files/file_util_android.cc', - 'files/file_util_linux.cc', - 'files/file_util_mac.mm', - 'files/file_util_posix.cc', - 'files/file_util_proxy.cc', - 'files/file_util_proxy.h', - 'files/file_util_win.cc', - 'files/file_win.cc', - 'files/important_file_writer.cc', - 'files/important_file_writer.h', - '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_temp_dir.cc', - 'files/scoped_temp_dir.h', - 'format_macros.h', - 'gtest_prod_util.h', - 'guid.cc', - 'guid.h', - 'guid_posix.cc', - 'guid_win.cc', - 'hash.cc', - 'hash.h', - 'id_map.h', - 'ios/block_types.h', - 'ios/crb_protocol_observers.h', - 'ios/crb_protocol_observers.mm', - 'ios/device_util.h', - 'ios/device_util.mm', - 'ios/ios_util.h', - 'ios/ios_util.mm', - 'ios/scoped_critical_action.h', - 'ios/scoped_critical_action.mm', - 'ios/weak_nsobject.h', - 'ios/weak_nsobject.mm', - 'json/json_file_value_serializer.cc', - 'json/json_file_value_serializer.h', - 'json/json_parser.cc', - 'json/json_parser.h', - 'json/json_reader.cc', - 'json/json_reader.h', - 'json/json_string_value_serializer.cc', - 'json/json_string_value_serializer.h', - 'json/json_value_converter.cc', - 'json/json_value_converter.h', - 'json/json_writer.cc', - 'json/json_writer.h', - 'json/string_escape.cc', - 'json/string_escape.h', - 'lazy_instance.cc', - 'lazy_instance.h', - 'location.cc', - 'location.h', - 'logging.cc', - 'logging.h', - 'logging_win.cc', - 'logging_win.h', - 'mac/authorization_util.h', - 'mac/authorization_util.mm', - 'mac/bind_objc_block.h', - 'mac/bundle_locations.h', - 'mac/bundle_locations.mm', - 'mac/close_nocancel.cc', - 'mac/cocoa_protocols.h', - 'mac/dispatch_source_mach.cc', - 'mac/dispatch_source_mach.h', - 'mac/foundation_util.h', - 'mac/foundation_util.mm', - 'mac/launch_services_util.cc', - 'mac/launch_services_util.h', - 'mac/launchd.cc', - 'mac/launchd.h', - 'mac/libdispatch_task_runner.cc', - 'mac/libdispatch_task_runner.h', - 'mac/mac_logging.cc', - 'mac/mac_logging.h', - '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/os_crash_dumps.h', - 'mac/scoped_aedesc.h', - 'mac/scoped_authorizationref.h', - 'mac/scoped_block.h', - 'mac/scoped_cftyperef.h', - 'mac/scoped_ioobject.h', - 'mac/scoped_ioplugininterface.h', - '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_nsexception_enabler.mm', - 'mac/scoped_nsobject.h', - 'mac/scoped_objc_class_swizzler.h', - 'mac/scoped_objc_class_swizzler.mm', - 'mac/scoped_sending_event.h', - 'mac/scoped_sending_event.mm', - 'mac/scoped_typeref.h', - 'mac/sdk_forward_declarations.h', - 'mac/sdk_forward_declarations.mm', - '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_allocator.cc', - 'memory/discardable_memory_allocator.h', - 'memory/discardable_shared_memory.cc', - 'memory/discardable_shared_memory.h', - 'memory/linked_ptr.h', - 'memory/manual_constructor.h', - 'memory/memory_pressure_listener.cc', - 'memory/memory_pressure_listener.h', - 'memory/memory_pressure_monitor.cc', - 'memory/memory_pressure_monitor.h', - 'memory/memory_pressure_monitor_chromeos.cc', - 'memory/memory_pressure_monitor_chromeos.h', - 'memory/memory_pressure_monitor_mac.cc', - 'memory/memory_pressure_monitor_mac.h', - 'memory/memory_pressure_monitor_win.cc', - 'memory/memory_pressure_monitor_win.h', - 'memory/raw_scoped_refptr_mismatch_checker.h', - 'memory/ref_counted.cc', - 'memory/ref_counted.h', - 'memory/ref_counted_delete_on_message_loop.h', - 'memory/ref_counted_memory.cc', - 'memory/ref_counted_memory.h', - 'memory/scoped_policy.h', - 'memory/scoped_ptr.h', - 'memory/scoped_vector.h', - 'memory/shared_memory.h', - 'memory/shared_memory_android.cc', - 'memory/shared_memory_nacl.cc', - 'memory/shared_memory_posix.cc', - 'memory/shared_memory_win.cc', - 'memory/singleton.cc', - 'memory/singleton.h', - 'memory/weak_ptr.cc', - 'memory/weak_ptr.h', - 'message_loop/incoming_task_queue.cc', - 'message_loop/incoming_task_queue.h', - 'message_loop/message_loop.cc', - 'message_loop/message_loop.h', - 'message_loop/message_loop_proxy.cc', - 'message_loop/message_loop_proxy.h', - 'message_loop/message_loop_proxy_impl.cc', - 'message_loop/message_loop_proxy_impl.h', - 'message_loop/message_pump.cc', - 'message_loop/message_pump.h', - 'message_loop/message_pump_android.cc', - 'message_loop/message_pump_android.h', - 'message_loop/message_pump_default.cc', - 'message_loop/message_pump_default.h', - 'message_loop/message_pump_win.cc', - 'message_loop/message_pump_win.h', - 'message_loop/timer_slack.h', - 'metrics/bucket_ranges.cc', - 'metrics/bucket_ranges.h', - 'metrics/histogram.cc', - 'metrics/histogram.h', - 'metrics/histogram_base.cc', - 'metrics/histogram_base.h', - 'metrics/histogram_delta_serialization.cc', - 'metrics/histogram_delta_serialization.h', - 'metrics/histogram_flattener.h', - 'metrics/histogram_macros.h', - 'metrics/histogram_samples.cc', - 'metrics/histogram_samples.h', - 'metrics/histogram_snapshot_manager.cc', - 'metrics/histogram_snapshot_manager.h', - 'metrics/sample_map.cc', - 'metrics/sample_map.h', - 'metrics/sample_vector.cc', - 'metrics/sample_vector.h', - 'metrics/sparse_histogram.cc', - 'metrics/sparse_histogram.h', - 'metrics/statistics_recorder.cc', - 'metrics/statistics_recorder.h', - 'metrics/user_metrics.cc', - 'metrics/user_metrics.h', - 'metrics/user_metrics_action.h', - 'move.h', - 'native_library.h', - 'native_library_ios.mm', - 'native_library_mac.mm', - 'native_library_posix.cc', - 'native_library_win.cc', - 'nix/mime_util_xdg.cc', - 'nix/mime_util_xdg.h', - 'nix/xdg_util.cc', - 'nix/xdg_util.h', - 'numerics/safe_conversions.h', - 'numerics/safe_conversions_impl.h', - 'numerics/safe_math.h', - 'numerics/safe_math_impl.h', - 'observer_list.h', - 'observer_list_threadsafe.h', - 'os_compat_android.cc', - 'os_compat_android.h', - 'os_compat_nacl.cc', - 'os_compat_nacl.h', - 'path_service.cc', - 'path_service.h', - 'pending_task.cc', - 'pending_task.h', - 'pickle.cc', - 'pickle.h', - 'port.h', - 'posix/eintr_wrapper.h', - 'posix/global_descriptors.cc', - 'posix/global_descriptors.h', - 'posix/safe_strerror.cc', - 'posix/safe_strerror.h', - 'posix/unix_domain_socket_linux.cc', - 'posix/unix_domain_socket_linux.h', - 'power_monitor/power_monitor.cc', - 'power_monitor/power_monitor.h', - 'power_monitor/power_monitor_device_source.cc', - 'power_monitor/power_monitor_device_source.h', - 'power_monitor/power_monitor_device_source_android.cc', - 'power_monitor/power_monitor_device_source_android.h', - 'power_monitor/power_monitor_device_source_chromeos.cc', - 'power_monitor/power_monitor_device_source_ios.mm', - 'power_monitor/power_monitor_device_source_mac.mm', - 'power_monitor/power_monitor_device_source_posix.cc', - 'power_monitor/power_monitor_device_source_win.cc', - 'power_monitor/power_monitor_source.cc', - 'power_monitor/power_monitor_source.h', - 'power_monitor/power_observer.h', - 'process/internal_linux.cc', - 'process/internal_linux.h', - 'process/kill.cc', - 'process/kill.h', - 'process/kill_mac.cc', - 'process/kill_posix.cc', - 'process/kill_win.cc', - 'process/launch.cc', - 'process/launch.h', - 'process/launch_ios.cc', - 'process/launch_mac.cc', - 'process/launch_posix.cc', - 'process/launch_win.cc', - 'process/memory.cc', - 'process/memory.h', - 'process/memory_linux.cc', - 'process/memory_mac.mm', - 'process/memory_win.cc', - 'process/process.h', - 'process/process_handle_freebsd.cc', - 'process/process_handle_linux.cc', - 'process/process_handle_mac.cc', - 'process/process_handle_openbsd.cc', - 'process/process_handle_posix.cc', - 'process/process_handle_win.cc', - 'process/process_info.h', - 'process/process_info_linux.cc', - 'process/process_info_mac.cc', - 'process/process_info_win.cc', - 'process/process_iterator.cc', - 'process/process_iterator.h', - 'process/process_iterator_freebsd.cc', - 'process/process_iterator_linux.cc', - 'process/process_iterator_mac.cc', - 'process/process_iterator_openbsd.cc', - 'process/process_iterator_win.cc', - 'process/process_linux.cc', - 'process/process_mac.cc', - 'process/process_metrics.cc', - 'process/process_metrics.h', - 'process/process_metrics_freebsd.cc', - 'process/process_metrics_ios.cc', - 'process/process_metrics_linux.cc', - 'process/process_metrics_mac.cc', - 'process/process_metrics_openbsd.cc', - 'process/process_metrics_posix.cc', - 'process/process_metrics_win.cc', - 'process/process_posix.cc', - 'process/process_win.cc', - 'profiler/alternate_timer.cc', - 'profiler/alternate_timer.h', - 'profiler/native_stack_sampler.cc', - 'profiler/native_stack_sampler.h', - 'profiler/scoped_profile.cc', - 'profiler/scoped_profile.h', - 'profiler/scoped_tracker.cc', - 'profiler/scoped_tracker.h', - 'profiler/stack_sampling_profiler.cc', - 'profiler/stack_sampling_profiler.h', - 'profiler/stack_sampling_profiler_posix.cc', - 'profiler/stack_sampling_profiler_win.cc', - 'profiler/tracked_time.cc', - 'profiler/tracked_time.h', - 'rand_util.cc', - 'rand_util.h', - 'rand_util_nacl.cc', - 'rand_util_posix.cc', - 'rand_util_win.cc', - 'run_loop.cc', - 'run_loop.h', - 'scoped_generic.h', - 'scoped_native_library.cc', - 'scoped_native_library.h', - 'scoped_observer.h', - 'sequence_checker.h', - 'sequence_checker_impl.cc', - 'sequence_checker_impl.h', - 'sequenced_task_runner.cc', - 'sequenced_task_runner.h', - 'sequenced_task_runner_helpers.h', - 'sha1.h', - 'sha1_portable.cc', - 'sha1_win.cc', - 'single_thread_task_runner.h', - 'stl_util.h', - 'strings/latin1_string_conversions.cc', - 'strings/latin1_string_conversions.h', - 'strings/nullable_string16.cc', - 'strings/nullable_string16.h', - 'strings/safe_sprintf.cc', - 'strings/safe_sprintf.h', - 'strings/string16.cc', - 'strings/string16.h', - 'strings/string_number_conversions.cc', - 'strings/string_number_conversions.h', - 'strings/string_piece.cc', - 'strings/string_piece.h', - 'strings/string_split.cc', - 'strings/string_split.h', - 'strings/string_tokenizer.h', - 'strings/string_util.cc', - 'strings/string_util.h', - 'strings/string_util_constants.cc', - 'strings/string_util_posix.h', - 'strings/string_util_win.h', - 'strings/stringize_macros.h', - 'strings/stringprintf.cc', - 'strings/stringprintf.h', - 'strings/sys_string_conversions.h', - 'strings/sys_string_conversions_mac.mm', - 'strings/sys_string_conversions_posix.cc', - 'strings/sys_string_conversions_win.cc', - 'strings/utf_offset_string_conversions.cc', - 'strings/utf_offset_string_conversions.h', - 'strings/utf_string_conversion_utils.cc', - 'strings/utf_string_conversion_utils.h', - 'strings/utf_string_conversions.cc', - 'strings/utf_string_conversions.h', - 'supports_user_data.cc', - 'supports_user_data.h', - 'synchronization/cancellation_flag.cc', - 'synchronization/cancellation_flag.h', - 'synchronization/condition_variable.h', - 'synchronization/condition_variable_posix.cc', - 'synchronization/condition_variable_win.cc', - 'synchronization/lock.cc', - 'synchronization/lock.h', - 'synchronization/lock_impl.h', - 'synchronization/lock_impl_posix.cc', - 'synchronization/lock_impl_win.cc', - 'synchronization/spin_wait.h', - 'synchronization/waitable_event.h', - 'synchronization/waitable_event_posix.cc', - 'synchronization/waitable_event_watcher.h', - 'synchronization/waitable_event_watcher_posix.cc', - 'synchronization/waitable_event_watcher_win.cc', - 'synchronization/waitable_event_win.cc', - 'sys_byteorder.h', - 'sys_info.cc', - 'sys_info.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', - 'system_monitor/system_monitor.cc', - 'system_monitor/system_monitor.h', - 'task/cancelable_task_tracker.cc', - 'task/cancelable_task_tracker.h', - 'task_runner.cc', - 'task_runner.h', - 'task_runner_util.h', - 'template_util.h', - 'third_party/dmg_fp/dmg_fp.h', - 'third_party/dmg_fp/dtoa_wrapper.cc', - 'third_party/dmg_fp/g_fmt.cc', - 'third_party/icu/icu_utf.cc', - 'third_party/icu/icu_utf.h', - 'third_party/nspr/prtime.cc', - 'third_party/nspr/prtime.h', - 'third_party/superfasthash/superfasthash.c', - 'third_party/xdg_mime/xdgmime.h', - 'thread_task_runner_handle.cc', - 'thread_task_runner_handle.h', - 'threading/non_thread_safe.h', - 'threading/non_thread_safe_impl.cc', - 'threading/non_thread_safe_impl.h', - 'threading/platform_thread.h', - 'threading/platform_thread_android.cc', - 'threading/platform_thread_internal_posix.cc', - 'threading/platform_thread_internal_posix.h', - 'threading/platform_thread_linux.cc', - 'threading/platform_thread_mac.mm', - 'threading/platform_thread_posix.cc', - 'threading/platform_thread_win.cc', - 'threading/post_task_and_reply_impl.cc', - 'threading/post_task_and_reply_impl.h', - 'threading/sequenced_worker_pool.cc', - 'threading/sequenced_worker_pool.h', - 'threading/simple_thread.cc', - 'threading/simple_thread.h', - 'threading/thread.cc', - 'threading/thread.h', - 'threading/thread_checker.h', - 'threading/thread_checker_impl.cc', - 'threading/thread_checker_impl.h', - 'threading/thread_collision_warner.cc', - 'threading/thread_collision_warner.h', - 'threading/thread_id_name_manager.cc', - 'threading/thread_id_name_manager.h', - 'threading/thread_local.h', - 'threading/thread_local_android.cc', - 'threading/thread_local_posix.cc', - 'threading/thread_local_storage.cc', - 'threading/thread_local_storage.h', - 'threading/thread_local_storage_posix.cc', - 'threading/thread_local_storage_win.cc', - 'threading/thread_local_win.cc', - 'threading/thread_restrictions.cc', - 'threading/thread_restrictions.h', - 'threading/watchdog.cc', - 'threading/watchdog.h', - 'threading/worker_pool.cc', - 'threading/worker_pool.h', - 'threading/worker_pool_posix.cc', - 'threading/worker_pool_posix.h', - 'threading/worker_pool_win.cc', - 'time/clock.cc', - 'time/clock.h', - 'time/default_clock.cc', - 'time/default_clock.h', - 'time/default_tick_clock.cc', - 'time/default_tick_clock.h', - 'time/tick_clock.cc', - 'time/tick_clock.h', - 'time/time.cc', - 'time/time.h', - 'time/time_mac.cc', - 'time/time_posix.cc', - 'time/time_win.cc', - 'timer/elapsed_timer.cc', - 'timer/elapsed_timer.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', - 'tracked_objects.h', - 'tracking_info.cc', - 'tracking_info.h', - 'tuple.h', - 'value_conversions.cc', - 'value_conversions.h', - 'values.cc', - 'values.h', - 'version.cc', - 'version.h', - 'vlog.cc', - 'vlog.h', - 'win/enum_variant.cc', - 'win/enum_variant.h', - 'win/event_trace_consumer.h', - 'win/event_trace_controller.cc', - 'win/event_trace_controller.h', - 'win/event_trace_provider.cc', - 'win/event_trace_provider.h', - 'win/i18n.cc', - 'win/i18n.h', - 'win/iat_patch_function.cc', - 'win/iat_patch_function.h', - 'win/iunknown_impl.cc', - 'win/iunknown_impl.h', - 'win/message_window.cc', - 'win/message_window.h', - 'win/metro.cc', - 'win/metro.h', - 'win/object_watcher.cc', - 'win/object_watcher.h', - 'win/registry.cc', - 'win/registry.h', - 'win/resource_util.cc', - 'win/resource_util.h', - 'win/scoped_bstr.cc', - 'win/scoped_bstr.h', - 'win/scoped_co_mem.h', - 'win/scoped_com_initializer.h', - 'win/scoped_comptr.h', - 'win/scoped_gdi_object.h', - 'win/scoped_handle.cc', - 'win/scoped_handle.h', - 'win/scoped_hdc.h', - 'win/scoped_hglobal.h', - 'win/scoped_process_information.cc', - 'win/scoped_process_information.h', - 'win/scoped_propvariant.h', - 'win/scoped_select_object.h', - 'win/scoped_variant.cc', - 'win/scoped_variant.h', - 'win/shortcut.cc', - 'win/shortcut.h', - 'win/startup_information.cc', - 'win/startup_information.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', - '<@(trace_event_sources)', - ], - 'defines': [ - 'BASE_IMPLEMENTATION', - ], - 'include_dirs': [ - '..', - ], - 'msvs_disabled_warnings': [ - 4018, - ], - 'target_conditions': [ - ['(<(desktop_linux) == 0 and <(chromeos) == 0) or >(nacl_untrusted_build)==1', { - 'sources/': [ - ['exclude', '^nix/'], - ], - 'sources!': [ - 'atomicops_internals_x86_gcc.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!': [ - # Not automatically excluded by the *linux.cc rules. - 'linux_util.cc', - ], - }, - ], - ['>(nacl_untrusted_build)==1', { - 'sources!': [ - 'allocator/type_profiler_control.cc', - 'allocator/type_profiler_control.h', - 'base_paths.cc', - 'cpu.cc', - 'debug/stack_trace.cc', - 'debug/stack_trace_posix.cc', - 'files/file_enumerator_posix.cc', - 'files/file_path_watcher_fsevents.cc', - 'files/file_path_watcher_fsevents.h', - 'files/file_path_watcher_kqueue.cc', - 'files/file_path_watcher_kqueue.h', - 'files/file_proxy.cc', - 'files/file_util.cc', - 'files/file_util_posix.cc', - 'files/file_util_proxy.cc', - 'files/important_file_writer.cc', - 'files/scoped_temp_dir.cc', - 'memory/shared_memory_posix.cc', - 'native_library_posix.cc', - 'path_service.cc', - 'posix/unix_domain_socket_linux.cc', - 'process/kill.cc', - 'process/kill_posix.cc', - 'process/launch.cc', - 'process/launch_posix.cc', - 'process/process_metrics.cc', - 'process/process_metrics_posix.cc', - 'process/process_posix.cc', - 'rand_util_posix.cc', - 'scoped_native_library.cc', - 'sys_info.cc', - 'sys_info_posix.cc', - 'third_party/dynamic_annotations/dynamic_annotations.c', - ], - 'sources/': [ - ['include', '^threading/platform_thread_linux\\.cc$'], - ], - }], - ['OS == "android" and >(nacl_untrusted_build)==0', { - 'sources!': [ - 'base_paths_posix.cc', - 'files/file_path_watcher_fsevents.cc', - 'files/file_path_watcher_fsevents.h', - 'files/file_path_watcher_kqueue.cc', - 'files/file_path_watcher_kqueue.h', - 'files/file_path_watcher_stub.cc', - 'power_monitor/power_monitor_device_source_posix.cc', - ], - 'sources/': [ - ['include', '^debug/proc_maps_linux\\.cc$'], - ['include', '^files/file_path_watcher_linux\\.cc$'], - ['include', '^process/memory_linux\\.cc$'], - ['include', '^process/internal_linux\\.cc$'], - ['include', '^process/process_handle_linux\\.cc$'], - ['include', '^process/process_iterator\\.cc$'], - ['include', '^process/process_iterator_linux\\.cc$'], - ['include', '^process/process_metrics_linux\\.cc$'], - ['include', '^posix/unix_domain_socket_linux\\.cc$'], - ['include', '^strings/sys_string_conversions_posix\\.cc$'], - ['include', '^sys_info_linux\\.cc$'], - ['include', '^worker_pool_linux\\.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$'], - ], - }], - ['<(chromeos) == 1', { - 'sources!': [ - 'power_monitor/power_monitor_device_source_posix.cc', - ], - }], - ['OS == "ios" and _toolset != "host"', { - 'sources/': [ - # Pull in specific Mac files for iOS (which have been filtered out - # by file name rules). - ['include', '^atomicops_internals_mac\\.'], - ['include', '^base_paths_mac\\.'], - ['include', '^files/file_util_mac\\.'], - ['include', '^file_version_info_mac\\.'], - ['include', '^mac/bundle_locations\\.'], - ['include', '^mac/foundation_util\\.'], - ['include', '^mac/mac_logging\\.'], - ['include', '^mac/mach_logging\\.'], - ['include', '^mac/objc_property_releaser\\.'], - ['include', '^mac/scoped_mach_port\\.'], - ['include', '^mac/scoped_mach_vm\\.'], - ['include', '^mac/scoped_nsautorelease_pool\\.'], - ['include', '^mac/scoped_nsobject\\.'], - ['include', '^mac/scoped_objc_class_swizzler\\.'], - ['include', '^message_loop/message_pump_mac\\.'], - ['include', '^strings/sys_string_conversions_mac\\.'], - ['include', '^threading/platform_thread_mac\\.'], - ['include', '^time/time_mac\\.'], - ['include', '^worker_pool_mac\\.'], - # Exclude all process/ except the minimal implementation - # needed on iOS (mostly for unit tests). - ['exclude', '^process/.*'], - ['include', '^process/.*_ios\.(cc|mm)$'], - ['include', '^process/memory_stubs\.cc$'], - ['include', '^process/process_handle_posix\.cc$'], - ['include', '^process/process_metrics\\.cc$'], - ['exclude', '^threading/platform_thread_internal_posix\\.(h|cc)'], - ['exclude', 'files/file_path_watcher_fsevents.cc'], - ['exclude', 'files/file_path_watcher_fsevents.h'], - ['include', 'files/file_path_watcher_mac.cc'], - ], - 'sources': [ - 'process/memory_stubs.cc', - ], - 'sources!': [ - 'message_loop/message_pump_libevent.cc' - ], - }], - ['OS == "ios" and _toolset == "host"', { - 'sources/': [ - # Copied filename_rules to switch from iOS to Mac inclusions. - ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'], - ['include', '(^|/)(cocoa|mac)/'], - ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'], - ['exclude', '(^|/)ios/'], - ['exclude', 'files/file_path_watcher_fsevents.cc'], - ['exclude', 'files/file_path_watcher_fsevents.h'], - ['include', 'files/file_path_watcher_mac.cc'], - ] - }], - # 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', '_freebsd\\.cc$'] ], - }, - ], - ['OS != "openbsd" or >(nacl_untrusted_build)==1', { - 'sources/': [ ['exclude', '_openbsd\\.cc$'] ], - }, - ], - ['OS == "win" and >(nacl_untrusted_build)==0', { - 'include_dirs': [ - '<(DEPTH)/third_party/wtl/include', - ], - 'sources!': [ - 'files/file_path_watcher_fsevents.cc', - 'files/file_path_watcher_fsevents.h', - 'files/file_path_watcher_kqueue.cc', - 'files/file_path_watcher_kqueue.h', - 'files/file_path_watcher_stub.cc', - 'message_loop/message_pump_libevent.cc', - 'posix/file_descriptor_shuffle.cc', - # Not using sha1_win.cc because it may have caused a - # regression to page cycler moz. - 'sha1_win.cc', - 'strings/string16.cc', - ], - },], - ['<(use_ozone) == 1', { - 'sources!': [ - 'message_loop/message_pump_glib.cc', - ] - }], - ['OS == "linux" and >(nacl_untrusted_build)==0', { - 'sources!': [ - 'files/file_path_watcher_fsevents.cc', - 'files/file_path_watcher_fsevents.h', - 'files/file_path_watcher_kqueue.cc', - 'files/file_path_watcher_kqueue.h', - 'files/file_path_watcher_stub.cc', - ], - }], - ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', { - 'sources/': [ - ['exclude', '^base_paths_posix\\.cc$'], - ['exclude', '^files/file_path_watcher_stub\\.cc$'], - ['exclude', '^native_library_posix\\.cc$'], - ['exclude', '^strings/sys_string_conversions_posix\\.cc$'], - ['exclude', '^threading/platform_thread_internal_posix\\.cc$'], - ], - }], - ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', { - 'sources': [ - 'process/memory_stubs.cc', - ], - 'sources/': [ - ['exclude', '^files/file_path_watcher_linux\\.cc$'], - ['exclude', '^files/file_path_watcher_stub\\.cc$'], - ['exclude', '^files/file_util_linux\\.cc$'], - ['exclude', '^process/process_linux\\.cc$'], - ['exclude', '^sys_info_linux\\.cc$'], - ], - }], - # 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$'] ], - }], - # Enable more direct string conversions on platforms with native utf8 - # strings - ['OS=="mac" or OS=="ios" or <(chromeos)==1 or <(chromecast)==1', { - 'defines': ['SYSTEM_NATIVE_UTF8'], - }], - ], - }], - ['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', - ], - }] - ], - }, -}
diff --git a/base_nacl.gyp b/base_nacl.gyp deleted file mode 100644 index 7e7d34f..0000000 --- a/base_nacl.gyp +++ /dev/null
@@ -1,143 +0,0 @@ -# Copyright (c) 2012 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'variables': { - 'chromium_code': 1, - }, - 'includes': [ - # base.gypi must be included before common_untrusted.gypi. - # - # TODO(sergeyu): Replace the target_defaults magic in base.gypi with a - # sources variables lists. That way order of includes will not matter. - 'base.gypi', - '../build/common_untrusted.gypi', - ], - 'conditions': [ - ['disable_nacl==0 and disable_nacl_untrusted==0', { - 'targets': [ - { - 'target_name': 'base_nacl', - 'type': 'none', - 'variables': { - 'base_target': 1, - 'nacl_untrusted_build': 1, - 'nlib_target': 'libbase_nacl.a', - 'build_glibc': 0, - 'build_newlib': 0, - 'build_irt': 1, - 'build_pnacl_newlib': 1, - 'sources': [ - 'base_switches.cc', - 'base_switches.h', - 'strings/string16.cc', - 'sync_socket_nacl.cc', - 'time/time_posix.cc', - ], - 'gcc_compile_flags': [ - '-fno-strict-aliasing', - ], - }, - }, - { - 'target_name': 'base_i18n_nacl', - 'type': 'none', - 'variables': { - 'base_i18n_target': 1, - 'nacl_untrusted_build': 1, - 'nlib_target': 'libbase_i18n_nacl.a', - 'build_glibc': 0, - 'build_newlib': 0, - 'build_irt': 0, - 'build_pnacl_newlib': 1, - 'sources': [ - 'base_switches.cc', - 'base_switches.h', - 'strings/string16.cc', - 'sync_socket_nacl.cc', - 'time/time_posix.cc', - ], - }, - 'dependencies': [ - '../third_party/icu/icu_nacl.gyp:icudata_nacl', - '../third_party/icu/icu_nacl.gyp:icui18n_nacl', - '../third_party/icu/icu_nacl.gyp:icuuc_nacl', - ], - }, - { - 'target_name': 'base_nacl_nonsfi', - 'type': 'none', - 'variables': { - 'base_target': 1, - 'nacl_untrusted_build': 1, - 'nlib_target': 'libbase_nacl_nonsfi.a', - 'build_glibc': 0, - 'build_newlib': 0, - 'build_irt': 0, - 'build_pnacl_newlib': 0, - 'build_nonsfi_helper': 1, - - 'sources': [ - 'base_switches.cc', - 'base_switches.h', - - # For PathExists and ReadFromFD. - 'files/file_util.cc', - 'files/file_util_posix.cc', - - # For MessageLoopForIO based on libevent. - 'message_loop/message_pump_libevent.cc', - 'message_loop/message_pump_libevent.h', - - # For UnixDomainSocket::SendMsg and RecvMsg. - 'posix/unix_domain_socket_linux.cc', - - # For GetKnownDeadTerminationStatus and GetTerminationStatus. - 'process/kill_posix.cc', - - # Unlike libbase_nacl, for Non-SFI build, we need to use - # rand_util_posix for random implementation, instead of - # rand_util_nacl.cc, which is based on IRT. rand_util_nacl.cc is - # excluded below. - 'rand_util_posix.cc', - - # For CancelableSyncSocket. - 'sync_socket_nacl.cc', - ], - }, - 'sources!': [ - 'rand_util_nacl.cc', - ], - 'dependencies': [ - '../third_party/libevent/libevent_nacl_nonsfi.gyp:event_nacl_nonsfi', - ], - }, - { - 'target_name': 'test_support_base_nacl_nonsfi', - 'type': 'none', - 'variables': { - 'nacl_untrusted_build': 1, - 'nlib_target': 'libtest_support_base_nacl_nonsfi.a', - 'build_glibc': 0, - 'build_newlib': 0, - 'build_irt': 0, - 'build_pnacl_newlib': 0, - 'build_nonsfi_helper': 1, - - 'sources': [ - 'test/gtest_util.cc', - 'test/launcher/unit_test_launcher_nacl_nonsfi.cc', - 'test/gtest_xml_unittest_result_printer.cc', - 'test/test_switches.cc', - ], - }, - 'dependencies': [ - 'base_nacl_nonsfi', - '../testing/gtest_nacl.gyp:gtest_nacl', - ], - }, - ], - }], - ], -}
diff --git a/third_party/dynamic_annotations/dynamic_annotations.gyp b/third_party/dynamic_annotations/dynamic_annotations.gyp deleted file mode 100644 index 8d2e9ec..0000000 --- a/third_party/dynamic_annotations/dynamic_annotations.gyp +++ /dev/null
@@ -1,50 +0,0 @@ -# Copyright (c) 2011 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'targets': [ - { - 'target_name': 'dynamic_annotations', - 'type': 'static_library', - 'toolsets': ['host', 'target'], - 'include_dirs': [ - '../../../', - ], - 'sources': [ - '../valgrind/valgrind.h', - 'dynamic_annotations.c', - 'dynamic_annotations.h', - ], - 'includes': [ - '../../../build/android/increase_size_for_speed.gypi', - ], - }, - ], - 'conditions': [ - ['OS == "win" and target_arch=="ia32"', { - 'targets': [ - { - 'target_name': 'dynamic_annotations_win64', - 'type': 'static_library', - # We can't use dynamic_annotations target for win64 build since it is - # a 32-bit library. - # TODO(gregoryd): merge with dynamic_annotations when - # the win32/64 targets are merged. - 'include_dirs': [ - '../../../', - ], - 'sources': [ - 'dynamic_annotations.c', - 'dynamic_annotations.h', - ], - 'configurations': { - 'Common_Base': { - 'msvs_target_platform': 'x64', - }, - }, - }, - ], - }], - ], -}
diff --git a/trace_event/etw_manifest/etw_manifest.gyp b/trace_event/etw_manifest/etw_manifest.gyp deleted file mode 100644 index b2f0eb8..0000000 --- a/trace_event/etw_manifest/etw_manifest.gyp +++ /dev/null
@@ -1,41 +0,0 @@ -# Copyright 2015 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. -{ - 'targets': [ - { - # GN version: //base/trace_event/etw_manifest/BUILD.gn - 'target_name': 'etw_manifest', - 'type': 'none', - 'toolsets': ['host', 'target'], - 'hard_dependency': 1, - 'conditions': [ - ['OS=="win"', { - 'sources': [ - 'chrome_events_win.man', - ], - 'variables': { - 'man_output_dir': '<(SHARED_INTERMEDIATE_DIR)/base/trace_event/etw_manifest', - }, - 'rules': [{ - # Rule to run the message compiler. - 'rule_name': 'message_compiler', - 'extension': 'man', - 'outputs': [ - '<(man_output_dir)/chrome_events_win.h', - '<(man_output_dir)/chrome_events_win.rc', - ], - 'action': [ - 'mc.exe', - '-h', '<(man_output_dir)', - '-r', '<(man_output_dir)/.', - '-um', - '<(RULE_INPUT_PATH)', - ], - 'message': 'Running message compiler on <(RULE_INPUT_PATH)', - }], - }], - ], - } - ] -}
diff --git a/trace_event/trace_event.gypi b/trace_event/trace_event.gypi deleted file mode 100644 index b595004..0000000 --- a/trace_event/trace_event.gypi +++ /dev/null
@@ -1,76 +0,0 @@ -# Copyright 2015 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. -{ - 'variables': { - 'trace_event_sources' : [ - 'trace_event/java_heap_dump_provider_android.cc', - 'trace_event/java_heap_dump_provider_android.h', - 'trace_event/memory_allocator_dump.cc', - 'trace_event/memory_allocator_dump.h', - 'trace_event/memory_allocator_dump_guid.cc', - 'trace_event/memory_allocator_dump_guid.h', - 'trace_event/memory_dump_manager.cc', - 'trace_event/memory_dump_manager.h', - 'trace_event/memory_dump_provider.h', - 'trace_event/memory_dump_request_args.h', - 'trace_event/memory_dump_session_state.cc', - 'trace_event/memory_dump_session_state.h', - 'trace_event/process_memory_dump.cc', - 'trace_event/process_memory_dump.h', - 'trace_event/process_memory_maps.cc', - 'trace_event/process_memory_maps.h', - 'trace_event/process_memory_maps_dump_provider.cc', - 'trace_event/process_memory_maps_dump_provider.h', - 'trace_event/process_memory_totals.cc', - 'trace_event/process_memory_totals.h', - 'trace_event/process_memory_totals_dump_provider.cc', - 'trace_event/process_memory_totals_dump_provider.h', - 'trace_event/trace_config.cc', - 'trace_event/trace_config.h', - 'trace_event/trace_event.h', - 'trace_event/trace_event_android.cc', - 'trace_event/trace_event_argument.cc', - 'trace_event/trace_event_argument.h', - 'trace_event/trace_event_etw_export_win.cc', - 'trace_event/trace_event_etw_export_win.h', - 'trace_event/trace_event_impl.cc', - 'trace_event/trace_event_impl.h', - 'trace_event/trace_event_impl_constants.cc', - 'trace_event/trace_event_memory.cc', - 'trace_event/trace_event_memory.h', - 'trace_event/trace_event_synthetic_delay.cc', - 'trace_event/trace_event_synthetic_delay.h', - 'trace_event/trace_event_system_stats_monitor.cc', - 'trace_event/trace_event_system_stats_monitor.h', - 'trace_event/trace_event_win.cc', - 'trace_event/trace_event_win.h', - 'trace_event/winheap_dump_provider_win.cc', - 'trace_event/winheap_dump_provider_win.h', - ], - 'conditions': [ - ['OS == "linux" or OS == "android"', { - 'trace_event_sources': [ - 'trace_event/malloc_dump_provider.cc', - 'trace_event/malloc_dump_provider.h', - ], - }], - ], - 'trace_event_test_sources' : [ - 'trace_event/java_heap_dump_provider_android_unittest.cc', - 'trace_event/memory_allocator_dump_unittest.cc', - 'trace_event/memory_dump_manager_unittest.cc', - 'trace_event/process_memory_dump_unittest.cc', - 'trace_event/process_memory_maps_dump_provider_unittest.cc', - 'trace_event/process_memory_totals_dump_provider_unittest.cc', - 'trace_event/trace_config_unittest.cc', - 'trace_event/trace_event_argument_unittest.cc', - 'trace_event/trace_event_memory_unittest.cc', - 'trace_event/trace_event_synthetic_delay_unittest.cc', - 'trace_event/trace_event_system_stats_monitor_unittest.cc', - 'trace_event/trace_event_unittest.cc', - 'trace_event/trace_event_win_unittest.cc', - 'trace_event/winheap_dump_provider_win_unittest.cc', - ], - }, -}