Commit 315e4cfd authored by brettw's avatar brettw Committed by Commit bot

Remove GYP files.

This removes all .gyp files not called "compiled_resources" in the main Chromium repository.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng

Review-Url: https://codereview.chromium.org/2332843004
Cr-Commit-Position: refs/heads/master@{#418654}
parent 4b56905d
This diff is collapsed.
# 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: //android_webview/tools:system_webview_shell_apk
{
'target_name': 'system_webview_shell_apk',
'type': 'none',
'variables': {
'apk_name': 'SystemWebViewShell',
'java_in_dir': 'tools/system_webview_shell/apk',
'resource_dir': 'tools/system_webview_shell/apk/res',
'android_manifest_path': 'tools/system_webview_shell/apk/AndroidManifest.xml', # for lint
},
'includes': [
'../build/java_apk.gypi',
],
},
{
# android_webview_apk creates a .jar as a side effect. Any java
# targets that need that .jar in their classpath should depend on this
# target. For more details see the content_shell_apk_java target.
'target_name': 'system_webview_shell_apk_java',
'type': 'none',
'dependencies': [
'system_webview_shell_apk',
],
'includes': [ '../build/apk_fake_jar.gypi' ],
},
# GN: //android_webview/tools:system_webview_shell_page_cycler_apk
{
'target_name': 'system_webview_shell_page_cycler_apk',
'type': 'none',
'dependencies': [
'../base/base.gyp:base_java_test_support',
'../content/content_shell_and_tests.gyp:content_java_test_support',
'../testing/android/on_device_instrumentation.gyp:broker_java',
'../testing/android/on_device_instrumentation.gyp:require_driver_apk',
'system_webview_shell_apk_java',
],
'variables': {
'apk_name': 'SystemWebViewShellPageCycler',
'java_in_dir': '../android_webview/tools/system_webview_shell/page_cycler',
'is_test_apk': 1,
'test_type': 'instrumentation',
'android_manifest_path': '../android_webview/tools/system_webview_shell/page_cycler/AndroidManifest.xml',
},
'includes': [
'../build/java_apk.gypi',
'../build/android/test_runner.gypi',
],
},
# GN: //android_webview/tools:system_webview_shell_layout_test_apk
{
'target_name': 'system_webview_shell_layout_test_apk',
'type': 'none',
'dependencies': [
'../base/base.gyp:base_java_test_support',
'../testing/android/on_device_instrumentation.gyp:broker_java',
'../testing/android/on_device_instrumentation.gyp:require_driver_apk',
'system_webview_shell_apk_java',
],
'variables': {
'apk_name': 'SystemWebViewShellLayoutTest',
'java_in_dir': '../android_webview/tools/system_webview_shell/layout_tests',
'is_test_apk': 1,
'test_type': 'instrumentation',
'isolate_file': 'system_webview_shell_test_apk.isolate',
'android_manifest_path': '../android_webview/tools/system_webview_shell/layout_tests/AndroidManifest.xml',
},
'includes': [
'../build/java_apk.gypi',
'../build/android/test_runner.gypi',
]
},
],
}
This diff is collapsed.
# Copyright 2014 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.
#
# When making changes remember that this is shared with the internal .apk
# build rules.
{
'type': 'none',
'dependencies': [
'<(DEPTH)/android_webview/android_webview.gyp:libwebviewchromium',
],
'variables': {
'native_lib_target': 'libwebviewchromium',
'native_lib_version_name': '<(version_full)',
'shared_resources': 1,
'extensions_to_not_compress': '.lpak,.pak,.bin,.dat',
'asset_location': '<(INTERMEDIATE_DIR)/assets/',
'snapshot_copy_files': '<(snapshot_copy_files)',
'jinja_inputs': ['<(android_manifest_template_path)'],
'jinja_output': '<(INTERMEDIATE_DIR)/AndroidManifest.xml',
'jinja_variables': [ '<@(android_manifest_template_vars)' ],
'android_manifest_template_vars': [ ],
'android_manifest_template_path': '<(DEPTH)/android_webview/apk/java/AndroidManifest.xml',
'android_manifest_path': '<(jinja_output)',
'proguard_enabled': 'true',
'proguard_flags_paths': ['<(DEPTH)/android_webview/apk/java/proguard.flags'],
# TODO: crbug.com/405035 Find a better solution for WebView .pak files.
'additional_input_paths': [
'<(asset_location)/webviewchromium.pak',
'<(asset_location)/webview_licenses.notice',
'<@(snapshot_additional_input_paths)',
],
'includes': [
'../../build/util/version.gypi',
'../snapshot_copying.gypi',
],
'conditions': [
['icu_use_data_file_flag==1', {
'additional_input_paths': [
'<(asset_location)/icudtl.dat',
],
}],
],
},
'copies': [
{
'destination': '<(asset_location)',
'files': [
'<(webview_licenses_path)',
'<(webview_chromium_pak_path)',
'<@(snapshot_copy_files)',
],
'conditions': [
['icu_use_data_file_flag==1', {
'files': [
'<(PRODUCT_DIR)/icudtl.dat',
],
}],
],
},
],
'includes': [
'system_webview_paks.gypi',
'../../build/java_apk.gypi',
'../../build/android/jinja_template.gypi',
],
}
# 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.
#
# This is shared between system_webview_glue_java and system_webview_glue_next_java
{
'type': 'none',
'dependencies': [
'<(DEPTH)/android_webview/android_webview.gyp:android_webview_java',
'<(DEPTH)/android_webview/android_webview.gyp:android_webview_pak',
],
'variables': {
'resource_rewriter_package': 'com.android.webview.chromium',
'resource_rewriter_dir': '<(intermediate_dir)/resource_rewriter',
'resource_rewriter_path': '<(resource_rewriter_dir)/com/android/webview/chromium/ResourceRewriter.java',
'additional_input_paths': ['<(resource_rewriter_path)'],
'generated_src_dirs': ['<(resource_rewriter_dir)'],
},
'actions': [
# Generate ResourceRewriter.java
{
'action_name': 'generate_resource_rewriter',
'message': 'generate ResourceRewriter for <(_target_name)',
'inputs':[
'<(DEPTH)/build/android/gyp/util/build_utils.py',
'<(DEPTH)/build/android/gyp/generate_resource_rewriter.py',
'>@(dependencies_res_zip_paths)',
],
'outputs': [
'<(resource_rewriter_path)',
],
'action': [
'python', '<(DEPTH)/build/android/gyp/generate_resource_rewriter.py',
'--package-name', '<(resource_rewriter_package)',
'--dep-packages', '>(additional_res_packages)',
'--output-dir', '<(resource_rewriter_dir)',
],
},
],
'includes': [ '../../build/java.gypi' ],
}
# Copyright (c) 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.
#
# This file defines the name of webviewchromium.pak and the set of locales that
# should be packed inside the System WebView apk, these files also are used in
# downstream.
# TODO: consider unifying this list with the one in chrome_android_paks.gypi
# once Chrome includes all the locales that the WebView needs.
{
'variables': {
'webview_licenses_path': '<(PRODUCT_DIR)/android_webview_assets/webview_licenses.notice',
'webview_chromium_pak_path': '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
'webview_locales_input_paks_folder': '<(PRODUCT_DIR)/android_webview_assets/locales/',
# The list of locale are only supported by WebView.
'webview_locales_input_individual_paks': [
'<(webview_locales_input_paks_folder)/bn.pak',
'<(webview_locales_input_paks_folder)/et.pak',
'<(webview_locales_input_paks_folder)/gu.pak',
'<(webview_locales_input_paks_folder)/kn.pak',
'<(webview_locales_input_paks_folder)/ml.pak',
'<(webview_locales_input_paks_folder)/mr.pak',
'<(webview_locales_input_paks_folder)/ms.pak',
'<(webview_locales_input_paks_folder)/ta.pak',
'<(webview_locales_input_paks_folder)/te.pak',
],
# The list of locale are supported by chrome too.
'webview_locales_input_common_paks': [
'<(webview_locales_input_paks_folder)/am.pak',
'<(webview_locales_input_paks_folder)/ar.pak',
'<(webview_locales_input_paks_folder)/bg.pak',
'<(webview_locales_input_paks_folder)/ca.pak',
'<(webview_locales_input_paks_folder)/cs.pak',
'<(webview_locales_input_paks_folder)/da.pak',
'<(webview_locales_input_paks_folder)/de.pak',
'<(webview_locales_input_paks_folder)/el.pak',
'<(webview_locales_input_paks_folder)/en-GB.pak',
'<(webview_locales_input_paks_folder)/en-US.pak',
'<(webview_locales_input_paks_folder)/es.pak',
'<(webview_locales_input_paks_folder)/es-419.pak',
'<(webview_locales_input_paks_folder)/fa.pak',
'<(webview_locales_input_paks_folder)/fi.pak',
'<(webview_locales_input_paks_folder)/fil.pak',
'<(webview_locales_input_paks_folder)/fr.pak',
'<(webview_locales_input_paks_folder)/he.pak',
'<(webview_locales_input_paks_folder)/hi.pak',
'<(webview_locales_input_paks_folder)/hr.pak',
'<(webview_locales_input_paks_folder)/hu.pak',
'<(webview_locales_input_paks_folder)/id.pak',
'<(webview_locales_input_paks_folder)/it.pak',
'<(webview_locales_input_paks_folder)/ja.pak',
'<(webview_locales_input_paks_folder)/ko.pak',
'<(webview_locales_input_paks_folder)/lt.pak',
'<(webview_locales_input_paks_folder)/lv.pak',
'<(webview_locales_input_paks_folder)/nb.pak',
'<(webview_locales_input_paks_folder)/nl.pak',
'<(webview_locales_input_paks_folder)/pl.pak',
'<(webview_locales_input_paks_folder)/pt-BR.pak',
'<(webview_locales_input_paks_folder)/pt-PT.pak',
'<(webview_locales_input_paks_folder)/ro.pak',
'<(webview_locales_input_paks_folder)/ru.pak',
'<(webview_locales_input_paks_folder)/sk.pak',
'<(webview_locales_input_paks_folder)/sl.pak',
'<(webview_locales_input_paks_folder)/sr.pak',
'<(webview_locales_input_paks_folder)/sv.pak',
'<(webview_locales_input_paks_folder)/sw.pak',
'<(webview_locales_input_paks_folder)/th.pak',
'<(webview_locales_input_paks_folder)/tr.pak',
'<(webview_locales_input_paks_folder)/uk.pak',
'<(webview_locales_input_paks_folder)/vi.pak',
'<(webview_locales_input_paks_folder)/zh-CN.pak',
'<(webview_locales_input_paks_folder)/zh-TW.pak',
],
},
}
# Copyright 2014 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.
{
'type': 'shared_library',
'android_unmangled_name': 1,
'dependencies': [
'android_webview_common',
],
'variables': {
'use_native_jni_exports': 1,
},
'sources': [
'lib/main/webview_entry_point.cc',
],
}
# 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,
'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
},
'targets': [
{
# GN version: //android_webview/native:native
'target_name': 'webview_native',
'type': 'static_library',
'dependencies': [
'../../base/base.gyp:base_static',
'../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../../cc/cc.gyp:cc',
'../../components/components.gyp:autofill_content_browser',
'../../components/components.gyp:web_contents_delegate_android',
'../../components/components_strings.gyp:components_strings',
'../../content/content.gyp:content_common',
'../../media/media.gyp:player_android',
'../../net/net.gyp:net',
'../../skia/skia.gyp:skia',
'../../storage/storage_browser.gyp:storage',
'../../storage/storage_common.gyp:storage_common',
'../../ui/base/ui_base.gyp:ui_base',
'../../ui/gfx/gfx.gyp:gfx',
'../../ui/gfx/gfx.gyp:gfx_geometry',
'../../third_party/boringssl/boringssl.gyp:boringssl',
'android_webview_native_jni',
],
'include_dirs': [
'../..',
'../../skia/config',
'../../third_party/protobuf/src',
'<(protoc_out_dir)',
],
'sources': [
'android_protocol_handler.cc',
'android_protocol_handler.h',
'android_webview_jni_registrar.cc',
'android_webview_jni_registrar.h',
'aw_autofill_client.cc',
'aw_autofill_client.h',
'aw_browser_dependency_factory.cc',
'aw_browser_dependency_factory.h',
'aw_contents.cc',
'aw_contents.h',
'aw_contents_background_thread_client.cc',
'aw_contents_background_thread_client.h',
'aw_contents_client_bridge.cc',
'aw_contents_client_bridge.h',
'aw_contents_io_thread_client_impl.cc',
'aw_contents_io_thread_client_impl.h',
'aw_contents_lifecycle_notifier.cc',
'aw_contents_lifecycle_notifier.h',
'aw_contents_statics.cc',
'aw_contents_statics.h',
'aw_debug.cc',
'aw_debug.h',
'aw_devtools_server.cc',
'aw_devtools_server.h',
'aw_form_database.cc',
'aw_form_database.h',
'aw_gl_functor.cc',
'aw_gl_functor.h',
'aw_http_auth_handler.cc',
'aw_http_auth_handler.h',
'aw_locale_manager_impl.cc',
'aw_locale_manager_impl.h',
'aw_media_url_interceptor.cc',
'aw_media_url_interceptor.h',
'aw_message_port_service_impl.cc',
'aw_message_port_service_impl.h',
'aw_metrics_switch.cc',
'aw_metrics_switch.h',
'aw_pdf_exporter.cc',
'aw_pdf_exporter.h',
'aw_picture.cc',
'aw_picture.h',
'aw_quota_manager_bridge_impl.cc',
'aw_quota_manager_bridge_impl.h',
'aw_resource.cc',
'aw_settings.cc',
'aw_settings.h',
'aw_web_contents_delegate.cc',
'aw_web_contents_delegate.h',
'aw_web_contents_view_delegate.cc',
'aw_web_contents_view_delegate.h',
'aw_web_preferences_populater_impl.cc',
'aw_web_preferences_populater_impl.h',
'aw_web_resource_response_impl.cc',
'aw_web_resource_response_impl.h',
'cookie_manager.cc',
'cookie_manager.h',
'input_stream_impl.cc',
'input_stream_impl.h',
'java_browser_view_renderer_helper.cc',
'java_browser_view_renderer_helper.h',
'net_init_native_callback.cc',
'permission/aw_permission_request.cc',
'permission/aw_permission_request.h',
'permission/aw_permission_request_delegate.cc',
'permission/aw_permission_request_delegate.h',
'permission/media_access_permission_request.cc',
'permission/media_access_permission_request.h',
'permission/permission_request_handler.cc',
'permission/permission_request_handler.h',
'permission/permission_request_handler_client.cc',
'permission/permission_request_handler_client.h',
'permission/simple_permission_request.cc',
'permission/simple_permission_request.h',
'state_serializer.cc',
'state_serializer.h',
'token_binding_manager_bridge.cc',
'token_binding_manager_bridge.h',
],
'conditions': [
['video_hole==1', {
'dependencies': [
'../../components/components.gyp:external_video_surface',
],
}],
],
},
{
# GN version: //android_webview/native:cancellation_signal_android_jar_jni_headers'
'target_name': 'cancellation_signal_android_jar_jni_headers',
'type': 'none',
'variables': {
'jni_gen_package': 'android_webview',
'input_java_class': 'android/os/CancellationSignal.class',
},
'includes': [ '../../build/jar_file_jni_generator.gypi' ],
},
{
# GN version: //android_webview/native:native_jni
'target_name': 'android_webview_native_jni',
'type': 'none',
'sources': [
'../java/src/org/chromium/android_webview/AndroidProtocolHandler.java',
'../java/src/org/chromium/android_webview/AwAutofillClient.java',
'../java/src/org/chromium/android_webview/AwContents.java',
'../java/src/org/chromium/android_webview/AwContentsBackgroundThreadClient.java',
'../java/src/org/chromium/android_webview/AwContentsClientBridge.java',
'../java/src/org/chromium/android_webview/AwContentsIoThreadClient.java',
'../java/src/org/chromium/android_webview/AwContentsLifecycleNotifier.java',
'../java/src/org/chromium/android_webview/AwContentsStatics.java',
'../java/src/org/chromium/android_webview/AwCookieManager.java',
'../java/src/org/chromium/android_webview/AwDebug.java',
'../java/src/org/chromium/android_webview/AwDevToolsServer.java',
'../java/src/org/chromium/android_webview/AwFormDatabase.java',
'../java/src/org/chromium/android_webview/AwGLFunctor.java',
'../java/src/org/chromium/android_webview/AwHttpAuthHandler.java',
'../java/src/org/chromium/android_webview/AwMessagePortService.java',
'../java/src/org/chromium/android_webview/AwMetricsServiceClient.java',
'../java/src/org/chromium/android_webview/AwPdfExporter.java',
'../java/src/org/chromium/android_webview/AwPicture.java',
'../java/src/org/chromium/android_webview/AwQuotaManagerBridge.java',
'../java/src/org/chromium/android_webview/AwResource.java',
'../java/src/org/chromium/android_webview/AwSettings.java',
'../java/src/org/chromium/android_webview/AwTokenBindingManager.java',
'../java/src/org/chromium/android_webview/AwWebContentsDelegate.java',
'../java/src/org/chromium/android_webview/AwWebResourceResponse.java',
'../java/src/org/chromium/android_webview/InputStreamUtil.java',
'../java/src/org/chromium/android_webview/JavaBrowserViewRendererHelper.java',
'../java/src/org/chromium/android_webview/permission/AwPermissionRequest.java',
],
'variables': {
'jni_gen_package': 'android_webview',
},
'includes': [ '../../build/jni_generator.gypi' ],
'dependencies': [
'cancellation_signal_android_jar_jni_headers',
],
},
# GN version: //android_webview/native:aw_permission_request_resource'
{
'target_name': 'android_webview_aw_permission_request_resource',
'type': 'none',
'variables': {
'source_file': 'permission/aw_permission_request.h',
},
'includes': [ '../../build/android/java_cpp_enum.gypi' ],
},
],
}
{
'variables': {
'snapshot_additional_input_paths': [],
'snapshot_copy_files': [],
'conditions': [
['target_arch=="arm" or target_arch=="ia32" or target_arch=="mipsel"', {
'snapshot_additional_input_paths': [
'<(asset_location)/natives_blob_32.bin',
'<(asset_location)/snapshot_blob_32.bin',
],
'snapshot_copy_files': [
'<(PRODUCT_DIR)/natives_blob_32.bin',
'<(PRODUCT_DIR)/snapshot_blob_32.bin',
],
}],
['target_arch=="arm64" or target_arch=="x64" or target_arch=="mips64el"', {
'snapshot_additional_input_paths': [
'<(asset_location)/natives_blob_64.bin',
'<(asset_location)/snapshot_blob_64.bin',
],
'snapshot_copy_files': [
'<(PRODUCT_DIR)/natives_blob_64.bin',
'<(PRODUCT_DIR)/snapshot_blob_64.bin',
],
}],
],
},
}
This diff is collapsed.
# 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': [
# GYP: //base/android/jni_generator:jni_generator_tests
{
'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)',
],
},
],
},
# GYP: //base/android/jni_generator:jni_sample_header
{
'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' ],
},
# GYP: //base/android/jni_generator:jni_sample_java
{
'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' ],
},
# GYP: //base/android/jni_generator:jni_generator_tests
{
'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',
],
},
],
}
# 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',
},
},
},
],
}],
],
}
# 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': 'libevent',
'product_name': 'event',
'type': 'static_library',
'toolsets': ['host', 'target'],
'sources': [
'buffer.c',
'evbuffer.c',
'evdns.c',
'event.c',
'event_tagging.c',
'evrpc.c',
'evutil.c',
'http.c',
'log.c',
'poll.c',
'select.c',
'signal.c',
'strlcpy.c',
],
'defines': [
'HAVE_CONFIG_H',
],
'include_dirs': [
'../../..',
],
'conditions': [
# libevent has platform-specific implementation files. Since its
# native build uses autoconf, platform-specific config.h files are
# provided and live in platform-specific directories.
[ 'OS == "linux" or (OS == "android" and _toolset == "host")', {
'sources': [ 'epoll.c' ],
'include_dirs': [ 'linux' ],
'link_settings': {
'libraries': [
# We need rt for clock_gettime().
# TODO(port) Maybe on FreeBSD as well?
'-lrt',
],
},
}],
[ 'OS == "android" and _toolset == "target"', {
# On android, clock_gettime() is in libc.so, so no need to link librt.
'sources': [ 'epoll.c' ],
'include_dirs': [ 'android' ],
}],
[ 'OS == "mac" or OS == "ios" or os_bsd==1', {
'sources': [ 'kqueue.c' ],
'include_dirs': [ 'mac' ]
}],
[ 'OS == "solaris"', {
'sources': [ 'devpoll.c', 'evport.c' ],
'include_dirs': [ 'solaris' ]
}],
],
},
],
}
# Copyright 2014 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': [
'../../../build/common_untrusted.gypi',
],
'conditions': [
['disable_nacl==0 and disable_nacl_untrusted==0', {
'targets': [
{
'target_name': 'event_nacl_nonsfi',
'type': 'none',
'sources': [
'buffer.c',
'evbuffer.c',
'event.c',
'evutil.c',
'log.c',
'poll.c',
'strlcpy.c',
'nacl_nonsfi/config.h',
'nacl_nonsfi/event-config.h',
'nacl_nonsfi/random.c',
'nacl_nonsfi/signal_stub.c',
],
'defines': [
'HAVE_CONFIG_H',
],
'include_dirs': [
'nacl_nonsfi',
],
'variables': {
'nacl_untrusted_build': 1,
'nlib_target': 'libevent_nacl_nonsfi.a',
'build_glibc': 0,
'build_newlib': 0,
'build_irt': 0,
'build_pnacl_newlib': 0,
'build_nonsfi_helper': 1,
},
},
],
}],
],
}
# 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)',
}],
}],
],
}
]
}
# 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/blame_context.cc',
'trace_event/blame_context.h',
'trace_event/common/trace_event_common.h',
'trace_event/heap_profiler.h',
'trace_event/heap_profiler_allocation_context.cc',
'trace_event/heap_profiler_allocation_context.h',
'trace_event/heap_profiler_allocation_context_tracker.cc',
'trace_event/heap_profiler_allocation_context_tracker.h',
'trace_event/heap_profiler_allocation_register.cc',
'trace_event/heap_profiler_allocation_register_posix.cc',
'trace_event/heap_profiler_allocation_register_win.cc',
'trace_event/heap_profiler_allocation_register.h',
'trace_event/heap_profiler_heap_dump_writer.cc',
'trace_event/heap_profiler_heap_dump_writer.h',
'trace_event/heap_profiler_stack_frame_deduplicator.cc',
'trace_event/heap_profiler_stack_frame_deduplicator.h',
'trace_event/heap_profiler_type_name_deduplicator.cc',
'trace_event/heap_profiler_type_name_deduplicator.h',
'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.cc',
'trace_event/memory_dump_request_args.h',
'trace_event/memory_dump_session_state.cc',
'trace_event/memory_dump_session_state.h',
'trace_event/memory_infra_background_whitelist.cc',
'trace_event/memory_infra_background_whitelist.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_totals.cc',
'trace_event/process_memory_totals.h',
'trace_event/trace_buffer.cc',
'trace_event/trace_buffer.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_memory_overhead.cc',
'trace_event/trace_event_memory_overhead.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_log.cc',
'trace_event/trace_log.h',
'trace_event/trace_log_constants.cc',
'trace_event/trace_sampling_thread.cc',
'trace_event/trace_sampling_thread.h',
'trace_event/tracing_agent.cc',
'trace_event/tracing_agent.h',
'trace_event/winheap_dump_provider_win.cc',
'trace_event/winheap_dump_provider_win.h',
],
'trace_event_test_sources' : [
'trace_event/blame_context_unittest.cc',
'trace_event/heap_profiler_allocation_context_tracker_unittest.cc',
'trace_event/heap_profiler_allocation_register_unittest.cc',
'trace_event/heap_profiler_heap_dump_writer_unittest.cc',
'trace_event/heap_profiler_stack_frame_deduplicator_unittest.cc',
'trace_event/heap_profiler_type_name_deduplicator_unittest.cc',
'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/trace_config_memory_test_util.h',
'trace_event/trace_config_unittest.cc',
'trace_event/trace_event_argument_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/winheap_dump_provider_win_unittest.cc',
],
'conditions': [
['OS == "linux" or OS=="android" or OS=="mac" or OS=="ios"', {
'trace_event_sources': [
'trace_event/malloc_dump_provider.cc',
'trace_event/malloc_dump_provider.h',
],
}],
['OS == "android"', {
'trace_event_test_sources' : [
'trace_event/trace_event_android_unittest.cc',
],
}],
],
},
}
# Copyright (c) 2013 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': 'onc_validator',
'type': 'executable',
'dependencies': [
'../base/base.gyp:base',
'chromeos.gyp:chromeos',
],
'sources': [
'tools/onc_validator/onc_validator.cc',
],
},
],
}
# 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': {
'input_method_out_dir':
'<(SHARED_INTERMEDIATE_DIR)/chromeos/ime',
},
'targets': [
{
'target_name': 'gencode',
'type': 'none',
'actions': [
{
'inputs': [
'input_methods.txt',
'gen_input_methods.py',
],
'outputs': [
'<(input_method_out_dir)/input_methods.h',
],
'action_name': 'gen_input_methods',
'action': [
'python',
'gen_input_methods.py',
'input_methods.txt',
'<(input_method_out_dir)/input_methods.h',
],
'message': 'Generating input_methods.h',
},
],
'direct_dependent_settings': {
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)',
],
},
},
]
}
# Copyright 2016 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: //components/physical_web/data_source
'target_name': 'physical_web_data_source',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
],
'sources': [
# Note: sources list duplicated in GN build.
'physical_web/data_source/physical_web_data_source.h',
],
},
{
# GN version: //components/physical_web/webui
'target_name': 'physical_web_ui',
'type': 'static_library',
'sources': [
# Note: sources list duplicated in GN build.
'physical_web/webui/physical_web_ui_constants.cc',
'physical_web/webui/physical_web_ui_constants.h',
],
},
],
}
This source diff could not be displayed because it is too large. You can view the blob instead.
# 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.
{
'variables': {
'chromium_code': 1,
'courgette_lib_sources': [
'adjustment_method.cc',
'adjustment_method_2.cc',
'adjustment_method.h',
'assembly_program.cc',
'assembly_program.h',
'consecutive_range_visitor.h',
'courgette.h',
'crc.cc',
'crc.h',
'difference_estimator.cc',
'difference_estimator.h',
'disassembler.cc',
'disassembler.h',
'disassembler_elf_32.cc',
'disassembler_elf_32.h',
'disassembler_elf_32_arm.cc',
'disassembler_elf_32_arm.h',
'disassembler_elf_32_x86.cc',
'disassembler_elf_32_x86.h',
'disassembler_win32.cc',
'disassembler_win32.h',
'disassembler_win32_x86.cc',
'disassembler_win32_x86.h',
'disassembler_win32_x64.cc',
'disassembler_win32_x64.h',
'encoded_program.cc',
'encoded_program.h',
'ensemble.cc',
'ensemble.h',
'ensemble_apply.cc',
'ensemble_create.cc',
'image_utils.h',
'label_manager.cc',
'label_manager.h',
'memory_allocator.cc',
'memory_allocator.h',
'patch_generator_x86_32.h',
'patcher_x86_32.h',
'program_detector.cc',
'program_detector.h',
'region.h',
'rel32_finder.cc',
'rel32_finder.h',
'rel32_finder_x64.cc',
'rel32_finder_x64.h',
'rel32_finder_x86.cc',
'rel32_finder_x86.h',
'simple_delta.cc',
'simple_delta.h',
'streams.cc',
'streams.h',
'third_party/bsdiff/bsdiff.h',
'third_party/bsdiff/bsdiff_apply.cc',
'third_party/bsdiff/bsdiff_create.cc',
'third_party/bsdiff/bsdiff_search.h',
'third_party/bsdiff/paged_array.h',
'third_party/divsufsort/divsufsort.cc',
'third_party/divsufsort/divsufsort.h',
'third_party/divsufsort/divsufsort_private.h',
'third_party/divsufsort/sssort.cc',
'third_party/divsufsort/trsort.cc',
'types_elf.h',
'types_win_pe.h',
],
},
'targets': [
{
'target_name': 'courgette_lib',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
'../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk',
],
'sources': [
'<@(courgette_lib_sources)'
],
},
{
'target_name': 'courgette',
'type': 'executable',
'sources': [
'courgette_tool.cc',
],
'dependencies': [
'courgette_lib',
'../base/base.gyp:base',
],
'msvs_settings': {
'VCLinkerTool': {
'LargeAddressAware': 2,
},
},
},
{
'target_name': 'courgette_minimal_tool',
'type': 'executable',
'sources': [
'courgette_minimal_tool.cc',
],
'dependencies': [
'courgette_lib',
'../base/base.gyp:base',
],
},
{
'target_name': 'courgette_unittests',
'type': 'executable',
'sources': [
'adjustment_method_unittest.cc',
'bsdiff_memory_unittest.cc',
'base_test_unittest.cc',
'base_test_unittest.h',
'consecutive_range_visitor_unittest.cc',
'difference_estimator_unittest.cc',
'disassembler_elf_32_x86_unittest.cc',
'disassembler_win32_x86_unittest.cc',
'disassembler_win32_x64_unittest.cc',
'encoded_program_unittest.cc',
'encode_decode_unittest.cc',
'ensemble_unittest.cc',
'image_utils_unittest.cc',
'label_manager_unittest.cc',
'memory_allocator_unittest.cc',
'program_detector_unittest.cc',
'rel32_finder_unittest.cc',
'streams_unittest.cc',
'typedrva_unittest.cc',
'versioning_unittest.cc',
'third_party/bsdiff/bsdiff_search_unittest.cc',
'third_party/bsdiff/paged_array_unittest.cc',
'third_party/divsufsort/divsufsort_unittest.cc',
],
'dependencies': [
'courgette_lib',
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../base/base.gyp:run_all_unittests',
'../base/base.gyp:test_support_base',
'../testing/gtest.gyp:gtest',
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [4267, ],
},
{
'target_name': 'courgette_fuzz',
'type': 'executable',
'sources': [
'base_test_unittest.cc',
'base_test_unittest.h',
'encoded_program_fuzz_unittest.cc',
],
'dependencies': [
'courgette_lib',
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../base/base.gyp:test_support_base',
'../testing/gtest.gyp:gtest',
],
},
],
'conditions': [
['OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'courgette_lib64',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base_win64',
'../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk64',
],
'sources': [
'<@(courgette_lib_sources)',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
},
{
'target_name': 'courgette64',
'type': 'executable',
'sources': [
'courgette_tool.cc',
],
'dependencies': [
'courgette_lib64',
'../base/base.gyp:base_win64',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
},
],
}],
# The build infrastructure needs courgette to be named courgette64.
['OS=="win" and target_arch=="x64"', {
'targets': [
{
'target_name': 'courgette64',
'type': 'none',
'dependencies': [
'courgette',
],
'actions': [{
'action_name': 'courgette64',
'inputs': [
'<(PRODUCT_DIR)/courgette.exe',
],
'outputs': [
'<(PRODUCT_DIR)/courgette64.exe',
],
'action': [
'python',
'../build/cp.py',
'<@(_inputs)',
'<@(_outputs)'
],
}],
},
],
}],
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'courgette_unittests_run',
'type': 'none',
'dependencies': [
'courgette_unittests',
],
'includes': [
'../build/isolate.gypi',
],
'sources': [
'courgette_unittests.isolate',
],
},
],
}],
],
}
# Copyright 2014 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,
},
'targets': [
{
# GN version: //device/battery:mojo_bindings
'target_name': 'device_battery_mojo_bindings',
'type': 'static_library',
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
'sources': [
'battery_monitor.mojom',
'battery_status.mojom',
],
'variables': {
'use_new_wrapper_types': 'false',
},
},
{
# GN version: //device/battery:mojo_bindings_blink
'target_name': 'device_battery_mojo_bindings_for_blink',
'type': 'static_library',
'variables': {
'for_blink': 'true',
'use_new_wrapper_types': 'false',
},
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
'sources': [
'battery_monitor.mojom',
'battery_status.mojom',
],
},
{
# This is needed only for a build within Android tree. TODO(ppi): remove
# when Android tree build is deprecated.
'target_name': 'device_battery_mojo_bindings_for_webview',
'type': 'none',
'dependencies': [
'device_battery_mojo_bindings',
],
'actions': [
{
# Dummy action that triggers the bindings generation and explicitly
# declares the java outputs, so that they are discoverable to make.
'action_name': 'device_battery_mojo_bindings_dummy_action',
'inputs': [
'<(SHARED_INTERMEDIATE_DIR)/device/battery/battery_monitor.mojom.h',
'<(SHARED_INTERMEDIATE_DIR)/device/battery/battery_status.mojom.h',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/src/org/chromium/mojom/device/BatteryMonitor.java',
'<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/src/org/chromium/mojom/device/BatteryMonitor_Internal.java',
'<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/src/org/chromium/mojom/device/BatteryStatusObserver.java',
'<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/src/org/chromium/mojom/device/BatteryStatusObserver_Internal.java',
'<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/src/org/chromium/mojom/device/BatteryStatus.java',
],
'action': ['touch', '<@(_outputs)'],
},
],
'hard_dependency': 1,
},
],
'conditions': [
['OS == "android"', {
'targets': [
{
'target_name': 'device_battery_java',
'type': 'none',
'dependencies': [
'../../base/base.gyp:base',
'../../mojo/mojo_public.gyp:mojo_bindings_java',
'device_battery_mojo_bindings',
],
'variables': {
'java_in_dir': '../../device/battery/android/java',
},
'includes': [ '../../build/java.gypi' ],
},
{
'target_name': 'device_battery_javatests',
'type': 'none',
'variables': {
'java_in_dir': '../../device/battery/android/javatests',
},
'dependencies': [
'../../base/base.gyp:base',
'../../base/base.gyp:base_java_test_support',
'device_battery_java',
],
'includes': [ '../../build/java.gypi' ],
},
],
}, { # OS != "android"
# On android, BatteryManager mojo service is implemented directly in Java.
'targets': [
{
# GN version: //device/battery
'target_name': 'device_battery',
'type': '<(component)',
'dependencies': [
'../../base/base.gyp:base',
'../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../../mojo/mojo_edk.gyp:mojo_system_impl',
'../../mojo/mojo_public.gyp:mojo_cpp_bindings',
'device_battery_mojo_bindings',
],
'defines': [
'DEVICE_BATTERY_IMPLEMENTATION',
],
'sources': [
'battery_monitor_impl.cc',
'battery_monitor_impl.h',
'battery_status_manager_chromeos.cc',
'battery_status_manager_default.cc',
'battery_status_manager_linux-inl.h',
'battery_status_manager_linux.cc',
'battery_status_manager_linux.h',
'battery_status_manager_mac.cc',
'battery_status_manager_win.cc',
'battery_status_manager_win.h',
'battery_status_manager.h',
'battery_status_service.cc',
'battery_status_service.h',
],
'conditions': [
['chromeos==1', {
'dependencies': [
'../../build/linux/system.gyp:dbus',
'../../chromeos/chromeos.gyp:chromeos',
'../../chromeos/chromeos.gyp:power_manager_proto',
],
'sources!': [
'battery_status_manager_default.cc',
'battery_status_manager_linux.cc',
],
}],
['OS == "linux" and use_dbus==1', {
'sources!': [
'battery_status_manager_default.cc',
],
'dependencies': [
'../../build/linux/system.gyp:dbus',
'../../dbus/dbus.gyp:dbus',
],
}, { # OS != "linux" or use_dbus==0
'sources!': [
'battery_status_manager_linux.cc',
],
}],
['OS == "mac"', {
'sources!': [
'battery_status_manager_default.cc',
],
}],
['OS == "win"', {
'sources!': [
'battery_status_manager_default.cc',
],
}],
],
},
],
}],
],
}
This diff is collapsed.
# Copyright 2013 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': 'bluetooth_strings',
'type': 'none',
'variables': {
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/device/bluetooth/strings',
},
'actions': [
{
'action_name': 'generate_bluetooth_strings',
'variables': {
'grit_grd_file': 'bluetooth_strings.grd',
},
'includes': [ '../../build/grit_action.gypi' ],
},
],
'includes': [ '../../build/grit_target.gypi' ],
},
],
}
# Copyright 2014 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,
},
'targets': [
{
'target_name': 'device_core',
'type': '<(component)',
'include_dirs': [
'../..',
],
'defines': [
'DEVICE_CORE_IMPLEMENTATION',
],
'sources': [
'device_client.cc',
'device_client.h',
'device_info_query_win.cc',
'device_info_query_win.h',
'device_monitor_win.cc',
'device_monitor_win.h',
],
'dependencies': [
'../../base/base.gyp:base',
],
'conditions': [
['use_udev==1', {
'dependencies': [
'../udev_linux/udev.gyp:udev_linux',
],
'sources': [
'device_monitor_linux.cc',
'device_monitor_linux.h',
],
}],
]
},
{
'target_name': 'device_core_mocks',
'type': 'static_library',
'include_dirs': [
'../..',
],
'dependencies': [
'../../testing/gmock.gyp:gmock',
'device_core',
],
'sources': [
'mock_device_client.cc',
'mock_device_client.h',
],
},
],
}
This diff is collapsed.
# Copyright 2016 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,
},
'targets': [
{
# GN version: //device/gamepad
'target_name': 'device_gamepad',
'type': '<(component)',
'dependencies': [
'../../base/base.gyp:base',
'../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
],
'defines': [
'DEVICE_GAMEPAD_IMPLEMENTATION',
],
'sources': [
# Note: file list duplicated in GN build.
'gamepad_consumer.cc',
'gamepad_consumer.h',
'gamepad_data_fetcher.cc',
'gamepad_data_fetcher.h',
'gamepad_data_fetcher_manager.cc',
'gamepad_data_fetcher_manager.h',
'gamepad_platform_data_fetcher.h',
'gamepad_platform_data_fetcher_android.cc',
'gamepad_platform_data_fetcher_android.h',
'gamepad_platform_data_fetcher_linux.cc',
'gamepad_platform_data_fetcher_linux.h',
'gamepad_platform_data_fetcher_mac.h',
'gamepad_platform_data_fetcher_mac.mm',
'gamepad_platform_data_fetcher_win.cc',
'gamepad_platform_data_fetcher_win.h',
'gamepad_provider.cc',
'gamepad_provider.h',
'gamepad_standard_mappings.cc',
'gamepad_standard_mappings.h',
'gamepad_standard_mappings_linux.cc',
'gamepad_standard_mappings_mac.mm',
'gamepad_standard_mappings_win.cc',
'gamepad_user_gesture.cc',
'gamepad_user_gesture.h',
'raw_input_data_fetcher_win.cc',
'raw_input_data_fetcher_win.h',
'xbox_data_fetcher_mac.h',
'xbox_data_fetcher_mac.mm',
],
'conditions': [
['OS=="win"', {
'msvs_disabled_warnings': [4267, ],
}],
['OS!="win" and OS!="mac" and OS!="android" and (OS!="linux" or use_udev==0)', {
'sources!': [
'gamepad_platform_data_fetcher_linux.cc',
],
}],
['use_udev == 1', {
'dependencies': [
'<(DEPTH)/device/udev_linux/udev.gyp:udev_linux',
],
}],
],
},
{
# GN version: //device/gamepad:test_helpers
'target_name': 'device_gamepad_test_helpers',
'type': 'static_library',
'dependencies': [
'../../base/base.gyp:base',
'device_gamepad',
],
'sources': [
# Note: file list duplicated in GN build.
'gamepad_test_helpers.cc',
'gamepad_test_helpers.h',
],
},
],
}
# Copyright 2016 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': {
# This turns on e.g. the filename-based detection of which platforms to
# include source files on (e.g. files ending in _mac.h or _mac.cc are only
# compiled on MacOSX).
'chromium_code': 1,
},
'targets': [
{
# GN version: //device/geolocation:device_geolocation
'target_name': 'device_geolocation',
'type': '<(component)',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/google_apis/google_apis.gyp:google_apis',
'<(DEPTH)/mojo/mojo_edk.gyp:mojo_system_impl',
'<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings',
# TODO(mcasas): move geolocation.mojom to public/interfaces.
'<(DEPTH)/third_party/WebKit/public/blink.gyp:mojo_bindings',
'<(DEPTH)/ui/gfx/gfx.gyp:gfx',
],
'defines': [
'DEVICE_GEOLOCATION_IMPLEMENTATION',
],
'include_dirs': [
'../..',
],
'sources': [
'access_token_store.h',
'android/geolocation_jni_registrar.cc',
'android/geolocation_jni_registrar.h',
'empty_wifi_data_provider.cc',
'empty_wifi_data_provider.h',
'geolocation_delegate.cc',
'geolocation_delegate.h',
'geolocation_export.h',
'geolocation_provider.h',
'geolocation_provider_impl.cc',
'geolocation_provider_impl.h',
'geolocation_service_context.h',
'geolocation_service_context.cc',
'geolocation_service_impl.cc',
'geolocation_service_impl.h',
'geoposition.cc',
'geoposition.h',
'location_api_adapter_android.cc',
'location_api_adapter_android.h',
'location_arbitrator.h',
'location_arbitrator_impl.cc',
'location_arbitrator_impl.h',
'location_provider.h',
'location_provider_android.cc',
'location_provider_android.h',
'location_provider_base.cc',
'location_provider_base.h',
'network_location_provider.cc',
'network_location_provider.h',
'network_location_request.cc',
'network_location_request.h',
'wifi_data.cc',
'wifi_data.h',
'wifi_data_provider.cc',
'wifi_data_provider.h',
'wifi_data_provider_chromeos.cc',
'wifi_data_provider_chromeos.h',
'wifi_data_provider_common.cc',
'wifi_data_provider_common.h',
'wifi_data_provider_common_win.cc',
'wifi_data_provider_common_win.h',
'wifi_data_provider_corewlan_mac.mm',
'wifi_data_provider_linux.cc',
'wifi_data_provider_linux.h',
'wifi_data_provider_mac.cc',
'wifi_data_provider_mac.h',
'wifi_data_provider_manager.cc',
'wifi_data_provider_manager.h',
'wifi_data_provider_win.cc',
'wifi_data_provider_win.h',
'wifi_polling_policy.h',
],
'conditions': [
['OS=="android"', {
'sources!': [
'network_location_provider.cc',
'network_location_provider.h',
'network_location_request.cc',
'network_location_request.h',
],
}],
# Dealing with *wifi_data_provider_*.cc is also a bit complicated given
# android, chromeos, linux and use_dbus.
['chromeos==1', {
'dependencies': [
'<(DEPTH)/chromeos/chromeos.gyp:chromeos',
],
'sources!': [
'wifi_data_provider_linux.cc'
],
}],
['OS=="linux"', {
'conditions': [
["use_dbus==1", {
'dependencies': [
'<(DEPTH)/build/linux/system.gyp:dbus',
'<(DEPTH)/dbus/dbus.gyp:dbus',
],
'sources!': [
'empty_wifi_data_provider.cc',
],
}, { # use_dbus==0
'geolocation_unittest_sources!': [
'wifi_data_provider_linux.cc',
],
}]
],
}],
['OS=="win"', {
# TODO(jschuh): http://crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
}],
['OS=="mac" or OS=="win"', {
'sources!': [
'empty_wifi_data_provider.cc',
'empty_wifi_data_provider.h',
],
}],
],
},
],
}
# Copyright 2013 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,
},
'targets': [
{
'target_name': 'device_hid',
'type': 'static_library',
'include_dirs': [
'../..',
],
'dependencies': [
'../../components/components.gyp:device_event_log_component',
'../../net/net.gyp:net',
'../core/core.gyp:device_core',
],
'sources': [
'hid_collection_info.cc',
'hid_collection_info.h',
'hid_connection.cc',
'hid_connection.h',
'hid_connection_linux.cc',
'hid_connection_linux.h',
'hid_connection_mac.cc',
'hid_connection_mac.h',
'hid_connection_win.cc',
'hid_connection_win.h',
'hid_device_filter.cc',
'hid_device_filter.h',
'hid_device_info.cc',
'hid_device_info.h',
'hid_device_info_linux.cc',
'hid_device_info_linux.h',
'hid_report_descriptor.cc',
'hid_report_descriptor.h',
'hid_report_descriptor_item.cc',
'hid_report_descriptor_item.h',
'hid_service.cc',
'hid_service.h',
'hid_service_mac.cc',
'hid_service_mac.h',
'hid_service_win.cc',
'hid_service_win.h',
'hid_usage_and_page.cc',
'hid_usage_and_page.h',
],
'conditions': [
['OS=="linux" and use_udev==1', {
'dependencies': [
'../udev_linux/udev.gyp:udev_linux',
],
'sources': [
'fake_input_service_linux.cc',
'fake_input_service_linux.h',
'hid_service_linux.cc',
'hid_service_linux.h',
'input_service_linux.cc',
'input_service_linux.h',
],
}],
['OS=="win"', {
'all_dependent_settings': {
'msvs_settings': {
'VCLinkerTool': {
'AdditionalDependencies': [
'hid.lib',
'setupapi.lib',
],
},
},
},
'msvs_settings': {
'VCLinkerTool': {
'AdditionalDependencies': [
'hid.lib',
'setupapi.lib',
],
},
},
}],
],
},
{
'target_name': 'device_hid_mocks',
'type': 'static_library',
'include_dirs': [
'../..',
],
'dependencies': [
'../../testing/gmock.gyp:gmock',
'device_hid',
],
'sources': [
'mock_hid_service.cc',
'mock_hid_service.h',
],
},
],
}
# Copyright 2013 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,
},
'targets': [
{
# Protobuf compiler / generator for the MtpFileEntry and
# MtpFileEntries protocol buffers.
# GN version: //device/media_transfer_protocol:mtp_file_entry_proto
'target_name': 'mtp_file_entry_proto',
'type': 'static_library',
'sources': [
'../../third_party/cros_system_api/dbus/mtp_file_entry.proto',
],
'variables': {
'proto_in_dir': '../../third_party/cros_system_api/dbus',
'proto_out_dir': 'device/media_transfer_protocol',
},
'includes': ['../../build/protoc.gypi'],
},
{
# Protobuf compiler / generator for the MtpStorageInfo protocol
# buffer.
# GN version: //device/media_transfer_protocol:mtp_storage_info_proto
'target_name': 'mtp_storage_info_proto',
'type': 'static_library',
'sources': [
'../../third_party/cros_system_api/dbus/mtp_storage_info.proto',
],
'variables': {
'proto_in_dir': '../../third_party/cros_system_api/dbus',
'proto_out_dir': 'device/media_transfer_protocol',
},
'includes': ['../../build/protoc.gypi'],
},
{
# GN version: //device/media_transfer_protocol
'target_name': 'device_media_transfer_protocol',
'type': 'static_library',
'dependencies': [
'../../build/linux/system.gyp:dbus',
'../../dbus/dbus.gyp:dbus',
'mtp_file_entry_proto',
'mtp_storage_info_proto',
],
'sources': [
'media_transfer_protocol_daemon_client.cc',
'media_transfer_protocol_daemon_client.h',
'media_transfer_protocol_manager.cc',
'media_transfer_protocol_manager.h',
],
},
],
}
# Copyright 2013 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,
'android_support_v13_target%':
'../../third_party/android_tools/android_tools.gyp:android_support_v13_javalib',
},
'targets': [
{
'target_name': 'device_nfc_mojo_bindings',
'type': 'static_library',
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
'sources': [
'nfc.mojom',
],
'variables': {
'use_new_wrapper_types': 'false',
},
},
{
'target_name': 'device_nfc_mojo_bindings_for_blink',
'type': 'static_library',
'variables': {
'for_blink': 'true',
'use_new_wrapper_types': 'false',
},
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
'sources': [
'nfc.mojom',
],
},
],
'conditions': [
['OS == "android"', {
'targets': [
{
'target_name': 'device_nfc_java',
'type': 'none',
'dependencies': [
'<(android_support_v13_target)',
'../../base/base.gyp:base',
'../../mojo/mojo_public.gyp:mojo_bindings_java',
'device_nfc_mojo_bindings',
],
'variables': {
'java_in_dir': '../../device/nfc/android/java',
},
'includes': [ '../../build/java.gypi' ],
},
],
}, { # OS != "android"
}],
],
}
# Copyright 2016 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,
},
'targets': [
{
# GN version: //device/power_save_blocker
'target_name': 'device_power_save_blocker',
'type': '<(component)',
'dependencies': [
'../../base/base.gyp:base',
],
'defines': [
'DEVICE_POWER_SAVE_BLOCKER_IMPLEMENTATION',
],
'sources': [
# Note: file list duplicated in GN build, other than Android, as gyp
# for Android isn't supported.
'power_save_blocker.h',
'power_save_blocker_chromeos.cc',
'power_save_blocker_mac.cc',
'power_save_blocker_ozone.cc',
'power_save_blocker_win.cc',
'power_save_blocker_x11.cc',
],
'conditions': [
['use_x11==1 and chromeos==0', {
'dependencies': [
'../../build/linux/system.gyp:xext',
'../../build/linux/system.gyp:xscrnsaver',
'../../ui/gfx/x/gfx_x11.gyp:gfx_x11',
],
}],
['use_dbus==1', {
'dependencies': [
'../../build/linux/system.gyp:dbus',
'../../dbus/dbus.gyp:dbus',
],
}],
['chromeos==1', {
'sources!': [
'power_save_blocker_ozone.cc',
'power_save_blocker_x11.cc',
],
'dependencies': [
'../../chromeos/chromeos.gyp:chromeos',
'../../chromeos/chromeos.gyp:power_manager_proto',
],
}],
['OS == "mac"', {
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
'$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
],
},
}],
],
},
],
}
# Copyright 2016 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,
'mojom_files': [
'public/interfaces/light.mojom',
'public/interfaces/motion.mojom',
'public/interfaces/orientation.mojom',
],
},
'targets': [
{
'target_name': 'device_sensors_mojo_bindings',
'type': 'static_library',
'sources': [ '<@(mojom_files)' ],
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
'variables': {
'use_new_wrapper_types': 'false',
},
},
{
'target_name': 'device_sensors_mojo_bindings_for_blink',
'type': 'static_library',
'sources': [ '<@(mojom_files)' ],
'variables': {
'for_blink': 'true',
'use_new_wrapper_types': 'false',
},
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
},
],
}
# Copyright 2014 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,
},
'targets': [
{
# GN version: //device/serial:serial_mojo
'target_name': 'device_serial_mojo',
# The type of this target must be none. This is so that resources can
# depend upon this target for generating the js bindings files. Any
# generated cpp files must be listed explicitly in device_serial
'type': 'none',
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
'sources': [
'data_stream.mojom',
'data_stream_serialization.mojom',
'serial.mojom',
'serial_serialization.mojom',
],
'variables': {
'use_new_wrapper_types': 'false',
},
},
{
# GN version: //device/serial
'target_name': 'device_serial',
'type': 'static_library',
'conditions': [
['chromeos==1', {
'dependencies': [
'../../chromeos/chromeos.gyp:chromeos',
'../../dbus/dbus.gyp:dbus',
],
}],
['use_udev == 1', {
'dependencies': [
'../udev_linux/udev.gyp:udev_linux',
],
}, {
'sources!': [
'serial_device_enumerator_linux.cc',
'serial_device_enumerator_linux.h',
],
}],
['OS=="win"', {
'link_settings': {
'msvs_settings': {
'VCLinkerTool': {
'DelayLoadDLLs': [
'setupapi.dll',
],
'AdditionalDependencies': [
'setupapi.lib',
],
},
},
},
'all_dependent_settings': {
'msvs_settings': {
'VCLinkerTool': {
'DelayLoadDLLs': [
'setupapi.dll',
],
'AdditionalDependencies': [
'setupapi.lib',
],
},
},
},
}],
],
'dependencies': [
'device_serial_mojo',
'../../mojo/mojo_public.gyp:mojo_cpp_bindings',
'../../net/net.gyp:net',
'../../third_party/re2/re2.gyp:re2',
'../core/core.gyp:device_core',
],
'export_dependent_settings': [
'device_serial_mojo',
'../../mojo/mojo_public.gyp:mojo_cpp_bindings',
],
'sources': [
'<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream.mojom.cc',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream.mojom.h',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream_serialization.mojom.cc',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream_serialization.mojom.h',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/serial.mojom.cc',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/serial.mojom.h',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/serial_serialization.mojom.cc',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/serial_serialization.mojom.h',
'buffer.cc',
'buffer.h',
'data_receiver.cc',
'data_receiver.h',
'data_sender.cc',
'data_sender.h',
'data_sink_receiver.cc',
'data_sink_receiver.h',
'data_source_sender.cc',
'data_source_sender.h',
'serial_connection.cc',
'serial_connection.h',
'serial_connection_factory.cc',
'serial_connection_factory.h',
'serial_device_enumerator.cc',
'serial_device_enumerator.h',
'serial_device_enumerator_linux.cc',
'serial_device_enumerator_linux.h',
'serial_device_enumerator_mac.cc',
'serial_device_enumerator_mac.h',
'serial_device_enumerator_win.cc',
'serial_device_enumerator_win.h',
'serial_io_handler.cc',
'serial_io_handler.h',
'serial_io_handler_posix.cc',
'serial_io_handler_posix.h',
'serial_io_handler_win.cc',
'serial_io_handler_win.h',
'serial_service_impl.cc',
'serial_service_impl.h',
],
},
{
# GN version: //device/serial:test_support
'target_name': 'device_serial_test_util',
'type': 'static_library',
'dependencies': [
'device_serial',
'device_serial_mojo',
],
'sources': [
'test_serial_io_handler.cc',
'test_serial_io_handler.h',
],
},
],
}
# Copyright 2014 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,
},
'conditions': [
['use_udev==1', {
'targets': [
{
'target_name': 'udev_linux',
'type': 'static_library',
'dependencies': [
'../../base/base.gyp:base',
'../../build/linux/system.gyp:udev',
],
'include_dirs': [
'../..',
],
'sources': [
'scoped_udev.h',
'udev.cc',
'udev.h',
'udev0_loader.cc',
'udev0_loader.h',
'udev1_loader.cc',
'udev1_loader.h',
'udev_linux.cc',
'udev_linux.h',
'udev_loader.cc',
'udev_loader.h',
],
},
],
}],
]
}
# Copyright 2013 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,
'mojom_files': [
'public/interfaces/chooser_service.mojom',
'public/interfaces/device.mojom',
'public/interfaces/device_manager.mojom',
],
},
'targets': [
{
'target_name': 'device_usb',
'type': 'static_library',
'dependencies': [
'device_usb_mojo_bindings',
'../../components/components.gyp:device_event_log_component',
'../../net/net.gyp:net',
'../core/core.gyp:device_core',
],
'include_dirs': [
'../..',
],
'sources': [
'android/usb_jni_registrar.cc',
'android/usb_jni_registrar.h',
'mojo/device_impl.cc',
'mojo/device_impl.h',
'mojo/device_manager_impl.cc',
'mojo/device_manager_impl.h',
'mojo/type_converters.cc',
'mojo/type_converters.h',
'mojo/permission_provider.cc',
'mojo/permission_provider.h',
'usb_configuration_android.cc',
'usb_configuration_android.h',
'usb_descriptors.cc',
'usb_descriptors.h',
'usb_device_linux.cc',
'usb_device_linux.h',
'usb_device.cc',
'usb_device.h',
'usb_device_android.cc',
'usb_device_android.h',
'usb_device_filter.cc',
'usb_device_filter.h',
'usb_device_handle.cc',
'usb_device_handle.h',
'usb_endpoint_android.cc',
'usb_endpoint_android.h',
'usb_ids.cc',
'usb_ids.h',
'usb_interface_android.cc',
'usb_interface_android.h',
'usb_service.cc',
'usb_service.h',
'usb_service_android.cc',
'usb_service_android.h',
'webusb_descriptors.cc',
'webusb_descriptors.h',
],
'actions': [
{
'action_name': 'generate_usb_ids',
'variables': {
'usb_ids_path%': '../../third_party/usb_ids/usb.ids',
'usb_ids_py_path': 'tools/usb_ids.py',
},
'inputs': [
'<(usb_ids_path)',
'<(usb_ids_py_path)',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc',
],
'action': [
'python',
'<(usb_ids_py_path)',
'-i', '<(usb_ids_path)',
'-o', '<@(_outputs)',
],
'process_outputs_as_sources': 1,
},
],
'conditions': [
['use_udev == 1', {
'sources': [
'usb_service_linux.cc',
'usb_service_linux.h',
],
'dependencies': [
'../udev_linux/udev.gyp:udev_linux',
],
}],
['OS=="android"', {
'dependencies': [
'device_usb_java',
'device_usb_jni_headers',
],
}],
['OS=="win" or OS=="mac"', {
'dependencies': [
'../../third_party/libusb/libusb.gyp:libusb',
],
'sources': [
'usb_context.cc',
'usb_context.h',
'usb_device_handle_impl.cc',
'usb_device_handle_impl.h',
'usb_device_impl.cc',
'usb_device_impl.h',
'usb_error.cc',
'usb_error.h',
'usb_service_impl.cc',
'usb_service_impl.h',
],
}],
['OS=="linux" or OS=="android"', {
'sources': [
'usb_device_handle_usbfs.cc',
'usb_device_handle_usbfs.h',
],
}],
['chromeos==1', {
'dependencies': [
'../../chromeos/chromeos.gyp:chromeos',
],
}]
]
},
{
'target_name': 'device_usb_mojo_bindings',
'type': 'static_library',
'sources': [ '<@(mojom_files)' ],
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
'variables': {
'use_new_wrapper_types': 'false',
},
},
{
'target_name': 'device_usb_mojo_bindings_for_blink',
'type': 'static_library',
'sources': [ '<@(mojom_files)' ],
'variables': {
'for_blink': 'true',
'use_new_wrapper_types': 'false',
},
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
},
{
'target_name': 'device_usb_mocks',
'type': 'static_library',
'include_dirs': [
'../..',
],
'dependencies': [
'../../testing/gmock.gyp:gmock',
'device_usb',
],
'sources': [
'mock_usb_device.cc',
'mock_usb_device.h',
'mock_usb_device_handle.cc',
'mock_usb_device_handle.h',
'mock_usb_service.cc',
'mock_usb_service.h',
],
},
],
'conditions': [
['OS == "android"', {
'targets': [
{
'target_name': 'device_usb_jni_headers',
'type': 'none',
'sources': [
'android/java/src/org/chromium/device/usb/ChromeUsbConfiguration.java',
'android/java/src/org/chromium/device/usb/ChromeUsbDevice.java',
'android/java/src/org/chromium/device/usb/ChromeUsbEndpoint.java',
'android/java/src/org/chromium/device/usb/ChromeUsbInterface.java',
'android/java/src/org/chromium/device/usb/ChromeUsbService.java',
],
'variables': {
'jni_gen_package': 'device_usb',
},
'includes': [ '../../build/jni_generator.gypi' ],
},
{
'target_name': 'device_usb_java',
'type': 'none',
'dependencies': [
'usb_descriptors_javagen',
'../../base/base.gyp:base',
],
'variables': {
'java_in_dir': '../../device/usb/android/java',
},
'includes': [ '../../build/java.gypi' ],
},
{
'target_name': 'usb_descriptors_javagen',
'type': 'none',
'variables': {
'source_file': 'usb_descriptors.h',
},
'includes': [ '../../build/android/java_cpp_enum.gypi' ],
},
],
}],
],
}
# Copyright 2014 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,
},
'targets': [
{
# GN version: //device/vibration:mojo_bindings
'target_name': 'device_vibration_mojo_bindings',
'type': 'static_library',
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
'sources': [
'vibration_manager.mojom',
],
'variables': {
'use_new_wrapper_types': 'false',
},
},
{
# GN version: //device/vibration:mojo_bindings_blink
'target_name': 'device_vibration_mojo_bindings_for_blink',
'type': 'static_library',
'variables': {
'for_blink': 'true',
'use_new_wrapper_types': 'false',
},
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
'sources': [
'vibration_manager.mojom',
],
},
{
# GN version: //device/vibration
'target_name': 'device_vibration',
'type': '<(component)',
'dependencies': [
'../../base/base.gyp:base',
'../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../../mojo/mojo_edk.gyp:mojo_system_impl',
'../../mojo/mojo_public.gyp:mojo_cpp_bindings',
'device_vibration_mojo_bindings',
],
'defines': [
'DEVICE_VIBRATION_IMPLEMENTATION',
],
'sources': [
'vibration_manager_impl.h',
'vibration_manager_impl_default.cc',
],
'conditions': [
['OS == "android"', {
'dependencies': [
'device_vibration_java',
],
'sources!': [
'vibration_manager_impl_default.cc',
],
}],
],
},
],
'conditions': [
['OS == "android"', {
'targets': [
{
'target_name': 'device_vibration_java',
'type': 'none',
'dependencies': [
'../../base/base.gyp:base',
'../../mojo/mojo_public.gyp:mojo_bindings_java',
'device_vibration_mojo_bindings',
],
'variables': {
'java_in_dir': '../../device/vibration/android/java',
},
'includes': [ '../../build/java.gypi' ],
},
],
}],
],
}
# Copyright 2016 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,
},
'targets': [
{
# GN version: //device/vr:mojo_bindings
'target_name': 'device_vr_mojo_bindings',
'type': 'static_library',
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
'sources': [
'vr_service.mojom',
],
'variables': {
'use_new_wrapper_types': 'false',
},
},
{
# GN version: //device/vr:mojo_bindings_blink
'target_name': 'device_vr_mojo_bindings_for_blink',
'type': 'static_library',
'variables': {
'for_blink': 'true',
'use_new_wrapper_types': 'false',
},
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
'sources': [
'vr_service.mojom',
],
},
],
}
# Copyright 2014 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': 'javascript_dialog_extensions_client',
'type': 'static_library',
'dependencies': [
'../../components/components.gyp:app_modal',
'../../skia/skia.gyp:skia',
'../extensions.gyp:extensions_browser',
'../extensions.gyp:extensions_common',
],
'include_dirs': [
'../..',
],
'sources': [
'javascript_dialog_extensions_client/javascript_dialog_extension_client_impl.cc',
'javascript_dialog_extensions_client/javascript_dialog_extension_client_impl.h',
],
},
],
}
# Copyright 2014 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': 'native_app_window',
'type': 'static_library',
'dependencies': [
'../../base/base.gyp:base',
'../../content/content.gyp:content_browser',
'../../skia/skia.gyp:skia',
'../../ui/views/views.gyp:views',
'../../ui/views/controls/webview/webview.gyp:webview',
'../extensions.gyp:extensions_browser',
'../extensions.gyp:extensions_common',
],
'include_dirs': [
'../..',
],
'sources': [
'native_app_window/native_app_window_views.cc',
'native_app_window/native_app_window_views.h',
],
},
],
}
# 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.
# This file is meant to be included into a target to provide a rule that
# fingerprints the v8 snapshot and generates a .cc file which includes this
# fingerprint.
#
# To use this, create a gyp target with the following form:
# {
# 'target_name': 'gin_v8_snapshot_fingerprint',
# 'type': 'none',
# 'variables': {
# 'snapshot_file': 'snapshot blob file to be fingerprinted',
# 'natives_file': 'natives blob file to be fingerprinted',
# 'output_file': 'output .cc file to generate with fingerprints',
# },
# 'includes': [ '../gin/fingerprint/fingerprint_v8_snapshot.gypi' ],
# },
#
{
'conditions': [
['v8_use_external_startup_data==1', {
'actions': [
{
'action_name': 'Generate V8 snapshot fingerprint',
'message': 'Generating V8 snapshot fingerprint',
'inputs': [
'<(DEPTH)/gin/fingerprint/fingerprint_v8_snapshot.py',
'<(snapshot_file)',
'<(natives_file)',
],
'outputs': [
'<(output_file)',
],
'action': [
'python', '<(DEPTH)/gin/fingerprint/fingerprint_v8_snapshot.py',
'--snapshot_file=<(snapshot_file)',
'--natives_file=<(natives_file)',
'--output_file=<(output_file)',
],
}
],
}],
],
}
\ No newline at end of file
# Copyright 2013 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,
'gin_gen_path': '<(SHARED_INTERMEDIATE_DIR)/gin/',
},
'targets': [
{
'target_name': 'gin',
'type': '<(component)',
'dependencies': [
'../base/base.gyp:base',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../v8/src/v8.gyp:v8',
],
'export_dependent_settings': [
'../base/base.gyp:base',
'../v8/src/v8.gyp:v8',
],
'defines': [
'GIN_IMPLEMENTATION',
],
'sources': [
'arguments.cc',
'arguments.h',
'array_buffer.cc',
'array_buffer.h',
'context_holder.cc',
'converter.cc',
'converter.h',
'debug_impl.cc',
'debug_impl.h',
'dictionary.cc',
'dictionary.h',
'function_template.cc',
'function_template.h',
'gin_export.h',
'gin_features.cc',
'handle.h',
'interceptor.cc',
'interceptor.h',
'isolate_holder.cc',
'modules/console.cc',
'modules/console.h',
'modules/file_module_provider.cc',
'modules/file_module_provider.h',
'modules/module_registry.cc',
'modules/module_registry.h',
'modules/module_registry_observer.h',
'modules/module_runner_delegate.cc',
'modules/module_runner_delegate.h',
'modules/timer.cc',
'modules/timer.h',
'object_template_builder.cc',
'object_template_builder.h',
'per_context_data.cc',
'per_context_data.h',
'per_isolate_data.cc',
'per_isolate_data.h',
'public/context_holder.h',
'public/debug.h',
'public/gin_embedders.h',
'public/gin_features.h',
'public/isolate_holder.h',
'public/v8_platform.h',
'public/wrapper_info.h',
'runner.cc',
'runner.h',
'run_microtasks_observer.cc',
'run_microtasks_observer.h',
'shell_runner.cc',
'shell_runner.h',
'try_catch.cc',
'try_catch.h',
'v8_initializer.h',
'v8_initializer.cc',
'v8_isolate_memory_dump_provider.cc',
'v8_isolate_memory_dump_provider.h',
'v8_platform.cc',
'wrappable.cc',
'wrappable.h',
'wrapper_info.cc',
],
'conditions': [
['v8_use_external_startup_data==1 and OS=="win"', {
'dependencies': [
'gin_v8_snapshot_fingerprint',
'../crypto/crypto.gyp:crypto',
],
'sources': [
'<(gin_gen_path)/v8_snapshot_fingerprint.cc',
],
'defines': [
'V8_VERIFY_EXTERNAL_STARTUP_DATA',
]
}],
],
},
{
'target_name': 'gin_v8_snapshot_fingerprint',
'type': 'none',
'variables': {
'snapshot_file': '<(PRODUCT_DIR)/snapshot_blob.bin',
'natives_file': '<(PRODUCT_DIR)/natives_blob.bin',
'output_file': '<(gin_gen_path)/v8_snapshot_fingerprint.cc',
},
'includes': [ '../gin/fingerprint/fingerprint_v8_snapshot.gypi' ],
},
{
'target_name': 'gin_shell',
'type': 'executable',
'dependencies': [
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../v8/src/v8.gyp:v8',
'gin',
],
'sources': [
'shell/gin_main.cc',
],
'msvs_settings': {
'VCLinkerTool': {
'SubSystem': '1', # /SUBSYSTEM:CONSOLE
},
},
},
{
'target_name': 'gin_test',
'type': 'static_library',
'dependencies': [
'../testing/gtest.gyp:gtest',
'../v8/src/v8.gyp:v8',
'gin',
],
'export_dependent_settings': [
'../testing/gtest.gyp:gtest',
'gin',
],
'sources': [
'test/file.cc',
'test/file.h',
'test/file_runner.cc',
'test/file_runner.h',
'test/gc.cc',
'test/gc.h',
'test/gtest.cc',
'test/gtest.h',
'test/v8_test.cc',
'test/v8_test.h',
],
},
{
'target_name': 'gin_unittests',
'type': 'executable',
'dependencies': [
'../base/base.gyp:test_support_base',
'../v8/src/v8.gyp:v8',
'gin_shell',
'gin_test',
],
'sources': [
'converter_unittest.cc',
'interceptor_unittest.cc',
'modules/module_registry_unittest.cc',
'modules/timer_unittest.cc',
'per_context_data_unittest.cc',
'shell_runner_unittest.cc',
'shell/gin_shell_unittest.cc',
'test/run_all_unittests.cc',
'test/run_js_tests.cc',
'v8_isolate_memory_dump_provider_unittest.cc',
'wrappable_unittest.cc',
],
},
],
'conditions': [
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'gin_unittests_run',
'type': 'none',
'dependencies': [
'gin_unittests',
],
'includes': [
'../build/isolate.gypi',
],
'sources': [
'gin_unittests.isolate',
],
},
],
}],
],
}
# Copyright (c) 2013 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.
# Include this .gypi in your target to dynamically set the
# use_official_google_api_keys variable (unless it is already
# explicitly set) and the associated preprocessor define.
{
'variables': {
'variables': {
# See documentation of this variable in //build/common.gypi.
'use_official_google_api_keys%': 2,
},
# Copy conditionally-set variables out one scope.
'use_official_google_api_keys%': '<(use_official_google_api_keys)',
'conditions': [
# If use_official_google_api_keys is already set (to 0 or 1), we
# do none of the implicit checking. If it is set to 1 and the
# internal keys file is missing, the build will fail at compile
# time. If it is set to 0 and keys are not provided by other
# means, a warning will be printed at compile time.
['use_official_google_api_keys==2', {
'use_official_google_api_keys%':
'<!(python <(DEPTH)/google_apis/build/check_internal.py <(DEPTH)/google_apis/internal/google_chrome_api_keys.h)',
}],
]
},
'conditions': [
['use_official_google_api_keys==1', {
'defines': ['USE_OFFICIAL_GOOGLE_API_KEYS=1'],
}],
],
}
This diff is collapsed.
This diff is collapsed.
# 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': 'google_update',
'type': 'static_library',
'variables': {
'clang_warning_flags': [
# MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_"
'-Wno-extra-tokens',
],
},
'sources': [
'google_update_idl.idl',
'<(SHARED_INTERMEDIATE_DIR)/google_update/google_update_idl.h',
'<(SHARED_INTERMEDIATE_DIR)/google_update/google_update_idl_i.c',
],
# This target exports a hard dependency because dependent targets may
# include google_update_idl.h, a generated header.
'hard_dependency': 1,
'msvs_settings': {
'VCMIDLTool': {
'OutputDirectory': '<(SHARED_INTERMEDIATE_DIR)/google_update',
},
},
'direct_dependent_settings': {
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)',
],
},
},
],
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment