Remove GYP files in breakpad, build, and tools.
These are now unused. Review-Url: https://codereview.chromium.org/2331893004 Cr-Original-Commit-Position: refs/heads/master@{#418010} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 8c0eb8ed764590108f0278e5bbbddec3fc14b522
This commit is contained in:
Родитель
7aec10bd59
Коммит
ffe5408f3a
1342
all.gyp
1342
all.gyp
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,51 +0,0 @@
|
|||
# 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': [
|
||||
{
|
||||
# This target runs a functionally empty lint to create or update the
|
||||
# API versions cache if necessary. This prevents racy creation of the
|
||||
# cache while linting java targets in lint_action.gypi.
|
||||
'target_name': 'android_lint_cache',
|
||||
'type': 'none',
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'prepare_android_lint_cache',
|
||||
'message': 'Preparing Android lint cache',
|
||||
'variables': {
|
||||
'android_lint_cache_stamp': '<(PRODUCT_DIR)/android_lint_cache/android_lint_cache.stamp',
|
||||
'android_manifest_path': '<(DEPTH)/build/android/AndroidManifest.xml',
|
||||
'result_path': '<(PRODUCT_DIR)/android_lint_cache/result.xml',
|
||||
'platform_xml_path': '<(android_sdk_root)/platform-tools/api/api-versions.xml',
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/lint.py',
|
||||
'<(android_manifest_path)',
|
||||
'<(platform_xml_path)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(android_lint_cache_stamp)',
|
||||
'<(result_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/lint.py',
|
||||
'--lint-path', '<(android_sdk_root)/tools/lint',
|
||||
'--cache-dir', '<(PRODUCT_DIR)/android_lint_cache',
|
||||
'--android-sdk-version=<(android_sdk_version)',
|
||||
'--platform-xml-path', '<(platform_xml_path)',
|
||||
'--manifest-path', '<(android_manifest_path)',
|
||||
'--product-dir', '<(PRODUCT_DIR)',
|
||||
'--result-path', '<(result_path)',
|
||||
'--stamp', '<(android_lint_cache_stamp)',
|
||||
'--create-cache',
|
||||
'--silent',
|
||||
'--enable'
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,84 +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.
|
||||
|
||||
# This file is a helper to java_apk.gypi. It should be used to create an
|
||||
# action that runs ApkBuilder via ANT.
|
||||
#
|
||||
# Required variables:
|
||||
# apk_name - File name (minus path & extension) of the output apk.
|
||||
# apk_path - Path to output apk.
|
||||
# package_input_paths - Late-evaluated list of resource zips.
|
||||
# native_libs_dir - Path to lib/ directory to use. Set to an empty directory
|
||||
# if no native libs are needed.
|
||||
# Optional variables:
|
||||
# has_code - Whether to include classes.dex in the apk.
|
||||
# dex_path - Path to classes.dex. Used only when has_code=1.
|
||||
# extra_inputs - List of extra action inputs.
|
||||
{
|
||||
'variables': {
|
||||
'variables': {
|
||||
'has_code%': 1,
|
||||
},
|
||||
'conditions': [
|
||||
['has_code == 0', {
|
||||
'has_code_str': 'false',
|
||||
}, {
|
||||
'has_code_str': 'true',
|
||||
}],
|
||||
],
|
||||
'has_code%': '<(has_code)',
|
||||
'extra_inputs%': [],
|
||||
# Write the inputs list to a file, so that its mtime is updated when
|
||||
# the list of inputs changes.
|
||||
'inputs_list_file': '>|(apk_package.<(_target_name).<(apk_name).gypcmd >@(package_input_paths))',
|
||||
'resource_packaged_apk_name': '<(apk_name)-resources.ap_',
|
||||
'resource_packaged_apk_path': '<(intermediate_dir)/<(resource_packaged_apk_name)',
|
||||
},
|
||||
'action_name': 'apkbuilder_<(apk_name)',
|
||||
'message': 'Packaging <(apk_name)',
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/ant/apk-package.xml',
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/ant.py',
|
||||
'<(resource_packaged_apk_path)',
|
||||
'<@(extra_inputs)',
|
||||
'>@(package_input_paths)',
|
||||
'>(inputs_list_file)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(apk_path)',
|
||||
],
|
||||
'conditions': [
|
||||
['has_code == 1', {
|
||||
'inputs': ['<(dex_path)'],
|
||||
'action': [
|
||||
'-DDEX_FILE_PATH=<(dex_path)',
|
||||
]
|
||||
}],
|
||||
['enable_multidex == 1', {
|
||||
'action': [
|
||||
'-DMULTIDEX_ENABLED=1',
|
||||
]
|
||||
}]
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/ant.py',
|
||||
'--',
|
||||
'-quiet',
|
||||
'-DHAS_CODE=<(has_code_str)',
|
||||
'-DANDROID_SDK_ROOT=<(android_sdk_root)',
|
||||
'-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
|
||||
'-DRESOURCE_PACKAGED_APK_NAME=<(resource_packaged_apk_name)',
|
||||
'-DNATIVE_LIBS_DIR=<(native_libs_dir)',
|
||||
'-DAPK_NAME=<(apk_name)',
|
||||
'-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)',
|
||||
'-DOUT_DIR=<(intermediate_dir)',
|
||||
'-DUNSIGNED_APK_PATH=<(apk_path)',
|
||||
'-DEMMA_INSTRUMENT=<(emma_instrument)',
|
||||
'-DEMMA_DEVICE_JAR=<(emma_device_jar)',
|
||||
'-Dbasedir=.',
|
||||
'-buildfile',
|
||||
'<(DEPTH)/build/android/ant/apk-package.xml',
|
||||
]
|
||||
}
|
|
@ -1,79 +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.
|
||||
|
||||
# Copy files to a directory with the option to clear directory first.
|
||||
#
|
||||
# Variables:
|
||||
# dest_path - directory to copy files to.
|
||||
# src_files - optional, a list of files to copy without changing name.
|
||||
# clear - optional, if set, clear directory before copying files.
|
||||
# renaming_sources - optional, a list of files to copy and rename.
|
||||
# renaming_destinations - optional, a list of new file names corresponding to
|
||||
# renaming_sources.
|
||||
#
|
||||
# Exmaple
|
||||
# {
|
||||
# 'target_name': 'copy_assets',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'dest_path': 'apk/assets/path',
|
||||
# 'src_files': ['path1/fr.pak'],
|
||||
# 'clear': 1,
|
||||
# # path2/old1 and path3/old2 will be copied to apk/assets/path and
|
||||
# # renamed to new1, new2 respectly.
|
||||
# 'renaming_sources': ['path2/old1', 'path3/old2'],
|
||||
# 'renaming_destinations': ['new1', 'new2'],
|
||||
# },
|
||||
# 'includes': [ '../build/android/copy_ex.gypi' ],
|
||||
# },
|
||||
#
|
||||
{
|
||||
'variables': {
|
||||
'clear%': 0,
|
||||
'src_files%': [],
|
||||
'renaming_sources%': [],
|
||||
'renaming_destinations%': [],
|
||||
},
|
||||
'actions': [{
|
||||
'action_name': '<(_target_name)_copy_ex',
|
||||
'variables': {
|
||||
'additional_args':[],
|
||||
'local_inputs': [],
|
||||
'dest_files': [],
|
||||
'conditions': [
|
||||
['clear == 1', {
|
||||
'additional_args': ['--clear'],
|
||||
}],
|
||||
['src_files != []', {
|
||||
'additional_args': ['--files', '<(src_files)'],
|
||||
'local_inputs': ['<@(src_files)'],
|
||||
# src_files will be used to generate destination files path for
|
||||
# outputs.
|
||||
'dest_files': ['<@(src_files)'],
|
||||
}],
|
||||
['renaming_sources != []', {
|
||||
'additional_args': [
|
||||
'--renaming-sources', '<(renaming_sources)',
|
||||
'--renaming-destinations', '<(renaming_destinations)'
|
||||
],
|
||||
'local_inputs': ['<@(renaming_sources)'],
|
||||
'dest_files': ['<@(renaming_destinations)'],
|
||||
}],
|
||||
],
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/copy_ex.py',
|
||||
'<(DEPTH)/build/android/gyp/generate_copy_ex_outputs.py',
|
||||
'<@(local_inputs)',
|
||||
],
|
||||
'outputs': [
|
||||
'<!@pymod_do_main(generate_copy_ex_outputs --dest-path <(dest_path) --src-files <(dest_files))',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/copy_ex.py',
|
||||
'--dest', '<(dest_path)',
|
||||
'<@(additional_args)',
|
||||
],
|
||||
}],
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into an action to provide an action that
|
||||
# combines a directory of shared libraries and an incomplete APK into a
|
||||
# standalone APK.
|
||||
#
|
||||
# To use this, create a gyp action with the following form:
|
||||
# {
|
||||
# 'action_name': 'some descriptive action name',
|
||||
# 'variables': {
|
||||
# 'inputs': [ 'input_path1', 'input_path2' ],
|
||||
# 'input_apk_path': '<(unsigned_apk_path)',
|
||||
# 'output_apk_path': '<(unsigned_standalone_apk_path)',
|
||||
# 'libraries_top_dir': '<(libraries_top_dir)',
|
||||
# },
|
||||
# 'includes': [ 'relative/path/to/create_standalone_apk_action.gypi' ],
|
||||
# },
|
||||
|
||||
{
|
||||
'message': 'Creating standalone APK: <(output_apk_path)',
|
||||
'variables': {
|
||||
'inputs': [],
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/create_standalone_apk.py',
|
||||
'<(input_apk_path)',
|
||||
'>@(inputs)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(output_apk_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/create_standalone_apk.py',
|
||||
'--libraries-top-dir=<(libraries_top_dir)',
|
||||
'--input-apk-path=<(input_apk_path)',
|
||||
'--output-apk-path=<(output_apk_path)',
|
||||
],
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This is the set of recommended gyp variable settings for Chrome for Android development.
|
||||
#
|
||||
# These can be used by copying this file to $CHROME_SRC/chrome/supplement.gypi.
|
||||
#
|
||||
# Even better, create chrome/supplement.gypi containing the following:
|
||||
# {
|
||||
# 'includes': [ '../build/android/developer_recommended_flags.gypi' ]
|
||||
# }
|
||||
# and you'll get new settings automatically.
|
||||
# When using this method, you can override individual settings by setting them unconditionally (with
|
||||
# no %) in chrome/supplement.gypi.
|
||||
# I.e. to disable gyp_managed_install but use everything else:
|
||||
# {
|
||||
# 'variables': {
|
||||
# 'gyp_managed_install': 0,
|
||||
# },
|
||||
# 'includes': [ '../build/android/developer_recommended_flags.gypi' ]
|
||||
# }
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'variables': {
|
||||
# Set component to 'shared_library' to enable the component build. This builds native code as
|
||||
# many small shared libraries instead of one monolithic library. This slightly reduces the time
|
||||
# required for incremental builds.
|
||||
'component%': 'shared_library',
|
||||
},
|
||||
'component%': '<(component)',
|
||||
|
||||
# When gyp_managed_install is set to 1, building an APK will install that APK on the connected
|
||||
# device(/emulator). To install on multiple devices (or onto a new device), build the APK once
|
||||
# with each device attached. This greatly reduces the time required for incremental builds.
|
||||
#
|
||||
# This comes with some caveats:
|
||||
# Only works with a single device connected (it will print a warning if
|
||||
# zero or multiple devices are attached).
|
||||
# Device must be flashed with a user-debug unsigned Android build.
|
||||
# Some actions are always run (i.e. ninja will never say "no work to do").
|
||||
'gyp_managed_install%': 1,
|
||||
|
||||
# With gyp_managed_install, we do not necessarily need a standalone APK.
|
||||
# When create_standalone_apk is set to 1, we will build a standalone APK
|
||||
# anyway. For even faster builds, you can set create_standalone_apk to 0.
|
||||
'create_standalone_apk%': 1,
|
||||
|
||||
# Set clang to 1 to use the clang compiler. Clang has much (much, much) better warning/error
|
||||
# messages than gcc.
|
||||
# TODO(cjhopman): Enable this when http://crbug.com/156420 is addressed. Until then, users can
|
||||
# set clang to 1, but Android stack traces will sometimes be incomplete.
|
||||
#'clang%': 1,
|
||||
|
||||
# Set fastbuild to 1 to build with less debugging information. This can greatly decrease linking
|
||||
# time. The downside is that stack traces will be missing useful information (like line
|
||||
# numbers).
|
||||
#'fastbuild%': 1,
|
||||
},
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into an action to provide a rule that dexes
|
||||
# compiled java files. If proguard_enabled == "true" and CONFIGURATION_NAME ==
|
||||
# "Release", then it will dex the proguard_enabled_input_path instead of the
|
||||
# normal dex_input_paths/dex_generated_input_paths.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'action_name': 'some name for the action'
|
||||
# 'actions': [
|
||||
# 'variables': {
|
||||
# 'dex_input_paths': [ 'files to dex (when proguard is not used) and add to input paths' ],
|
||||
# 'dex_generated_input_dirs': [ 'dirs that contain generated files to dex' ],
|
||||
#
|
||||
# # For targets that use proguard:
|
||||
# 'proguard_enabled': 'true',
|
||||
# 'proguard_enabled_input_path': 'path to dex when using proguard',
|
||||
# },
|
||||
# 'includes': [ 'relative/path/to/dex_action.gypi' ],
|
||||
# ],
|
||||
# },
|
||||
#
|
||||
|
||||
{
|
||||
'message': 'Creating dex file: <(output_path)',
|
||||
'variables': {
|
||||
'dex_input_paths': [],
|
||||
'dex_generated_input_dirs': [],
|
||||
'proguard_enabled%': 'false',
|
||||
# TODO(jbudorick): remove this once multidex is done.
|
||||
'debug_build_proguard_enabled%': 'false',
|
||||
'proguard_enabled_input_path%': '',
|
||||
'dex_no_locals%': 0,
|
||||
'dex_additional_options': [],
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/util/md5_check.py',
|
||||
'<(DEPTH)/build/android/gyp/dex.py',
|
||||
'>@(dex_input_paths)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(output_path)',
|
||||
'<(output_path).inputs',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/dex.py',
|
||||
'--dex-path=<(output_path)',
|
||||
'--android-sdk-tools=<(android_sdk_tools)',
|
||||
'--output-directory=<(PRODUCT_DIR)',
|
||||
'--configuration-name=<(CONFIGURATION_NAME)',
|
||||
'--proguard-enabled=>(proguard_enabled)',
|
||||
'--debug-build-proguard-enabled=>(debug_build_proguard_enabled)',
|
||||
'--proguard-enabled-input-path=<(proguard_enabled_input_path)',
|
||||
'--no-locals=>(dex_no_locals)',
|
||||
'>@(dex_additional_options)',
|
||||
'>@(dex_input_paths)',
|
||||
'>@(dex_generated_input_dirs)',
|
||||
]
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
# Copyright (c) 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.
|
||||
|
||||
# This file is meant to be included to disable GCC LTO on a target.
|
||||
|
||||
{
|
||||
'target_conditions': [
|
||||
['_toolset=="target"', {
|
||||
'conditions': [
|
||||
['OS=="android" and clang==0 and (use_lto==1 or use_lto_o2==1)', {
|
||||
'cflags!': [
|
||||
'-flto',
|
||||
'-ffat-lto-objects',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
|
@ -1,46 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into an action to provide a rule that
|
||||
# instruments either java class files, or jars.
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'input_path%': '',
|
||||
'output_path%': '',
|
||||
'stamp_path%': '',
|
||||
'extra_instr_args': [
|
||||
'--coverage-file=<(coverage_file)',
|
||||
'--sources-list-file=<(sources_list_file)',
|
||||
],
|
||||
'emma_jar': '<(android_sdk_root)/tools/lib/emma.jar',
|
||||
'conditions': [
|
||||
['emma_instrument != 0', {
|
||||
'extra_instr_args': [
|
||||
'--source-dirs=<(java_in_dir)/src >(additional_src_dirs) >(generated_src_dirs)',
|
||||
'--src-root=<(DEPTH)',
|
||||
'--emma-jar=<(emma_jar)',
|
||||
'--filter-string=<(emma_filter)',
|
||||
],
|
||||
'instr_action': 'instrument_jar',
|
||||
}, {
|
||||
'instr_action': 'copy',
|
||||
'extra_instr_args': [],
|
||||
}]
|
||||
]
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/emma_instr.py',
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/pylib/utils/command_option_parser.py',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/emma_instr.py',
|
||||
'<(instr_action)',
|
||||
'--input-path=<(input_path)',
|
||||
'--output-path=<(output_path)',
|
||||
'--stamp=<(stamp_path)',
|
||||
'<@(extra_instr_args)',
|
||||
]
|
||||
}
|
|
@ -1,49 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into an action to provide an action that
|
||||
# signs and zipaligns an APK.
|
||||
#
|
||||
# To use this, create a gyp action with the following form:
|
||||
# {
|
||||
# 'action_name': 'some descriptive action name',
|
||||
# 'variables': {
|
||||
# 'input_apk_path': 'relative/path/to/input.apk',
|
||||
# 'output_apk_path': 'relative/path/to/output.apk',
|
||||
# },
|
||||
# 'includes': [ '../../build/android/finalize_apk_action.gypi' ],
|
||||
# },
|
||||
#
|
||||
|
||||
{
|
||||
'message': 'Signing/aligning <(_target_name) APK: <(input_apk_path)',
|
||||
'variables': {
|
||||
'keystore_path%': '<(DEPTH)/build/android/ant/chromium-debug.keystore',
|
||||
'keystore_name%': 'chromiumdebugkey',
|
||||
'keystore_password%': 'chromium',
|
||||
'zipalign_path%': '<(android_sdk_tools)/zipalign',
|
||||
'rezip_apk_jar_path%': '<(PRODUCT_DIR)/lib.java/rezip_apk.jar',
|
||||
'load_library_from_zip%': 0,
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/finalize_apk.py',
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(keystore_path)',
|
||||
'<(input_apk_path)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(output_apk_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/finalize_apk.py',
|
||||
'--zipalign-path=<(zipalign_path)',
|
||||
'--unsigned-apk-path=<(input_apk_path)',
|
||||
'--final-apk-path=<(output_apk_path)',
|
||||
'--key-path=<(keystore_path)',
|
||||
'--key-name=<(keystore_name)',
|
||||
'--key-passwd=<(keystore_password)',
|
||||
'--load-library-from-zip=<(load_library_from_zip)',
|
||||
'--rezip-apk-jar-path=<(rezip_apk_jar_path)',
|
||||
],
|
||||
}
|
|
@ -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.
|
||||
|
||||
# This file is meant to be included into an action to provide an action that
|
||||
# signs and zipaligns split APKs.
|
||||
#
|
||||
# Required variables:
|
||||
# apk_name - Base name of the apk.
|
||||
# Optional variables:
|
||||
# density_splits - Whether to process density splits
|
||||
# language_splits - Whether to language splits
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'keystore_path%': '<(DEPTH)/build/android/ant/chromium-debug.keystore',
|
||||
'keystore_name%': 'chromiumdebugkey',
|
||||
'keystore_password%': 'chromium',
|
||||
'zipalign_path%': '<(android_sdk_tools)/zipalign',
|
||||
'density_splits%': 0,
|
||||
'language_splits%': [],
|
||||
'resource_packaged_apk_name': '<(apk_name)-resources.ap_',
|
||||
'resource_packaged_apk_path': '<(intermediate_dir)/<(resource_packaged_apk_name)',
|
||||
'base_output_path': '<(PRODUCT_DIR)/apks/<(apk_name)',
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/finalize_splits.py',
|
||||
'<(DEPTH)/build/android/gyp/finalize_apk.py',
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(keystore_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/finalize_splits.py',
|
||||
'--resource-packaged-apk-path=<(resource_packaged_apk_path)',
|
||||
'--base-output-path=<(base_output_path)',
|
||||
'--zipalign-path=<(zipalign_path)',
|
||||
'--key-path=<(keystore_path)',
|
||||
'--key-name=<(keystore_name)',
|
||||
'--key-passwd=<(keystore_password)',
|
||||
],
|
||||
'conditions': [
|
||||
['density_splits == 1', {
|
||||
'message': 'Signing/aligning <(_target_name) density splits',
|
||||
'inputs': [
|
||||
'<(resource_packaged_apk_path)_hdpi',
|
||||
'<(resource_packaged_apk_path)_xhdpi',
|
||||
'<(resource_packaged_apk_path)_xxhdpi',
|
||||
'<(resource_packaged_apk_path)_xxxhdpi',
|
||||
'<(resource_packaged_apk_path)_tvdpi',
|
||||
],
|
||||
'outputs': [
|
||||
'<(base_output_path)-density-hdpi.apk',
|
||||
'<(base_output_path)-density-xhdpi.apk',
|
||||
'<(base_output_path)-density-xxhdpi.apk',
|
||||
'<(base_output_path)-density-xxxhdpi.apk',
|
||||
'<(base_output_path)-density-tvdpi.apk',
|
||||
],
|
||||
'action': [
|
||||
'--densities=hdpi,xhdpi,xxhdpi,xxxhdpi,tvdpi',
|
||||
],
|
||||
}],
|
||||
['language_splits != []', {
|
||||
'message': 'Signing/aligning <(_target_name) language splits',
|
||||
'inputs': [
|
||||
"<!@(python <(DEPTH)/build/apply_locales.py '<(resource_packaged_apk_path)_ZZLOCALE' <(language_splits))",
|
||||
],
|
||||
'outputs': [
|
||||
"<!@(python <(DEPTH)/build/apply_locales.py '<(base_output_path)-lang-ZZLOCALE.apk' <(language_splits))",
|
||||
],
|
||||
'action': [
|
||||
'--languages=<(language_splits)',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
# Copyright (c) 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.
|
||||
|
||||
# This file is meant to be included to optimize a target for speed
|
||||
# rather than for size on Android.
|
||||
# This is used in some carefully tailored targets and is not meant
|
||||
# to be included everywhere. Before adding the template to another target,
|
||||
# please ask in chromium-dev@. See crbug.com/411909
|
||||
|
||||
{
|
||||
'configurations': {
|
||||
'Release': {
|
||||
'target_conditions': [
|
||||
['_toolset=="target"', {
|
||||
'conditions': [
|
||||
['OS=="android"', {
|
||||
'cflags!': ['-Os'],
|
||||
'cflags': ['-O2'],
|
||||
}],
|
||||
# Do not merge -Os and -O2 in GCC LTO.
|
||||
# LTO merges all optimization options at link-time. -O2 takes
|
||||
# precedence over -Os. Avoid using LTO simultaneously
|
||||
# on -Os and -O2 parts for that reason.
|
||||
['OS=="android" and clang==0 and use_lto==1', {
|
||||
'cflags!': [
|
||||
'-flto',
|
||||
'-ffat-lto-objects',
|
||||
],
|
||||
}],
|
||||
['OS=="android" and clang==0 and use_lto_o2==1', {
|
||||
'cflags': [
|
||||
'-flto',
|
||||
'-ffat-lto-objects',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into an action to provide a rule that
|
||||
# inserts a chromium version string into native libraries.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'action_name': 'insert_chromium_version',
|
||||
# 'actions': [
|
||||
# 'variables': {
|
||||
# 'ordered_libraries_file': 'file generated by write_ordered_libraries'
|
||||
# 'stripped_libraries_dir': 'the directory contains native libraries'
|
||||
# 'input_paths': 'files to be added to the list of inputs'
|
||||
# 'stamp': 'file to touch when the action is complete'
|
||||
# 'version_string': 'chromium version string to be inserted'
|
||||
# 'includes': [ '../../build/android/insert_chromium_version.gypi' ],
|
||||
# ],
|
||||
# },
|
||||
#
|
||||
|
||||
{
|
||||
'message': 'Inserting chromium version string into native libraries',
|
||||
'variables': {
|
||||
'input_paths': [],
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/insert_chromium_version.py',
|
||||
'<(ordered_libraries_file)',
|
||||
'>@(input_paths)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(stamp)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/insert_chromium_version.py',
|
||||
'--android-objcopy=<(android_objcopy)',
|
||||
'--stripped-libraries-dir=<(stripped_libraries_dir)',
|
||||
'--libraries=@FileArg(<(ordered_libraries_file):libraries)',
|
||||
'--version-string=<(version_string)',
|
||||
'--stamp=<(stamp)',
|
||||
],
|
||||
'conditions': [
|
||||
['component == "shared_library"', {
|
||||
# Add a fake output to force the build to always re-run this step. This
|
||||
# is required because the real inputs are not known at gyp-time and
|
||||
# changing base.so may not trigger changes to dependent libraries.
|
||||
'outputs': [ '<(stamp).fake' ]
|
||||
}],
|
||||
],
|
||||
}
|
|
@ -1,64 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into a target to provide an action
|
||||
# to generate Java source files from a C++ header file containing annotated
|
||||
# enum definitions using a Python script.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'bitmap_format_java',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'source_file': 'ui/android/bitmap_format.h',
|
||||
# },
|
||||
# 'includes': [ '../build/android/java_cpp_enum.gypi' ],
|
||||
# },
|
||||
#
|
||||
# Then have the gyp target which compiles the java code depend on the newly
|
||||
# created target.
|
||||
|
||||
{
|
||||
'variables': {
|
||||
# Location where all generated Java sources will be placed.
|
||||
'output_dir': '<(SHARED_INTERMEDIATE_DIR)/enums/<(_target_name)',
|
||||
'generator_path': '<(DEPTH)/build/android/gyp/java_cpp_enum.py',
|
||||
'generator_args': '<(output_dir) <(source_file)',
|
||||
},
|
||||
'direct_dependent_settings': {
|
||||
'variables': {
|
||||
# Ensure that the output directory is used in the class path
|
||||
# when building targets that depend on this one.
|
||||
'generated_src_dirs': [
|
||||
'<(output_dir)/',
|
||||
],
|
||||
# Ensure that the targets depending on this one are rebuilt if the sources
|
||||
# of this one are modified.
|
||||
'additional_input_paths': [
|
||||
'<(source_file)',
|
||||
],
|
||||
},
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'generate_java_constants',
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(generator_path)',
|
||||
'<(source_file)',
|
||||
],
|
||||
'outputs': [
|
||||
# This is the main reason this is an action and not a rule. Gyp doesn't
|
||||
# properly expand RULE_INPUT_PATH here and so it's impossible to
|
||||
# calculate the list of outputs.
|
||||
'<!@pymod_do_main(java_cpp_enum --print_output_only '
|
||||
'<@(generator_args))',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(generator_path)', '<@(generator_args)'
|
||||
],
|
||||
'message': 'Generating Java from cpp header <(source_file)',
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,81 +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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to generate Java source files from templates that are processed
|
||||
# through the host C pre-processor.
|
||||
#
|
||||
# NOTE: For generating Java conterparts to enums prefer using the java_cpp_enum
|
||||
# rule instead.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'android_net_java_constants',
|
||||
# 'type': 'none',
|
||||
# 'sources': [
|
||||
# 'net/android/NetError.template',
|
||||
# ],
|
||||
# 'variables': {
|
||||
# 'package_name': 'org/chromium/net',
|
||||
# 'template_deps': ['base/net_error_list.h'],
|
||||
# },
|
||||
# 'includes': [ '../build/android/java_cpp_template.gypi' ],
|
||||
# },
|
||||
#
|
||||
# The 'sources' entry should only list template file. The template file
|
||||
# itself should use the 'ClassName.template' format, and will generate
|
||||
# 'gen/templates/<target-name>/<package-name>/ClassName.java. The files which
|
||||
# template dependents on and typically included by the template should be listed
|
||||
# in template_deps variables. Any change to them will force a rebuild of
|
||||
# the template, and hence of any source that depends on it.
|
||||
#
|
||||
|
||||
{
|
||||
# Location where all generated Java sources will be placed.
|
||||
'variables': {
|
||||
'include_path%': '<(DEPTH)',
|
||||
'output_dir': '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)/<(package_name)',
|
||||
},
|
||||
'direct_dependent_settings': {
|
||||
'variables': {
|
||||
# Ensure that the output directory is used in the class path
|
||||
# when building targets that depend on this one.
|
||||
'generated_src_dirs': [
|
||||
'<(output_dir)/',
|
||||
],
|
||||
# Ensure dependents are rebuilt when sources for this rule change.
|
||||
'additional_input_paths': [
|
||||
'<@(_sources)',
|
||||
'<@(template_deps)',
|
||||
],
|
||||
},
|
||||
},
|
||||
# Define a single rule that will be apply to each .template file
|
||||
# listed in 'sources'.
|
||||
'rules': [
|
||||
{
|
||||
'rule_name': 'generate_java_constants',
|
||||
'extension': 'template',
|
||||
# Set template_deps as additional dependencies.
|
||||
'variables': {
|
||||
'output_path': '<(output_dir)/<(RULE_INPUT_ROOT).java',
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/gcc_preprocess.py',
|
||||
'<@(template_deps)'
|
||||
],
|
||||
'outputs': [
|
||||
'<(output_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py',
|
||||
'--include-path=<(include_path)',
|
||||
'--output=<(output_path)',
|
||||
'--template=<(RULE_INPUT_PATH)',
|
||||
],
|
||||
'message': 'Generating Java from cpp template <(RULE_INPUT_PATH)',
|
||||
}
|
||||
],
|
||||
}
|
|
@ -1,45 +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.
|
||||
|
||||
# This file provides an action to generate Java source files from the Google
|
||||
# API keys using a Python script.
|
||||
|
||||
{
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'google_api_keys_java',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
# Location where all generated Java sources will be placed.
|
||||
'output_dir': '<(SHARED_INTERMEDIATE_DIR)/java_google_api_keys',
|
||||
'generator_path': '<(DEPTH)/build/android/gyp/java_google_api_keys.py',
|
||||
'output_file': '<(output_dir)/GoogleAPIKeys.java',
|
||||
},
|
||||
'direct_dependent_settings': {
|
||||
'variables': {
|
||||
# Ensure that the output directory is used in the class path
|
||||
# when building targets that depend on this one.
|
||||
'generated_src_dirs': [
|
||||
'<(output_dir)/',
|
||||
],
|
||||
},
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'generate_java_google_api_keys',
|
||||
'inputs': [
|
||||
'<(generator_path)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(output_file)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(generator_path)', '--out', '<(output_file)'
|
||||
],
|
||||
'message': 'Generating Java from Google API Keys header',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,85 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into a target to process one or more
|
||||
# Jinja templates.
|
||||
#
|
||||
# To process a single template file, create a gyp target with the following
|
||||
# form:
|
||||
# {
|
||||
# 'target_name': 'chrome_public_manifest',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'jinja_inputs': ['android/java/AndroidManifest.xml'],
|
||||
# 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_public_manifest/AndroidManifest.xml',
|
||||
# 'jinja_variables': ['app_name=ChromePublic'],
|
||||
# },
|
||||
# 'includes': [ '../build/android/jinja_template.gypi' ],
|
||||
# },
|
||||
#
|
||||
# To process multiple template files and package the results into a zip file,
|
||||
# create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'chrome_template_resources',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'jinja_inputs_base_dir': 'android/java/res_template',
|
||||
# 'jinja_inputs': [
|
||||
# '<(jinja_inputs_base_dir)/xml/searchable.xml',
|
||||
# '<(jinja_inputs_base_dir)/xml/syncadapter.xml',
|
||||
# ],
|
||||
# 'jinja_outputs_zip': '<(PRODUCT_DIR)/res.java/<(_target_name).zip',
|
||||
# 'jinja_variables': ['app_name=ChromePublic'],
|
||||
# },
|
||||
# 'includes': [ '../build/android/jinja_template.gypi' ],
|
||||
# },
|
||||
#
|
||||
|
||||
{
|
||||
'actions': [
|
||||
{
|
||||
'action_name': '<(_target_name)_jinja_template',
|
||||
'message': 'processing jinja template',
|
||||
'variables': {
|
||||
'jinja_output%': '',
|
||||
'jinja_outputs_zip%': '',
|
||||
'jinja_inputs_base_dir%': '',
|
||||
'jinja_includes%': [],
|
||||
'jinja_variables%': [],
|
||||
'jinja_args': ['--loader-base-dir=<(DEPTH)'],
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/jinja_template.py',
|
||||
'<@(jinja_inputs)',
|
||||
'<@(jinja_includes)',
|
||||
],
|
||||
'conditions': [
|
||||
['jinja_output != ""', {
|
||||
'outputs': [ '<(jinja_output)' ],
|
||||
'variables': {
|
||||
'jinja_args': ['--output', '<(jinja_output)'],
|
||||
},
|
||||
}],
|
||||
['jinja_outputs_zip != ""', {
|
||||
'outputs': [ '<(jinja_outputs_zip)' ],
|
||||
'variables': {
|
||||
'jinja_args': ['--outputs-zip', '<(jinja_outputs_zip)'],
|
||||
},
|
||||
}],
|
||||
['jinja_inputs_base_dir != ""', {
|
||||
'variables': {
|
||||
'jinja_args': ['--inputs-base-dir', '<(jinja_inputs_base_dir)'],
|
||||
},
|
||||
}],
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/jinja_template.py',
|
||||
'--inputs', '<(jinja_inputs)',
|
||||
'--variables', '<(jinja_variables)',
|
||||
'<@(jinja_args)',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,51 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into an action to provide a rule to
|
||||
# run lint on java/class files.
|
||||
|
||||
{
|
||||
'action_name': 'lint_<(_target_name)',
|
||||
'message': 'Linting <(_target_name)',
|
||||
'variables': {
|
||||
'conditions': [
|
||||
['chromium_code != 0 and android_lint != 0 and never_lint == 0', {
|
||||
'additional_args': ['--enable'],
|
||||
}, {
|
||||
'additional_args': [],
|
||||
}]
|
||||
],
|
||||
'android_lint_cache_stamp': '<(PRODUCT_DIR)/android_lint_cache/android_lint_cache.stamp',
|
||||
'android_manifest_path%': '<(DEPTH)/build/android/AndroidManifest.xml',
|
||||
'resource_dir%': '<(DEPTH)/build/android/ant/empty/res',
|
||||
'suppressions_file%': '<(DEPTH)/build/android/lint/suppressions.xml',
|
||||
'platform_xml_path': '<(android_sdk_root)/platform-tools/api/api-versions.xml',
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/lint.py',
|
||||
'<(android_lint_cache_stamp)',
|
||||
'<(android_manifest_path)',
|
||||
'<(lint_jar_path)',
|
||||
'<(suppressions_file)',
|
||||
'<(platform_xml_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/lint.py',
|
||||
'--lint-path=<(android_sdk_root)/tools/lint',
|
||||
'--config-path=<(suppressions_file)',
|
||||
'--processed-config-path=<(config_path)',
|
||||
'--cache-dir', '<(PRODUCT_DIR)/android_lint_cache',
|
||||
'--platform-xml-path', '<(platform_xml_path)',
|
||||
'--manifest-path=<(android_manifest_path)',
|
||||
'--result-path=<(result_path)',
|
||||
'--resource-dir=<(resource_dir)',
|
||||
'--product-dir=<(PRODUCT_DIR)',
|
||||
'--src-dirs=>(src_dirs)',
|
||||
'--jar-path=<(lint_jar_path)',
|
||||
'--can-fail-build',
|
||||
'--stamp=<(stamp_path)',
|
||||
'<@(additional_args)',
|
||||
],
|
||||
}
|
|
@ -1,54 +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.
|
||||
|
||||
# Creates a resources.zip with locale.pak files placed into appropriate
|
||||
# resource configs (e.g. en-GB.pak -> res/raw-en/en_gb.pak). Also generates
|
||||
# a locale_paks TypedArray so that resource files can be enumerated at runtime.
|
||||
#
|
||||
# If this target is included in the deps of an android resources/library/apk,
|
||||
# the resources will be included with that target.
|
||||
#
|
||||
# Variables:
|
||||
# locale_pak_files - List of .pak files to process.
|
||||
# Names must be of the form "en.pak" or "en-US.pak".
|
||||
# resource_zip_path - the path of generated zip file, optional, normally, you
|
||||
# don't need to set this variable.
|
||||
#
|
||||
# Example
|
||||
# {
|
||||
# 'target_name': 'my_locale_resources',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'locale_paks_files': ['path1/fr.pak'],
|
||||
# },
|
||||
# 'includes': [ '../build/android/locale_pak_resources.gypi' ],
|
||||
# },
|
||||
#
|
||||
{
|
||||
'variables': {
|
||||
'resources_zip_path%': '<(PRODUCT_DIR)/res.java/<(_target_name).zip',
|
||||
},
|
||||
'all_dependent_settings': {
|
||||
'variables': {
|
||||
'additional_locale_input_paths': ['<(resources_zip_path)'],
|
||||
'dependencies_locale_zip_paths': ['<(resources_zip_path)'],
|
||||
},
|
||||
},
|
||||
'actions': [{
|
||||
'action_name': '<(_target_name)_locale_pak_resources',
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/locale_pak_resources.py',
|
||||
'<@(locale_pak_files)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(resources_zip_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/locale_pak_resources.py',
|
||||
'--locale-paks', '<(locale_pak_files)',
|
||||
'--resources-zip', '<(resources_zip_path)',
|
||||
],
|
||||
}],
|
||||
}
|
|
@ -1,46 +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.
|
||||
|
||||
# This file is meant to be included into an action to provide a rule that
|
||||
# generates a list of classes that must be kept in the main dex file.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'action_name': 'some name for the action'
|
||||
# 'actions': [
|
||||
# 'variables': {
|
||||
# 'jar_paths': ['path to jar', ...],
|
||||
# 'output_path': 'output path',
|
||||
# },
|
||||
# 'includes': [ 'relative/path/to/main_dex_action.gypi' ],
|
||||
# ],
|
||||
# },
|
||||
#
|
||||
|
||||
{
|
||||
'message': 'Generating main dex classes list for <(jar_path)',
|
||||
'variables': {
|
||||
'jar_paths%': [],
|
||||
'output_path%': '',
|
||||
'main_dex_list_script': '<(DEPTH)/build/android/gyp/main_dex_list.py',
|
||||
'main_dex_rules_path': '<(DEPTH)/build/android/main_dex_classes.flags',
|
||||
},
|
||||
'inputs': [
|
||||
'<@(jar_paths)',
|
||||
'<(main_dex_list_script)',
|
||||
'<(main_dex_rules_path)',
|
||||
'<(multidex_configuration_path)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(output_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(main_dex_list_script)',
|
||||
'--main-dex-list-path', '<(output_path)',
|
||||
'--android-sdk-tools', '<(android_sdk_tools)',
|
||||
'--main-dex-rules-path', '<(main_dex_rules_path)',
|
||||
'--multidex-configuration-path', '<(multidex_configuration_path)',
|
||||
'<@(jar_paths)',
|
||||
]
|
||||
}
|
|
@ -1,76 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to strip and place dependent shared libraries required by a native binary in a
|
||||
# single folder that can later be pushed to the device.
|
||||
#
|
||||
# NOTE: consider packaging your binary as an apk instead of running a native
|
||||
# library.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'target_that_depends_on_my_binary',
|
||||
# 'type': 'none',
|
||||
# 'dependencies': [
|
||||
# 'my_binary',
|
||||
# ],
|
||||
# 'variables': {
|
||||
# 'native_binary': '<(PRODUCT_DIR)/my_binary',
|
||||
# 'output_dir': 'location to place binary and dependent libraries'
|
||||
# },
|
||||
# 'includes': [ '../../build/android/native_app_dependencies.gypi' ],
|
||||
# },
|
||||
#
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'include_main_binary%': 1,
|
||||
'extra_files%': [],
|
||||
},
|
||||
'conditions': [
|
||||
['android_must_copy_system_libraries == 1', {
|
||||
'dependencies': [
|
||||
'<(DEPTH)/build/android/setup.gyp:copy_system_libraries',
|
||||
],
|
||||
'variables': {
|
||||
'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)',
|
||||
'ordered_libraries_file': '<(intermediate_dir)/native_libraries.json',
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
'variables': {
|
||||
'input_libraries': ['<(native_binary)'],
|
||||
},
|
||||
'includes': ['../../build/android/write_ordered_libraries.gypi'],
|
||||
},
|
||||
{
|
||||
'action_name': 'stripping native libraries',
|
||||
'variables': {
|
||||
'stripped_libraries_dir%': '<(output_dir)',
|
||||
'input_paths': ['<(native_binary)'],
|
||||
'stamp': '<(intermediate_dir)/strip.stamp',
|
||||
},
|
||||
'includes': ['../../build/android/strip_native_libraries.gypi'],
|
||||
},
|
||||
],
|
||||
}],
|
||||
['extra_files!=[]', {
|
||||
'copies': [
|
||||
{
|
||||
'destination': '<(output_dir)',
|
||||
'files': [ '<@(extra_files)' ],
|
||||
}
|
||||
],
|
||||
}],
|
||||
['include_main_binary==1', {
|
||||
'copies': [
|
||||
{
|
||||
'destination': '<(output_dir)',
|
||||
'files': [ '<(native_binary)' ],
|
||||
}
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
# 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.
|
||||
|
||||
{
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'cpu_features',
|
||||
'type': 'static_library',
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'<(android_ndk_root)/sources/android/cpufeatures',
|
||||
],
|
||||
},
|
||||
'sources': [
|
||||
'<(android_ndk_root)/sources/android/cpufeatures/cpu-features.c',
|
||||
],
|
||||
'variables': {
|
||||
'clang_warning_flags': [
|
||||
# cpu-features.c has few unused functions on x86 b/26403333
|
||||
'-Wno-unused-function',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,77 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into an action to provide a rule that
|
||||
# packs relocations in Release builds of native libraries.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'action_name': 'pack_relocations',
|
||||
# 'actions': [
|
||||
# 'variables': {
|
||||
# 'enable_packing': 'pack relocations if 1, plain file copy if 0'
|
||||
# 'exclude_packing_list': 'names of libraries explicitly not packed',
|
||||
# 'ordered_libraries_file': 'file generated by write_ordered_libraries'
|
||||
# 'input_paths': 'files to be added to the list of inputs'
|
||||
# 'stamp': 'file to touch when the action is complete'
|
||||
# 'stripped_libraries_dir': 'directory holding stripped libraries',
|
||||
# 'packed_libraries_dir': 'directory holding packed libraries',
|
||||
# 'includes': [ '../../build/android/pack_relocations.gypi' ],
|
||||
# ],
|
||||
# },
|
||||
#
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'input_paths': [],
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/pack_relocations.py',
|
||||
'<(ordered_libraries_file)',
|
||||
'>@(input_paths)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(stamp)',
|
||||
],
|
||||
'conditions': [
|
||||
['enable_packing == 1', {
|
||||
'message': 'Packing relocations for <(_target_name)',
|
||||
'dependencies': [
|
||||
'<(DEPTH)/third_party/android_platform/relocation_packer.gyp:android_relocation_packer#host',
|
||||
],
|
||||
'inputs': [
|
||||
'<(PRODUCT_DIR)/android_relocation_packer',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/pack_relocations.py',
|
||||
'--configuration-name=<(CONFIGURATION_NAME)',
|
||||
'--enable-packing=1',
|
||||
'--exclude-packing-list=<@(exclude_packing_list)',
|
||||
'--android-pack-relocations=<(PRODUCT_DIR)/android_relocation_packer',
|
||||
'--stripped-libraries-dir=<(stripped_libraries_dir)',
|
||||
'--packed-libraries-dir=<(packed_libraries_dir)',
|
||||
'--libraries=@FileArg(<(ordered_libraries_file):libraries)',
|
||||
'--stamp=<(stamp)',
|
||||
],
|
||||
}, {
|
||||
'message': 'Copying libraries (no relocation packing) for <(_target_name)',
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/pack_relocations.py',
|
||||
'--configuration-name=<(CONFIGURATION_NAME)',
|
||||
'--enable-packing=0',
|
||||
'--stripped-libraries-dir=<(stripped_libraries_dir)',
|
||||
'--packed-libraries-dir=<(packed_libraries_dir)',
|
||||
'--libraries=@FileArg(<(ordered_libraries_file):libraries)',
|
||||
'--stamp=<(stamp)',
|
||||
],
|
||||
}],
|
||||
['android_must_copy_system_libraries == 1', {
|
||||
# Add a fake output to force the build to always re-run this step. This
|
||||
# is required because the real inputs are not known at gyp-time and
|
||||
# changing base.so may not trigger changes to dependent libraries.
|
||||
'outputs': [ '<(stamp).fake' ]
|
||||
}],
|
||||
],
|
||||
}
|
|
@ -1,105 +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.
|
||||
|
||||
# This file is a helper to java_apk.gypi. It should be used to create an
|
||||
# action that runs ApkBuilder via ANT.
|
||||
#
|
||||
# Required variables:
|
||||
# apk_name - File name (minus path & extension) of the output apk.
|
||||
# android_manifest_path - Path to AndroidManifest.xml.
|
||||
# app_manifest_version_name - set the apps 'human readable' version number.
|
||||
# app_manifest_version_code - set the apps version number.
|
||||
# Optional variables:
|
||||
# asset_location - The directory where assets are located (if any).
|
||||
# create_density_splits - Whether to create density-based apk splits. Splits
|
||||
# are supported only for minSdkVersion >= 21.
|
||||
# language_splits - List of languages to create apk splits for.
|
||||
# resource_zips - List of paths to resource zip files.
|
||||
# shared_resources - Make a resource package that can be loaded by a different
|
||||
# application at runtime to access the package's resources.
|
||||
# app_as_shared_library - Make a resource package that can be loaded as shared
|
||||
# library.
|
||||
# extensions_to_not_compress - E.g.: 'pak,dat,bin'
|
||||
# extra_inputs - List of extra action inputs.
|
||||
{
|
||||
'variables': {
|
||||
'asset_location%': '',
|
||||
'create_density_splits%': 0,
|
||||
'resource_zips%': [],
|
||||
'shared_resources%': 0,
|
||||
'app_as_shared_library%': 0,
|
||||
'extensions_to_not_compress%': '',
|
||||
'extra_inputs%': [],
|
||||
'resource_packaged_apk_name': '<(apk_name)-resources.ap_',
|
||||
'resource_packaged_apk_path': '<(intermediate_dir)/<(resource_packaged_apk_name)',
|
||||
},
|
||||
'action_name': 'package_resources_<(apk_name)',
|
||||
'message': 'packaging resources for <(apk_name)',
|
||||
'inputs': [
|
||||
# TODO: This isn't always rerun correctly, http://crbug.com/351928
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/package_resources.py',
|
||||
'<(android_manifest_path)',
|
||||
'<@(extra_inputs)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(resource_packaged_apk_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/package_resources.py',
|
||||
'--android-sdk-jar', '<(android_sdk_jar)',
|
||||
'--aapt-path', '<(android_aapt_path)',
|
||||
'--configuration-name', '<(CONFIGURATION_NAME)',
|
||||
'--android-manifest', '<(android_manifest_path)',
|
||||
'--version-code', '<(app_manifest_version_code)',
|
||||
'--version-name', '<(app_manifest_version_name)',
|
||||
'--no-compress', '<(extensions_to_not_compress)',
|
||||
'--apk-path', '<(resource_packaged_apk_path)',
|
||||
],
|
||||
'conditions': [
|
||||
['shared_resources == 1', {
|
||||
'action': [
|
||||
'--shared-resources',
|
||||
],
|
||||
}],
|
||||
['app_as_shared_library == 1', {
|
||||
'action': [
|
||||
'--app-as-shared-lib',
|
||||
],
|
||||
}],
|
||||
['asset_location != ""', {
|
||||
'action': [
|
||||
'--asset-dir', '<(asset_location)',
|
||||
],
|
||||
}],
|
||||
['create_density_splits == 1', {
|
||||
'action': [
|
||||
'--create-density-splits',
|
||||
],
|
||||
'outputs': [
|
||||
'<(resource_packaged_apk_path)_hdpi',
|
||||
'<(resource_packaged_apk_path)_xhdpi',
|
||||
'<(resource_packaged_apk_path)_xxhdpi',
|
||||
'<(resource_packaged_apk_path)_xxxhdpi',
|
||||
'<(resource_packaged_apk_path)_tvdpi',
|
||||
],
|
||||
}],
|
||||
['language_splits != []', {
|
||||
'action': [
|
||||
'--language-splits=<(language_splits)',
|
||||
],
|
||||
'outputs': [
|
||||
"<!@(python <(DEPTH)/build/apply_locales.py '<(resource_packaged_apk_path)_ZZLOCALE' <(language_splits))",
|
||||
],
|
||||
}],
|
||||
['resource_zips != []', {
|
||||
'action': [
|
||||
'--resource-zips', '>(resource_zips)',
|
||||
],
|
||||
'inputs': [
|
||||
'>@(resource_zips)',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
|
@ -1,49 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into an action to provide a rule that
|
||||
# pushes stripped shared libraries to the attached Android device. This should
|
||||
# only be used with the gyp_managed_install flag set.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'actions': [
|
||||
# 'variables': {
|
||||
# 'ordered_libraries_file': 'file generated by write_ordered_libraries'
|
||||
# 'strip_stamp': 'stamp from strip action to block on'
|
||||
# 'libraries_source_dir': 'location where stripped libraries are stored'
|
||||
# 'device_library_dir': 'location on the device where to put pushed libraries',
|
||||
# 'push_stamp': 'file to touch when the action is complete'
|
||||
# 'configuration_name': 'The build CONFIGURATION_NAME'
|
||||
# },
|
||||
# 'includes': [ '../../build/android/push_libraries.gypi' ],
|
||||
# ],
|
||||
# },
|
||||
#
|
||||
|
||||
{
|
||||
'action_name': 'push_libraries_<(_target_name)',
|
||||
'message': 'Pushing libraries to device for <(_target_name)',
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/util/md5_check.py',
|
||||
'<(DEPTH)/build/android/gyp/push_libraries.py',
|
||||
'<(strip_stamp)',
|
||||
'<(strip_additional_stamp)',
|
||||
'<(build_device_config_path)',
|
||||
'<(pack_relocations_stamp)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(push_stamp)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/push_libraries.py',
|
||||
'--build-device-configuration=<(build_device_config_path)',
|
||||
'--libraries-dir=<(libraries_source_dir)',
|
||||
'--device-dir=<(device_library_dir)',
|
||||
'--libraries=@FileArg(<(ordered_libraries_file):libraries)',
|
||||
'--stamp=<(push_stamp)',
|
||||
'--output-directory=<(PRODUCT_DIR)',
|
||||
],
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
# 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': [
|
||||
{
|
||||
# GN version: //build/android/pylib/devices/commands:chromium_commands
|
||||
'target_name': 'chromium_commands',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
'add_to_dependents_classpaths': 0,
|
||||
'java_in_dir': ['java'],
|
||||
},
|
||||
'includes': [
|
||||
'../../../../../build/java.gypi',
|
||||
],
|
||||
}
|
||||
],
|
||||
}
|
|
@ -1,48 +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.
|
||||
|
||||
# Running gtests on a remote device via am instrument requires both an "app"
|
||||
# APK and a "test" APK with different package names. Our gtests only use one
|
||||
# APK, so we build a dummy APK to upload as the app.
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'remote_device_dummy_apk_name': 'remote_device_dummy',
|
||||
'remote_device_dummy_apk_path': '<(PRODUCT_DIR)/apks/<(remote_device_dummy_apk_name).apk',
|
||||
},
|
||||
'targets': [
|
||||
{
|
||||
# GN: //build/android/pylib/remote/device/dummy:remote_device_dummy_apk
|
||||
'target_name': 'remote_device_dummy_apk',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
'apk_name': '<(remote_device_dummy_apk_name)',
|
||||
'final_apk_path': '<(remote_device_dummy_apk_path)',
|
||||
'java_in_dir': '.',
|
||||
'never_lint': 1,
|
||||
'android_manifest_path': '../../../../../../build/android/AndroidManifest.xml',
|
||||
},
|
||||
'includes': [
|
||||
'../../../../../../build/java_apk.gypi',
|
||||
]
|
||||
},
|
||||
{
|
||||
'target_name': 'require_remote_device_dummy_apk',
|
||||
'message': 'Making sure <(remote_device_dummy_apk_path) has been built.',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
'required_file': '<(PRODUCT_DIR)/remote_device_dummy_apk/<(remote_device_dummy_apk_name).apk.required',
|
||||
},
|
||||
'inputs': [
|
||||
'<(remote_device_dummy_apk_path)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(required_file)',
|
||||
],
|
||||
'action': [
|
||||
'python', '../../build/android/gyp/touch.py', '<(required_file)',
|
||||
],
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# Build the rezip build tool.
|
||||
{
|
||||
'targets': [
|
||||
{
|
||||
# GN: //build/android/rezip:rezip
|
||||
'target_name': 'rezip_apk_jar',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
'java_in_dir': 'rezip',
|
||||
'compile_stamp': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)/compile.stamp',
|
||||
'javac_jar_path': '<(PRODUCT_DIR)/lib.java/rezip_apk.jar',
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'javac_<(_target_name)',
|
||||
'message': 'Compiling <(_target_name) java sources',
|
||||
'variables': {
|
||||
'java_sources': ['>!@(find >(java_in_dir) -name "*.java")'],
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/javac.py',
|
||||
'>@(java_sources)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(compile_stamp)',
|
||||
'<(javac_jar_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/javac.py',
|
||||
'--classpath=',
|
||||
'--jar-path=<(javac_jar_path)',
|
||||
'--stamp=<(compile_stamp)',
|
||||
'>@(java_sources)',
|
||||
]
|
||||
},
|
||||
],
|
||||
}
|
||||
],
|
||||
}
|
|
@ -1,112 +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.
|
||||
{
|
||||
'conditions': [
|
||||
['android_must_copy_system_libraries == 1', {
|
||||
'targets': [
|
||||
{
|
||||
# These libraries from the Android ndk are required to be packaged with
|
||||
# any APK that is built with them. build/java_apk.gypi expects any
|
||||
# libraries that should be packaged with the apk to be in
|
||||
# <(SHARED_LIB_DIR)
|
||||
'target_name': 'copy_system_libraries',
|
||||
'type': 'none',
|
||||
'copies': [
|
||||
{
|
||||
'destination': '<(SHARED_LIB_DIR)/',
|
||||
'files': [
|
||||
'<(android_libcpp_libs_dir)/libc++_shared.so',
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}],
|
||||
],
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'get_build_device_configurations',
|
||||
'type': 'none',
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'get configurations',
|
||||
'inputs': [
|
||||
'gyp/util/build_device.py',
|
||||
'gyp/get_device_configuration.py',
|
||||
],
|
||||
'outputs': [
|
||||
'<(build_device_config_path)',
|
||||
'<(build_device_config_path).fake',
|
||||
],
|
||||
'action': [
|
||||
'python', 'gyp/get_device_configuration.py',
|
||||
'--output=<(build_device_config_path)',
|
||||
'--output-directory=<(PRODUCT_DIR)',
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
# Target for creating common output build directories. Creating output
|
||||
# dirs beforehand ensures that build scripts can assume these folders to
|
||||
# exist and there are no race conditions resulting from build scripts
|
||||
# trying to create these directories.
|
||||
# The build/java.gypi target depends on this target.
|
||||
'target_name': 'build_output_dirs',
|
||||
'type': 'none',
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'create_java_output_dirs',
|
||||
'variables' : {
|
||||
'output_dirs' : [
|
||||
'<(PRODUCT_DIR)/apks',
|
||||
'<(PRODUCT_DIR)/lib.java',
|
||||
'<(PRODUCT_DIR)/test.lib.java',
|
||||
]
|
||||
},
|
||||
'inputs' : [],
|
||||
# By not specifying any outputs, we ensure that this command isn't
|
||||
# re-run when the output directories are touched (i.e. apks are
|
||||
# written to them).
|
||||
'outputs': [''],
|
||||
'action': [
|
||||
'mkdir',
|
||||
'-p',
|
||||
'<@(output_dirs)',
|
||||
],
|
||||
},
|
||||
],
|
||||
}, # build_output_dirs
|
||||
{
|
||||
'target_name': 'sun_tools_java',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
'found_jar_path': '<(PRODUCT_DIR)/sun_tools_java/tools.jar',
|
||||
'jar_path': '<(found_jar_path)',
|
||||
},
|
||||
'includes': [
|
||||
'../../build/host_prebuilt_jar.gypi',
|
||||
],
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'find_sun_tools_jar',
|
||||
'variables' : {
|
||||
},
|
||||
'inputs' : [
|
||||
'gyp/find_sun_tools_jar.py',
|
||||
'gyp/util/build_utils.py',
|
||||
],
|
||||
'outputs': [
|
||||
'<(found_jar_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', 'gyp/find_sun_tools_jar.py',
|
||||
'--output', '<(found_jar_path)',
|
||||
],
|
||||
},
|
||||
],
|
||||
}, # sun_tools_java
|
||||
]
|
||||
}
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into an action to provide a rule that strips
|
||||
# native libraries.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'action_name': 'strip_native_libraries',
|
||||
# 'actions': [
|
||||
# 'variables': {
|
||||
# 'ordered_libraries_file': 'file generated by write_ordered_libraries'
|
||||
# 'input_paths': 'files to be added to the list of inputs'
|
||||
# 'stamp': 'file to touch when the action is complete'
|
||||
# 'stripped_libraries_dir': 'directory to store stripped libraries',
|
||||
# },
|
||||
# 'includes': [ '../../build/android/strip_native_libraries.gypi' ],
|
||||
# ],
|
||||
# },
|
||||
#
|
||||
|
||||
{
|
||||
'message': 'Stripping libraries for <(_target_name)',
|
||||
'variables': {
|
||||
'input_paths': [],
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/strip_library_for_device.py',
|
||||
'<(ordered_libraries_file)',
|
||||
'>@(input_paths)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(stamp)',
|
||||
],
|
||||
'conditions': [
|
||||
['android_must_copy_system_libraries == 1', {
|
||||
# Add a fake output to force the build to always re-run this step. This
|
||||
# is required because the real inputs are not known at gyp-time and
|
||||
# changing base.so may not trigger changes to dependent libraries.
|
||||
'outputs': [ '<(stamp).fake' ]
|
||||
}],
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/strip_library_for_device.py',
|
||||
'--android-strip=<(android_strip)',
|
||||
'--android-strip-arg=--strip-unneeded',
|
||||
'--stripped-libraries-dir=<(stripped_libraries_dir)',
|
||||
'--libraries-dir=<(SHARED_LIB_DIR),<(PRODUCT_DIR)',
|
||||
'--libraries=@FileArg(<(ordered_libraries_file):libraries)',
|
||||
'--stamp=<(stamp)',
|
||||
],
|
||||
}
|
|
@ -1,107 +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.
|
||||
|
||||
# Generates a script in the output bin directory which runs the test
|
||||
# target using the test runner script in build/android/pylib/test_runner.py.
|
||||
#
|
||||
# To use this, include this file in a gtest or instrumentation test target.
|
||||
# {
|
||||
# 'target_name': 'gtest',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'test_type': 'gtest', # string
|
||||
# 'test_suite_name': 'gtest_suite' # string
|
||||
# 'isolate_file': 'path/to/gtest.isolate' # string
|
||||
# },
|
||||
# 'includes': ['path/to/this/gypi/file'],
|
||||
# }
|
||||
#
|
||||
# {
|
||||
# 'target_name': 'instrumentation_apk',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'test_type': 'instrumentation', # string
|
||||
# 'apk_name': 'TestApk' # string
|
||||
# 'isolate_file': 'path/to/instrumentation_test.isolate' # string
|
||||
# },
|
||||
# 'includes': ['path/to/this/gypi/file'],
|
||||
# }
|
||||
#
|
||||
# {
|
||||
# 'target_name': 'junit_test',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'test_type': 'junit', # string
|
||||
# },
|
||||
# 'includes': ['path/to/this/gypi/file'],
|
||||
# }
|
||||
#
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'variables': {
|
||||
'additional_apks%': [],
|
||||
'isolate_file%': '',
|
||||
'shard_timeout%': '',
|
||||
'test_runner_path%': '',
|
||||
},
|
||||
'test_runner_args': ['--output-directory', '<(PRODUCT_DIR)'],
|
||||
'conditions': [
|
||||
['test_type == "gtest"', {
|
||||
'test_runner_args': ['--suite', '<(test_suite_name)'],
|
||||
'script_name': 'run_<(test_suite_name)',
|
||||
}],
|
||||
['test_type == "instrumentation"', {
|
||||
'test_runner_args': [
|
||||
'--apk-under-test', '>(tested_apk_path)',
|
||||
'--test-apk', '>(final_apk_path)',
|
||||
],
|
||||
'script_name': 'run_<(_target_name)',
|
||||
'conditions': [
|
||||
['emma_instrument != 0', {
|
||||
'test_runner_args': [
|
||||
'--coverage-dir', '<(PRODUCT_DIR)/coverage',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
['test_type == "junit"', {
|
||||
'test_runner_args': ['--test-suite', '<(_target_name)'],
|
||||
'script_name': 'run_<(_target_name)',
|
||||
}],
|
||||
['additional_apks != []', {
|
||||
'test_runner_args': ['--additional-apk-list', '>(additional_apks)'],
|
||||
}],
|
||||
['isolate_file != ""', {
|
||||
'test_runner_args': ['--isolate-file-path', '<(isolate_file)']
|
||||
}],
|
||||
['shard_timeout != ""', {
|
||||
'test_runner_args': ['--shard-timeout', '<(shard_timeout)']
|
||||
}],
|
||||
['test_runner_path != ""', {
|
||||
'test_runner_args': ['--test-runner-path', '<(test_runner_path)']
|
||||
}],
|
||||
],
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'create_test_runner_script_<(script_name)',
|
||||
'message': 'Creating test runner script <(script_name)',
|
||||
'variables': {
|
||||
'script_output_path': '<(PRODUCT_DIR)/bin/<(script_name)',
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/create_test_runner_script.py',
|
||||
],
|
||||
'outputs': [
|
||||
'<(script_output_path)'
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/create_test_runner_script.py',
|
||||
'--script-output-path=<(script_output_path)',
|
||||
'<(test_type)', '<@(test_runner_args)',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
# 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.
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'arch_suffix': '<(arch_suffix)',
|
||||
'variables': {
|
||||
# This help to find out if target_arch is set to something else.
|
||||
'arch_suffix': '<(target_arch)',
|
||||
'conditions': [
|
||||
['target_arch=="arm" or target_arch=="ia32" or target_arch=="mipsel"', {
|
||||
'arch_suffix': '32',
|
||||
}],
|
||||
['target_arch=="arm64" or target_arch=="x64" or target_arch=="mips64el"', {
|
||||
'arch_suffix':'64'
|
||||
}],
|
||||
],
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into an action to provide a rule that
|
||||
# generates a json file with the list of dependent libraries needed for a given
|
||||
# shared library or executable.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'actions': [
|
||||
# 'variables': {
|
||||
# 'input_libraries': 'shared library or executable to process',
|
||||
# 'ordered_libraries_file': 'file to generate'
|
||||
# },
|
||||
# 'includes': [ '../../build/android/write_ordered_libraries.gypi' ],
|
||||
# ],
|
||||
# },
|
||||
#
|
||||
|
||||
{
|
||||
'action_name': 'ordered_libraries_<(_target_name)<(subtarget)',
|
||||
'message': 'Writing dependency ordered libraries for <(_target_name)',
|
||||
'variables': {
|
||||
'input_libraries%': [],
|
||||
'subtarget%': '',
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/write_ordered_libraries.py',
|
||||
'<@(input_libraries)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(ordered_libraries_file)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/write_ordered_libraries.py',
|
||||
'--input-libraries=<(input_libraries)',
|
||||
'--libraries-dir=<(SHARED_LIB_DIR),<(PRODUCT_DIR)',
|
||||
'--readelf=<(android_readelf)',
|
||||
'--output=<(ordered_libraries_file)',
|
||||
],
|
||||
}
|
|
@ -1,44 +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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to build APK-based browser test suites.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'test_suite_name_apk',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'test_suite_name': 'test_suite_name', # string
|
||||
# 'java_in_dir': 'path/to/java/dir',
|
||||
# },
|
||||
# 'includes': ['path/to/this/gypi/file'],
|
||||
# }
|
||||
#
|
||||
|
||||
{
|
||||
'dependencies': [
|
||||
'<(DEPTH)/base/base.gyp:base_java',
|
||||
'<(DEPTH)/build/android/pylib/device/commands/commands.gyp:chromium_commands',
|
||||
'<(DEPTH)/build/android/pylib/remote/device/dummy/dummy.gyp:require_remote_device_dummy_apk',
|
||||
'<(DEPTH)/testing/android/appurify_support.gyp:appurify_support_java',
|
||||
'<(DEPTH)/testing/android/native_test.gyp:native_test_java',
|
||||
'<(DEPTH)/tools/android/android_tools.gyp:android_tools',
|
||||
],
|
||||
'conditions': [
|
||||
['OS == "android"', {
|
||||
'variables': {
|
||||
# These are used to configure java_apk.gypi included below.
|
||||
'test_type': 'gtest',
|
||||
'apk_name': '<(test_suite_name)',
|
||||
'intermediate_dir': '<(PRODUCT_DIR)/<(test_suite_name)_apk',
|
||||
'final_apk_path': '<(intermediate_dir)/<(test_suite_name)-debug.apk',
|
||||
'native_lib_target': 'lib<(test_suite_name)',
|
||||
# TODO(yfriedman, cjhopman): Support managed installs for gtests.
|
||||
'gyp_managed_install': 0,
|
||||
},
|
||||
'includes': [ 'java_apk.gypi', 'android/test_runner.gypi' ],
|
||||
}], # 'OS == "android"
|
||||
], # conditions
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to build Java in a consistent manner.
|
||||
|
||||
{
|
||||
'all_dependent_settings': {
|
||||
'variables': {
|
||||
'input_jars_paths': ['>(apk_output_jar_path)'],
|
||||
'library_dexed_jars_paths': ['>(apk_output_jar_path)'],
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,83 +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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to build APK based test suites.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'test_suite_name_apk',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'test_suite_name': 'test_suite_name', # string
|
||||
# 'input_jars_paths': ['/path/to/test_suite.jar', ... ], # list
|
||||
# },
|
||||
# 'includes': ['path/to/this/gypi/file'],
|
||||
# }
|
||||
#
|
||||
|
||||
{
|
||||
'dependencies': [
|
||||
'<(DEPTH)/base/base.gyp:base_java',
|
||||
'<(DEPTH)/build/android/pylib/device/commands/commands.gyp:chromium_commands',
|
||||
'<(DEPTH)/build/android/pylib/remote/device/dummy/dummy.gyp:require_remote_device_dummy_apk',
|
||||
'<(DEPTH)/testing/android/appurify_support.gyp:appurify_support_java',
|
||||
'<(DEPTH)/testing/android/on_device_instrumentation.gyp:reporter_java',
|
||||
'<(DEPTH)/testing/android/native_test.gyp:native_test_java',
|
||||
'<(DEPTH)/tools/android/android_tools.gyp:android_tools',
|
||||
],
|
||||
'conditions': [
|
||||
['OS == "android"', {
|
||||
'variables': {
|
||||
# These are used to configure java_apk.gypi included below.
|
||||
'test_type': 'gtest',
|
||||
'apk_name': '<(test_suite_name)',
|
||||
'intermediate_dir': '<(PRODUCT_DIR)/<(test_suite_name)_apk',
|
||||
'generated_src_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/<(test_suite_name)_jinja', ],
|
||||
'final_apk_path': '<(intermediate_dir)/<(test_suite_name)-debug.apk',
|
||||
'java_in_dir': '<(DEPTH)/build/android/empty',
|
||||
'native_lib_target': 'lib<(test_suite_name)',
|
||||
# TODO(yfriedman, cjhopman): Support managed installs for gtests.
|
||||
'gyp_managed_install': 0,
|
||||
'variables': {
|
||||
'use_native_activity%': "false",
|
||||
'android_manifest_path%': '',
|
||||
},
|
||||
'use_native_activity%': '<(use_native_activity)',
|
||||
'jinja_variables': [
|
||||
'native_library_name=<(test_suite_name)',
|
||||
'use_native_activity=<(use_native_activity)',
|
||||
],
|
||||
'conditions': [
|
||||
['component == "shared_library"', {
|
||||
'jinja_variables': [
|
||||
'is_component_build=true',
|
||||
],
|
||||
}, {
|
||||
'jinja_variables': [
|
||||
'is_component_build=false',
|
||||
],
|
||||
}],
|
||||
['android_manifest_path == ""', {
|
||||
'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/<(test_suite_name)_jinja/AndroidManifest.xml',
|
||||
'manifest_template': '<(DEPTH)/testing/android/native_test/java',
|
||||
}, {
|
||||
'android_manifest_path%': '<(android_manifest_path)',
|
||||
'manifest_template': '',
|
||||
}],
|
||||
],
|
||||
},
|
||||
'conditions': [
|
||||
['manifest_template != ""', {
|
||||
'variables': {
|
||||
'jinja_inputs': '<(manifest_template)/AndroidManifest.xml.jinja2',
|
||||
'jinja_output': '<(android_manifest_path)',
|
||||
},
|
||||
'includes': ['android/jinja_template.gypi'],
|
||||
}],
|
||||
],
|
||||
'includes': [ 'java_apk.gypi', 'android/test_runner.gypi' ],
|
||||
}], # 'OS == "android"
|
||||
], # conditions
|
||||
}
|
|
@ -1,123 +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.
|
||||
|
||||
# Generates a header with preprocessor defines specified by the build file.
|
||||
#
|
||||
# The canonical documentation is in build/buildflag_header.gni. You should
|
||||
# write the GN build, get it working, and then transform it into GYP.
|
||||
#
|
||||
# In every target that uses your generated header you must include a dependency
|
||||
# on the GYP target that generates the header (this is implicit in GN).
|
||||
# Otherwise, clean builds may not necessarily create the header before the
|
||||
# source code is compiled.
|
||||
#
|
||||
# Assuming your GN code looks like this:
|
||||
#
|
||||
# buildflag_header("foo_features") {
|
||||
# header = "foo_features.h"
|
||||
# flags = [
|
||||
# "ENABLE_DOOM_MELON=$enable_doom_melon",
|
||||
# "ENABLE_SPACE_LASER=true",
|
||||
# "SPAM_SERVER_URL=\"http://www.example.com/\"",
|
||||
# ]
|
||||
# }
|
||||
#
|
||||
# Write a GYP target like this:
|
||||
#
|
||||
# {
|
||||
# # GN version: //foo:foo_features
|
||||
# 'target_name': 'foo_foo_features',
|
||||
# 'includes': [ '../build/buildflag_header.gypi' ],
|
||||
# 'variables': {
|
||||
# 'buildflag_header_path': 'foo/foo_features.h',
|
||||
# 'buildflag_flags': [
|
||||
# 'ENABLE_DOOM_MELON=<(enable_doom_melon)',
|
||||
# 'ENABLE_SPACE_LASER=true',
|
||||
# 'SPAM_SERVER_URL="http://www.example.com/"',
|
||||
# ],
|
||||
# },
|
||||
# }
|
||||
#
|
||||
# Variables
|
||||
#
|
||||
# target_name
|
||||
# Base this on the GN label, replacing / and : with _ to make it globally
|
||||
# unique.
|
||||
#
|
||||
# buildflag_header_path
|
||||
# This must be the full path to the header from the source root. In GN
|
||||
# you only say "features.h" and it uses the BUILD file's path implicitly.
|
||||
# Use the path to BUILD.gn followed by your header name to produce the
|
||||
# same output file.
|
||||
#
|
||||
# buildflag_flags (optional)
|
||||
# List of the same format as GN's "flags". To expand variables, use
|
||||
# "<(foo)" where GN would have used "$foo".
|
||||
#
|
||||
# includes
|
||||
# List the relative path to build/buildflag_header.gypi from the .gyp
|
||||
# file including this code, Note: If your code is in a .gypi file in a
|
||||
# different directory, this must be relative to the .gyp including your
|
||||
# file.
|
||||
#
|
||||
#
|
||||
# Grit defines
|
||||
#
|
||||
# Follow the same advice as in the buildflag_header.gni, except on the grit
|
||||
# action use the variable name 'grit_additional_defines' and explicitly add a
|
||||
# '-D' in front:
|
||||
#
|
||||
# 'grit_grd_file': 'foo.grd',
|
||||
# 'grit_additional_defines': [
|
||||
# '-D', 'enable_doom_melon=<(enable_doom_melon)',
|
||||
# ],
|
||||
#
|
||||
# Put shared lists of defines in a .gypi.
|
||||
|
||||
{
|
||||
'type': 'none',
|
||||
'hard_dependency': 1,
|
||||
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'buildflag_header',
|
||||
'variables': {
|
||||
# Default these values to empty if they're not defined.
|
||||
'variables': {
|
||||
'buildflag_flags%': [],
|
||||
},
|
||||
|
||||
# Writes the flags to a response file with a name based on the name of
|
||||
# this target.
|
||||
'response_file_name': '<|(<(_target_name)_buildflag_header.rsp --flags <@(buildflag_flags))',
|
||||
|
||||
'build_header_script': '<(DEPTH)/build/write_buildflag_header.py',
|
||||
},
|
||||
|
||||
'message': 'Generating build header.',
|
||||
|
||||
'inputs': [
|
||||
'<(build_header_script)',
|
||||
'<(response_file_name)',
|
||||
],
|
||||
|
||||
'outputs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(buildflag_header_path)',
|
||||
],
|
||||
|
||||
'action': [
|
||||
'python', '<(build_header_script)',
|
||||
'--output', '<(buildflag_header_path)',
|
||||
'--rulename', '<(_target_name)',
|
||||
'--gen-dir', '<(SHARED_INTERMEDIATE_DIR)',
|
||||
'--definitions', '<(response_file_name)',
|
||||
],
|
||||
}
|
||||
],
|
||||
|
||||
# Allow the file to be included based on the given buildflag_header_path.
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
|
||||
},
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file contains settings for ../chrome/chrome.gyp that other gyp files
|
||||
# also use.
|
||||
{
|
||||
'variables': {
|
||||
# TODO: remove this helper when we have loops in GYP
|
||||
'apply_locales_cmd': ['python', '<(DEPTH)/build/apply_locales.py'],
|
||||
'grit_defines': ['-D', 'version=<(version_full)'],
|
||||
'includes': ['util/version.gypi'],
|
||||
|
||||
'conditions': [
|
||||
['OS=="mac"', {
|
||||
'conditions': [
|
||||
['branding=="Chrome"', {
|
||||
'mac_bundle_id': 'com.google.Chrome',
|
||||
'mac_creator': 'rimZ',
|
||||
# The policy .grd file also needs the bundle id.
|
||||
'grit_defines': ['-D', 'mac_bundle_id=com.google.Chrome'],
|
||||
}, { # else: branding!="Chrome"
|
||||
'mac_bundle_id': 'org.chromium.Chromium',
|
||||
'mac_creator': 'Cr24',
|
||||
# The policy .grd file also needs the bundle id.
|
||||
'grit_defines': ['-D', 'mac_bundle_id=org.chromium.Chromium'],
|
||||
}], # branding
|
||||
], # conditions
|
||||
}], # OS=="mac"
|
||||
], # conditions
|
||||
}, # variables
|
||||
}
|
6348
common.gypi
6348
common.gypi
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,40 +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.
|
||||
|
||||
# This GYP file should be included for every target in Chromium that is built
|
||||
# using the NaCl toolchain.
|
||||
{
|
||||
'includes': [
|
||||
'../native_client/build/untrusted.gypi',
|
||||
],
|
||||
'target_defaults': {
|
||||
'conditions': [
|
||||
# TODO(bradnelson): Drop this once the nacl side does the same.
|
||||
['target_arch=="x64"', {
|
||||
'variables': {
|
||||
'enable_x86_32': 0,
|
||||
},
|
||||
}],
|
||||
['target_arch=="ia32" and OS!="win"', {
|
||||
'variables': {
|
||||
'enable_x86_64': 0,
|
||||
},
|
||||
}],
|
||||
['target_arch=="arm"', {
|
||||
'variables': {
|
||||
'clang': 1,
|
||||
},
|
||||
'defines': [
|
||||
# Needed by build/build_config.h processor architecture detection.
|
||||
'__ARMEL__',
|
||||
# Needed by base/third_party/nspr/prtime.cc.
|
||||
'__arm__',
|
||||
# Disable ValGrind. The assembly code it generates causes the build
|
||||
# to fail.
|
||||
'NVALGRIND',
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
}
|
|
@ -1,48 +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.
|
||||
|
||||
# This file is meant to be included into an action to copy test data files into
|
||||
# an iOS app bundle. To use this the following variables need to be defined:
|
||||
# test_data_files: list: paths to test data files or directories
|
||||
# test_data_prefix: string: a directory prefix that will be prepended to each
|
||||
# output path. Generally, this should be the base
|
||||
# directory of the gypi file containing the unittest
|
||||
# target (e.g. "base" or "chrome").
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'my_unittests',
|
||||
# 'conditions': [
|
||||
# ['OS == "ios"', {
|
||||
# 'actions': [
|
||||
# {
|
||||
# 'action_name': 'copy_test_data',
|
||||
# 'variables': {
|
||||
# 'test_data_files': [
|
||||
# 'path/to/datafile.txt',
|
||||
# 'path/to/data/directory/',
|
||||
# ]
|
||||
# 'test_data_prefix' : 'prefix',
|
||||
# },
|
||||
# 'includes': ['path/to/this/gypi/file'],
|
||||
# },
|
||||
# ],
|
||||
# }],
|
||||
# }
|
||||
#
|
||||
|
||||
{
|
||||
'inputs': [
|
||||
'<!@pymod_do_main(copy_test_data_ios --inputs <(test_data_files))',
|
||||
],
|
||||
'outputs': [
|
||||
'<!@pymod_do_main(copy_test_data_ios -o <(PRODUCT_DIR)/<(_target_name).app/<(test_data_prefix) --outputs <(test_data_files))',
|
||||
],
|
||||
'action': [
|
||||
'python',
|
||||
'<(DEPTH)/build/copy_test_data_ios.py',
|
||||
'-o', '<(PRODUCT_DIR)/<(_target_name).app/<(test_data_prefix)',
|
||||
'<@(_inputs)',
|
||||
],
|
||||
}
|
|
@ -1,102 +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.
|
||||
|
||||
# This gypi file defines the patterns used for determining whether a
|
||||
# file is excluded from the build on a given platform. It is
|
||||
# included by common.gypi for chromium_code.
|
||||
|
||||
{
|
||||
'target_conditions': [
|
||||
['OS!="win" or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [ ['exclude', '_win(_browsertest|_unittest|_test)?\\.(h|cc)$'],
|
||||
['exclude', '(^|/)win/'],
|
||||
['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ],
|
||||
}],
|
||||
['OS!="mac" or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [ ['exclude', '_(cocoa|mac|mach)(_unittest|_test)?\\.(h|cc|c|mm?)$'],
|
||||
['exclude', '(^|/)(cocoa|mac|mach)/'] ],
|
||||
}],
|
||||
['OS!="ios" or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [ ['exclude', '_ios(_unittest|_test)?\\.(h|cc|mm?)$'],
|
||||
['exclude', '(^|/)ios/'] ],
|
||||
}],
|
||||
['(OS!="mac" and OS!="ios") or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [ ['exclude', '\\.mm?$' ] ],
|
||||
}],
|
||||
# Do not exclude the linux files on *BSD since most of them can be
|
||||
# shared at this point.
|
||||
# In case a file is not needed, it is going to be excluded later on.
|
||||
# TODO(evan): the above is not correct; we shouldn't build _linux
|
||||
# files on non-linux.
|
||||
['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [
|
||||
['exclude', '_linux(_unittest|_test)?\\.(h|cc)$'],
|
||||
['exclude', '(^|/)linux/'],
|
||||
],
|
||||
}],
|
||||
['OS!="android" or _toolset=="host" or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [
|
||||
['exclude', '_android(_unittest|_test)?\\.(h|cc)$'],
|
||||
['exclude', '(^|/)android/'],
|
||||
],
|
||||
}],
|
||||
['OS=="win" and >(nacl_untrusted_build)==0', {
|
||||
'sources/': [
|
||||
['exclude', '_posix(_unittest|_test)?\\.(h|cc)$'],
|
||||
['exclude', '(^|/)posix/'],
|
||||
],
|
||||
}],
|
||||
['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [
|
||||
['exclude', '_chromeos(_unittest|_test)?\\.(h|cc)$'],
|
||||
['exclude', '(^|/)chromeos/'],
|
||||
],
|
||||
}],
|
||||
['>(nacl_untrusted_build)==0', {
|
||||
'sources/': [
|
||||
['exclude', '_nacl(_unittest)?\\.(h|cc)$'],
|
||||
],
|
||||
}],
|
||||
['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [
|
||||
['exclude', '_xdg(_unittest)?\\.(h|cc)$'],
|
||||
],
|
||||
}],
|
||||
['<(use_x11)!=1 or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [
|
||||
['exclude', '_(x|x11)(_interactive_uitest|_unittest)?\\.(h|cc)$'],
|
||||
['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'],
|
||||
['exclude', '(^|/)x11/'],
|
||||
['exclude', '(^|/)x/'],
|
||||
],
|
||||
}],
|
||||
['<(toolkit_views)==0 or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [ ['exclude', '_views(_browsertest|_unittest)?\\.(h|cc)$'] ]
|
||||
}],
|
||||
['<(use_aura)==0 or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [ ['exclude', '_aura(_browsertest|_unittest)?\\.(h|cc)$'],
|
||||
['exclude', '(^|/)aura/'],
|
||||
['exclude', '_ash(_browsertest|_unittest)?\\.(h|cc)$'],
|
||||
['exclude', '(^|/)ash/'],
|
||||
]
|
||||
}],
|
||||
['<(use_aura)==0 or <(use_x11)==0 or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [ ['exclude', '_aurax11(_browsertest|_unittest)?\\.(h|cc)$'] ]
|
||||
}],
|
||||
['<(use_aura)==0 or OS!="win" or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'],
|
||||
['exclude', '_ashwin\\.(h|cc)$']
|
||||
]
|
||||
}],
|
||||
['<(use_aura)==0 or OS!="linux" or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [ ['exclude', '_auralinux\\.(h|cc)$'] ]
|
||||
}],
|
||||
['<(use_ozone)==0 or >(nacl_untrusted_build)==1', {
|
||||
'sources/': [ ['exclude', '_ozone(_browsertest|_unittest)?\\.(h|cc)$'] ]
|
||||
}],
|
||||
['<(use_pango)==0', {
|
||||
'sources/': [ ['exclude', '(^|_)pango(_util|_browsertest|_unittest)?\\.(h|cc)$'], ],
|
||||
}],
|
||||
]
|
||||
}
|
|
@ -1,763 +0,0 @@
|
|||
# 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 five targets that we are using to track the progress of the
|
||||
# GYP->GN migration:
|
||||
#
|
||||
# 'both_gn_and_gyp' lists what GN is currently capable of building and should
|
||||
# match the 'both_gn_and_gyp' target in //BUILD.gn.
|
||||
#
|
||||
# 'gyp_all' Should include everything built when building "all"; i.e., if you
|
||||
# type 'ninja gyp_all' and then 'ninja all', the second build should do
|
||||
# nothing. 'gyp_all' should just depend on the other four targets.
|
||||
#
|
||||
# 'gyp_remaining' lists all of the targets that still need to be converted,
|
||||
# i.e., all of the other (non-empty) targets that a GYP build will build.
|
||||
|
||||
{
|
||||
'includes': [
|
||||
'../media/media_variables.gypi'
|
||||
],
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'gyp_all',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'both_gn_and_gyp',
|
||||
'gyp_remaining',
|
||||
]
|
||||
},
|
||||
{
|
||||
# This target should mirror the structure of //:both_gn_and_gyp
|
||||
# in src/BUILD.gn as closely as possible, for ease of comparison.
|
||||
'target_name': 'both_gn_and_gyp',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'../base/base.gyp:base_i18n_perftests',
|
||||
'../base/base.gyp:base_perftests',
|
||||
'../base/base.gyp:base_unittests',
|
||||
'../base/base.gyp:check_example',
|
||||
'../cc/cc_tests.gyp:cc_perftests',
|
||||
'../cc/cc_tests.gyp:cc_unittests',
|
||||
'../cc/blink/cc_blink_tests.gyp:cc_blink_unittests',
|
||||
'../chrome/chrome.gyp:load_library_perf_tests',
|
||||
'../chrome/chrome.gyp:unit_tests',
|
||||
'../components/components.gyp:network_hints_browser',
|
||||
'../components/components.gyp:policy_templates',
|
||||
'../components/components_tests.gyp:components_browsertests',
|
||||
'../components/components_tests.gyp:components_perftests',
|
||||
'../components/components_tests.gyp:components_unittests',
|
||||
'../content/content.gyp:content_app_browser',
|
||||
'../content/content.gyp:content_app_child',
|
||||
'../content/content_shell_and_tests.gyp:content_browsertests',
|
||||
'../content/content_shell_and_tests.gyp:content_perftests',
|
||||
'../content/content_shell_and_tests.gyp:content_unittests',
|
||||
'../crypto/crypto.gyp:crypto_unittests',
|
||||
'../device/device_tests.gyp:device_unittests',
|
||||
'../gin/gin.gyp:gin_v8_snapshot_fingerprint',
|
||||
'../gpu/gpu.gyp:angle_unittests',
|
||||
'../gpu/gpu.gyp:gl_tests',
|
||||
'../gpu/gpu.gyp:gpu_perftests',
|
||||
'../gpu/gpu.gyp:gpu_unittests',
|
||||
'../ipc/ipc.gyp:ipc_tests',
|
||||
'../media/cast/cast.gyp:cast_unittests',
|
||||
'../media/media.gyp:media_perftests',
|
||||
'../media/media.gyp:media_unittests',
|
||||
'../media/midi/midi.gyp:midi_unittests',
|
||||
'../net/net.gyp:dump_cache',
|
||||
'../net/net.gyp:net_perftests',
|
||||
'../net/net.gyp:net_unittests',
|
||||
'../printing/printing.gyp:printing_unittests',
|
||||
'../skia/skia_tests.gyp:skia_unittests',
|
||||
'../sql/sql.gyp:sql_unittests',
|
||||
'../testing/gmock.gyp:gmock_main',
|
||||
'../third_party/WebKit/Source/platform/blink_platform_tests.gyp:blink_heap_unittests',
|
||||
'../third_party/WebKit/Source/platform/blink_platform_tests.gyp:blink_platform_unittests',
|
||||
'../third_party/WebKit/Source/web/web_tests.gyp:webkit_unit_tests',
|
||||
'../third_party/WebKit/Source/wtf/wtf_tests.gyp:wtf_unittests',
|
||||
'../third_party/boringssl/boringssl_tests.gyp:boringssl_unittests',
|
||||
'../third_party/leveldatabase/leveldatabase.gyp:env_chromium_unittests',
|
||||
'../third_party/libaddressinput/libaddressinput.gyp:libaddressinput_unittests',
|
||||
'../third_party/smhasher/smhasher.gyp:pmurhash',
|
||||
'../third_party/catapult/telemetry/telemetry.gyp:bitmaptools#host',
|
||||
'../ui/accessibility/accessibility.gyp:accessibility_unittests',
|
||||
'../ui/base/ui_base_tests.gyp:ui_base_unittests',
|
||||
'../ui/display/display.gyp:display_unittests',
|
||||
'../ui/events/events_unittests.gyp:events_unittests',
|
||||
'../ui/gfx/gfx_tests.gyp:gfx_unittests',
|
||||
'../ui/gl/gl_tests.gyp:gl_unittests',
|
||||
'../ui/snapshot/snapshot.gyp:snapshot_unittests',
|
||||
'../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_unittests',
|
||||
'../url/url.gyp:url_unittests',
|
||||
'../v8/src/v8.gyp:v8_snapshot',
|
||||
'../v8/src/v8.gyp:postmortem-metadata',
|
||||
],
|
||||
'conditions': [
|
||||
['clang==1', {
|
||||
'dependencies': [
|
||||
'../build/sanitizers/sanitizers.gyp:llvm-symbolizer',
|
||||
],
|
||||
}],
|
||||
['disable_nacl==0 and disable_nacl_untrusted==0', {
|
||||
'dependencies': [
|
||||
'../components/nacl.gyp:nacl_loader_unittests',
|
||||
]
|
||||
}],
|
||||
['enable_extensions==1', {
|
||||
'dependencies': [
|
||||
'../extensions/shell/app_shell.gyp:app_shell',
|
||||
'../extensions/shell/app_shell.gyp:app_shell_unittests',
|
||||
],
|
||||
}],
|
||||
['enable_mdns==1', {
|
||||
'dependencies': [
|
||||
'../chrome/chrome.gyp:service_discovery_sniffer',
|
||||
]
|
||||
}],
|
||||
['remoting==1', {
|
||||
'dependencies': [
|
||||
'../remoting/remoting_all.gyp:remoting_all',
|
||||
],
|
||||
}],
|
||||
['remoting==1 and chromeos==0 and use_x11==1', {
|
||||
'dependencies': [
|
||||
'../remoting/remoting.gyp:remoting_me2me_host',
|
||||
'../remoting/remoting.gyp:remoting_me2me_native_messaging_host',
|
||||
],
|
||||
}],
|
||||
['toolkit_views==1', {
|
||||
'dependencies': [
|
||||
'../ui/views/views.gyp:views_unittests',
|
||||
],
|
||||
}],
|
||||
['enable_app_list==1', {
|
||||
'dependencies': [
|
||||
'../ui/app_list/app_list.gyp:app_list_demo',
|
||||
],
|
||||
}],
|
||||
['use_ash==1', {
|
||||
'dependencies': [
|
||||
'../ash/ash.gyp:ash_shell_with_content',
|
||||
'../ash/ash.gyp:ash_unittests',
|
||||
],
|
||||
}],
|
||||
['use_ash==1 or chromeos== 1', {
|
||||
'dependencies': [
|
||||
'../components/components.gyp:session_manager_component',
|
||||
]
|
||||
}],
|
||||
['use_aura==1', {
|
||||
'dependencies': [
|
||||
'../ui/aura/aura.gyp:aura_demo',
|
||||
'../ui/aura/aura.gyp:aura_unittests',
|
||||
'../ui/keyboard/keyboard.gyp:keyboard_unittests',
|
||||
'../ui/wm/wm.gyp:wm_unittests',
|
||||
],
|
||||
}],
|
||||
['use_ozone==1', {
|
||||
'dependencies': [
|
||||
'../ui/ozone/ozone.gyp:ozone',
|
||||
],
|
||||
}],
|
||||
['use_x11==1', {
|
||||
'dependencies': [
|
||||
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
|
||||
],
|
||||
'conditions': [
|
||||
['target_arch!="arm"', {
|
||||
'dependencies': [
|
||||
'../gpu/tools/tools.gyp:compositor_model_bench',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
['OS=="android"', {
|
||||
'dependencies': [
|
||||
'../base/base.gyp:base_junit_tests',
|
||||
'../base/base.gyp:base_perftests_apk',
|
||||
'../base/base.gyp:base_unittests_apk',
|
||||
'../base/base.gyp:chromium_android_linker',
|
||||
'../breakpad/breakpad.gyp:breakpad_unittests_deps',
|
||||
'../breakpad/breakpad.gyp:symupload#host',
|
||||
'../breakpad/breakpad.gyp:microdump_stackwalk#host',
|
||||
'../breakpad/breakpad.gyp:minidump_dump#host',
|
||||
'../breakpad/breakpad.gyp:minidump_stackwalk#host',
|
||||
'../build/android/rezip.gyp:rezip_apk_jar',
|
||||
'../cc/blink/cc_blink_tests.gyp:cc_blink_unittests_apk',
|
||||
'../cc/cc_tests.gyp:cc_perftests_apk',
|
||||
'../cc/cc_tests.gyp:cc_unittests_apk',
|
||||
#"//clank" TODO(GYP) - conditional somehow?
|
||||
'../components/components.gyp:cronet_package',
|
||||
'../components/components.gyp:cronet_sample_apk',
|
||||
'../components/components.gyp:cronet_sample_test_apk',
|
||||
'../components/components.gyp:cronet_test_apk',
|
||||
'../components/components.gyp:cronet_test_instrumentation_apk',
|
||||
'../components/components.gyp:cronet_unittests_apk',
|
||||
'../components/components_tests.gyp:components_browsertests_apk',
|
||||
'../components/components_tests.gyp:components_junit_tests',
|
||||
'../components/components_tests.gyp:components_unittests_apk',
|
||||
'../content/content_shell_and_tests.gyp:chromium_linker_test_apk',
|
||||
'../content/content_shell_and_tests.gyp:content_browsertests_apk',
|
||||
'../content/content_shell_and_tests.gyp:content_junit_tests',
|
||||
'../content/content_shell_and_tests.gyp:content_shell_apk',
|
||||
'../content/content_shell_and_tests.gyp:content_shell_test_apk',
|
||||
'../content/content_shell_and_tests.gyp:content_unittests_apk',
|
||||
'../device/device_tests.gyp:device_unittests_apk',
|
||||
'../gpu/gpu.gyp:command_buffer_gles2_tests_apk',
|
||||
'../gpu/gpu.gyp:gl_tests_apk',
|
||||
'../gpu/gpu.gyp:gpu_perftests_apk',
|
||||
'../gpu/gpu.gyp:gpu_unittests_apk',
|
||||
'../ipc/ipc.gyp:ipc_tests_apk',
|
||||
'../media/cast/cast.gyp:cast_unittests_apk',
|
||||
'../media/media.gyp:media_perftests_apk',
|
||||
'../media/media.gyp:media_unittests_apk',
|
||||
'../media/media.gyp:video_decode_accelerator_unittest_apk',
|
||||
'../media/midi/midi.gyp:midi_unittests_apk',
|
||||
'../net/net.gyp:net_junit_tests',
|
||||
'../net/net.gyp:net_unittests_apk',
|
||||
'../sandbox/sandbox.gyp:sandbox_linux_unittests_deps',
|
||||
'../skia/skia_tests.gyp:skia_unittests_apk',
|
||||
'../sql/sql.gyp:sql_unittests_apk',
|
||||
'../testing/android/junit/junit_test.gyp:junit_unit_tests',
|
||||
'../third_party/smhasher/smhasher.gyp:murmurhash3',
|
||||
'../third_party/WebKit/Source/platform/blink_platform_tests.gyp:blink_heap_unittests_apk',
|
||||
'../third_party/WebKit/Source/platform/blink_platform_tests.gyp:blink_platform_unittests_apk',
|
||||
'../third_party/WebKit/Source/web/web_tests.gyp:webkit_unit_tests_apk',
|
||||
'../third_party/WebKit/Source/wtf/wtf_tests.gyp:wtf_unittests_apk',
|
||||
'../tools/android/heap_profiler/heap_profiler.gyp:heap_profiler_unittests_apk',
|
||||
'../tools/android/android_tools.gyp:memconsumer',
|
||||
'../tools/android/android_tools.gyp:push_apps_to_background',
|
||||
'../tools/imagediff/image_diff.gyp:image_diff#host',
|
||||
'../third_party/catapult/telemetry/telemetry.gyp:bitmaptools#host',
|
||||
'../ui/android/ui_android.gyp:ui_android_unittests_apk',
|
||||
'../ui/android/ui_android.gyp:ui_junit_tests',
|
||||
'../ui/base/ui_base_tests.gyp:ui_base_unittests_apk',
|
||||
'../ui/events/events_unittests.gyp:events_unittests_apk',
|
||||
'../ui/gfx/gfx_tests.gyp:gfx_unittests_apk',
|
||||
'../ui/gl/gl_tests.gyp:gl_unittests_apk',
|
||||
'../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_unittests_apk',
|
||||
|
||||
#"//third_party/android_tools:uiautomator_java",
|
||||
],
|
||||
'dependencies!': [
|
||||
# TODO(GYP): All of these targets need to be ported over.
|
||||
'../url/url.gyp:url_unittests',
|
||||
],
|
||||
}],
|
||||
['OS=="android" and chromecast==0', {
|
||||
'dependencies': [
|
||||
'../android_webview/android_webview_shell.gyp:system_webview_shell_apk',
|
||||
'../android_webview/android_webview_shell.gyp:system_webview_shell_layout_test_apk',
|
||||
'../android_webview/android_webview_shell.gyp:system_webview_shell_page_cycler_apk',
|
||||
'../chrome/android/chrome_apk.gyp:chrome_public_apk',
|
||||
'../chrome/android/chrome_apk.gyp:chrome_public_test_apk',
|
||||
'../chrome/android/chrome_apk.gyp:chrome_sync_shell_apk',
|
||||
'../chrome/android/chrome_apk.gyp:chrome_sync_shell_test_apk',
|
||||
'../chrome/chrome.gyp:chromedriver_webview_shell_apk',
|
||||
'../chrome/chrome.gyp:chrome_junit_tests',
|
||||
'../chrome/chrome.gyp:unit_tests_apk',
|
||||
'../third_party/custom_tabs_client/custom_tabs_client.gyp:custom_tabs_client_example_apk',
|
||||
],
|
||||
}],
|
||||
['OS!="android"', {
|
||||
'dependencies': [
|
||||
'../base/base.gyp:build_utf8_validator_tables#host',
|
||||
'../chrome/chrome.gyp:chrome_app_unittests',
|
||||
'../chrome/chrome.gyp:chromedriver',
|
||||
'../chrome/chrome.gyp:chromedriver_tests',
|
||||
'../chrome/chrome.gyp:chromedriver_unittests',
|
||||
'../content/content_shell_and_tests.gyp:content_shell',
|
||||
'../courgette/courgette.gyp:courgette',
|
||||
'../courgette/courgette.gyp:courgette_fuzz',
|
||||
'../courgette/courgette.gyp:courgette_minimal_tool',
|
||||
'../courgette/courgette.gyp:courgette_unittests',
|
||||
'../gin/gin.gyp:gin_unittests',
|
||||
'../gpu/gles2_conform_support/gles2_conform_support.gyp:gles2_conform_support', # TODO(GYP) crbug.com/471920
|
||||
'../google_apis/gcm/gcm.gyp:gcm_unit_tests',
|
||||
'../google_apis/gcm/gcm.gyp:mcs_probe',
|
||||
'../google_apis/google_apis.gyp:google_apis_unittests',
|
||||
'../jingle/jingle.gyp:jingle_unittests',
|
||||
'../mojo/mojo.gyp:mojo',
|
||||
'../mojo/mojo_edk_tests.gyp:mojo_system_unittests',
|
||||
'../mojo/mojo_edk_tests.gyp:mojo_public_bindings_unittests',
|
||||
'../mojo/mojo_edk_tests.gyp:mojo_public_system_perftests',
|
||||
'../mojo/mojo_edk_tests.gyp:mojo_public_system_unittests',
|
||||
'../net/net.gyp:crash_cache',
|
||||
'../net/net.gyp:crl_set_dump',
|
||||
'../net/net.gyp:dns_fuzz_stub',
|
||||
'../net/net.gyp:gdig',
|
||||
'../net/net.gyp:get_server_time',
|
||||
'../net/net.gyp:hpack_example_generator',
|
||||
'../net/net.gyp:hpack_fuzz_mutator',
|
||||
'../net/net.gyp:hpack_fuzz_wrapper',
|
||||
'../net/net.gyp:net_watcher', # TODO(GYP): This should be conditional on use_v8_in_net
|
||||
'../net/net.gyp:run_testserver',
|
||||
'../net/net.gyp:stress_cache',
|
||||
'../net/net.gyp:tld_cleanup',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_audio',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_audio_input',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_c_stub',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_cc_stub',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_compositor',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_crxfs',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_enumerate_devices',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_file_chooser',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_flash_topmost',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_gamepad',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_gles2',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_gles2_spinning_cube',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_graphics_2d',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_ime',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_input',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_media_stream_audio',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_media_stream_video',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_mouse_cursor',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_mouse_lock',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_paint_manager',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_post_message',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_printing',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_scaling',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_scroll',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_simple_font',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_threading',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_url_loader',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_url_loader_file',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_vc',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_video_decode',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_video_decode_dev',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_video_effects',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_example_video_encode',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_tests',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_perftests',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_unittests',
|
||||
'../components/sync.gyp:run_sync_testserver',
|
||||
'../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_unittests',
|
||||
'../third_party/libphonenumber/libphonenumber.gyp:libphonenumber_unittests',
|
||||
'../tools/imagediff/image_diff.gyp:image_diff',
|
||||
'../ui/compositor/compositor.gyp:compositor_unittests',
|
||||
],
|
||||
}],
|
||||
['enable_app_list==1', {
|
||||
'dependencies': [
|
||||
'../ui/app_list/app_list.gyp:app_list_unittests',
|
||||
],
|
||||
}],
|
||||
['OS!="android" and chromecast==0', {
|
||||
'dependencies': [
|
||||
'../chrome/chrome.gyp:browser_tests',
|
||||
'../chrome/chrome.gyp:chrome',
|
||||
'../chrome/chrome.gyp:interactive_ui_tests',
|
||||
'../chrome/chrome.gyp:performance_browser_tests',
|
||||
'../chrome/chrome.gyp:sync_integration_tests',
|
||||
'../chrome/chrome.gyp:sync_performance_tests',
|
||||
'../extensions/extensions_tests.gyp:extensions_browsertests',
|
||||
'../extensions/extensions_tests.gyp:extensions_unittests',
|
||||
'../gin/gin.gyp:gin_shell',
|
||||
'../gpu/gles2_conform_support/gles2_conform_test.gyp:gles2_conform_test', # TODO(GYP) crbug.com/471920
|
||||
'../gpu/khronos_glcts_support/khronos_glcts_test.gyp:khronos_glcts_test', # TODO(GYP) crbug.com/471903 to make this complete.
|
||||
'../ipc/ipc.gyp:ipc_perftests',
|
||||
'../mojo/mojo_base.gyp:mojo_common_unittests',
|
||||
'../ppapi/tools/ppapi_tools.gyp:pepper_hash_for_uma',
|
||||
'../skia/skia.gyp:filter_fuzz_stub',
|
||||
'../skia/skia.gyp:image_operations_bench',
|
||||
'../components/sync/tools/sync_tools.gyp:sync_client',
|
||||
'../components/sync/tools/sync_tools.gyp:sync_listen_notifications',
|
||||
'../third_party/codesighs/codesighs.gyp:codesighs',
|
||||
'../third_party/codesighs/codesighs.gyp:maptsvdifftool',
|
||||
'../third_party/pdfium/samples/samples.gyp:pdfium_diff',
|
||||
'../third_party/pdfium/samples/samples.gyp:pdfium_test',
|
||||
'../tools/battor_agent/battor_agent.gyp:battor_agent',
|
||||
'../tools/battor_agent/battor_agent.gyp:battor_agent_unittests',
|
||||
'../tools/gn/gn.gyp:gn',
|
||||
'../tools/gn/gn.gyp:gn_unittests',
|
||||
'../tools/perf/clear_system_cache/clear_system_cache.gyp:clear_system_cache',
|
||||
'../ui/message_center/message_center.gyp:message_center_unittests',
|
||||
'../ui/views/examples/examples.gyp:views_examples_with_content_exe',
|
||||
],
|
||||
}],
|
||||
['media_use_ffmpeg==1 and OS!="android"', {
|
||||
'dependencies': [
|
||||
'../media/media.gyp:ffmpeg_regression_tests',
|
||||
],
|
||||
}],
|
||||
['OS=="android" or OS=="linux"', {
|
||||
'dependencies': [
|
||||
'../net/net.gyp:disk_cache_memory_test',
|
||||
],
|
||||
}],
|
||||
['chromeos==1', {
|
||||
'dependencies': [
|
||||
'../chromeos/chromeos.gyp:chromeos_unittests',
|
||||
'../ui/chromeos/ui_chromeos.gyp:ui_chromeos_unittests',
|
||||
'../ui/arc/arc.gyp:ui_arc_unittests',
|
||||
]
|
||||
}],
|
||||
['chromeos==1 or OS=="win" or OS=="mac"', {
|
||||
'dependencies': [
|
||||
'../rlz/rlz.gyp:rlz_id',
|
||||
'../rlz/rlz.gyp:rlz_lib',
|
||||
'../rlz/rlz.gyp:rlz_unittests',
|
||||
],
|
||||
}],
|
||||
['OS=="linux" or OS=="android" or os_bsd==1', {
|
||||
'dependencies': [
|
||||
'../breakpad/breakpad.gyp:breakpad_unittests',
|
||||
'../breakpad/breakpad.gyp:core-2-minidump',
|
||||
'../breakpad/breakpad.gyp:dump_syms#host',
|
||||
'../breakpad/breakpad.gyp:generate_test_dump',
|
||||
'../breakpad/breakpad.gyp:minidump-2-core',
|
||||
],
|
||||
}],
|
||||
['OS=="linux" or os_bsd==1', {
|
||||
'dependencies': [
|
||||
'../breakpad/breakpad.gyp:microdump_stackwalk',
|
||||
'../breakpad/breakpad.gyp:minidump_dump',
|
||||
'../breakpad/breakpad.gyp:minidump_stackwalk',
|
||||
'../breakpad/breakpad.gyp:symupload',
|
||||
'../third_party/codesighs/codesighs.gyp:nm2tsv',
|
||||
],
|
||||
}],
|
||||
['OS=="linux"', {
|
||||
'dependencies': [
|
||||
'../dbus/dbus.gyp:dbus_test_server',
|
||||
'../dbus/dbus.gyp:dbus_unittests',
|
||||
'../media/cast/cast.gyp:cast_testing_tools',
|
||||
'../media/cast/cast.gyp:tap_proxy',
|
||||
'../net/net.gyp:disk_cache_memory_test',
|
||||
'../net/net.gyp:epoll_quic_client',
|
||||
'../net/net.gyp:epoll_quic_server',
|
||||
'../net/net.gyp:hpack_example_generator',
|
||||
'../net/net.gyp:hpack_fuzz_mutator',
|
||||
'../net/net.gyp:hpack_fuzz_wrapper',
|
||||
'../net/net.gyp:net_perftests',
|
||||
'../net/net.gyp:quic_client',
|
||||
'../net/net.gyp:quic_server',
|
||||
'../sandbox/sandbox.gyp:chrome_sandbox',
|
||||
'../sandbox/sandbox.gyp:sandbox_linux_unittests',
|
||||
'../third_party/sqlite/sqlite.gyp:sqlite_shell',
|
||||
],
|
||||
}],
|
||||
['OS=="mac"', {
|
||||
'dependencies': [
|
||||
'../breakpad/breakpad.gyp:crash_inspector',
|
||||
'../breakpad/breakpad.gyp:dump_syms',
|
||||
'../breakpad/breakpad.gyp:symupload',
|
||||
'../third_party/apple_sample_code/apple_sample_code.gyp:apple_sample_code',
|
||||
'../third_party/molokocacao/molokocacao.gyp:molokocacao',
|
||||
|
||||
# TODO(GYP): remove these when the corresponding root targets work.
|
||||
#"//cc/blink",
|
||||
#"//components/ui/zoom",
|
||||
#"//content",
|
||||
#"//content/test:test_support",
|
||||
#"//device/battery",
|
||||
#"//device/bluetooth",
|
||||
#"//device/usb",
|
||||
#"//device/vibration",
|
||||
#"//media/blink",
|
||||
#"//pdf",
|
||||
#"//storage/browser",
|
||||
#"//third_party/brotli",
|
||||
#"//third_party/flac",
|
||||
#"//third_party/hunspell",
|
||||
#//third_party/iccjpeg",
|
||||
#"//third_party/libphonenumber",
|
||||
#"//third_party/ots",
|
||||
#"//third_party/qcms",
|
||||
#"//third_party/smhasher:murmurhash3",
|
||||
#"//third_party/webrtc/system_wrappers",
|
||||
#"//ui/native_theme",
|
||||
#"//ui/snapshot",
|
||||
#"//ui/surface",
|
||||
],
|
||||
'dependencies!': [
|
||||
#"//chrome", # TODO(GYP)
|
||||
#"//chrome/test:browser_tests", # TODO(GYP)
|
||||
#"//chrome/test:interactive_ui_tests", # TODO(GYP)
|
||||
#"//chrome/test:sync_integration_tests", # TODO(GYP)
|
||||
#"//chrome/test:unit_tests", # TODO(GYP)
|
||||
#"//components:components_unittests", # TODO(GYP)
|
||||
#"//extensions:extensions_browsertests", # TODO(GYP)
|
||||
#"//extensions:extensions_unittests", # TODO(GYP)
|
||||
#"//net:net_unittests", # TODO(GYP)
|
||||
#"//third_party/usrsctp", # TODO(GYP)
|
||||
#"//ui/app_list:app_list_unittests", # TODO(GYP)
|
||||
#"//ui/gfx:gfx_unittests", # TODO(GYP)
|
||||
],
|
||||
}],
|
||||
['OS=="win"', {
|
||||
'dependencies': [
|
||||
'../base/base.gyp:pe_image_test',
|
||||
'../chrome/chrome.gyp:installer_util_unittests',
|
||||
'../chrome/chrome.gyp:install_static_unittests',
|
||||
'../chrome/chrome.gyp:setup',
|
||||
'../chrome/chrome.gyp:setup_unittests',
|
||||
'../chrome/installer/mini_installer.gyp:mini_installer',
|
||||
'../chrome_elf/chrome_elf.gyp:chrome_elf_unittests',
|
||||
'../chrome_elf/chrome_elf.gyp:dll_hash_main',
|
||||
'../components/components.gyp:wifi_test',
|
||||
'../net/net.gyp:quic_client',
|
||||
'../net/net.gyp:quic_server',
|
||||
'../rlz/rlz.gyp:rlz',
|
||||
'../sandbox/sandbox.gyp:pocdll',
|
||||
'../sandbox/sandbox.gyp:sandbox_poc',
|
||||
'../sandbox/sandbox.gyp:sbox_integration_tests',
|
||||
'../sandbox/sandbox.gyp:sbox_unittests',
|
||||
'../sandbox/sandbox.gyp:sbox_validation_tests',
|
||||
'../testing/gtest.gyp:gtest_main',
|
||||
'../third_party/codesighs/codesighs.gyp:msdump2symdb',
|
||||
'../third_party/codesighs/codesighs.gyp:msmap2tsv',
|
||||
'../third_party/pdfium/samples/samples.gyp:pdfium_diff',
|
||||
],
|
||||
'conditions': [
|
||||
['component!="shared_library" or target_arch!="ia32"', {
|
||||
'dependencies': [
|
||||
'../chrome/installer/mini_installer.gyp:next_version_mini_installer',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
['chromecast==1', {
|
||||
'dependencies': [
|
||||
'../chromecast/chromecast.gyp:cast_shell',
|
||||
],
|
||||
}],
|
||||
['use_openh264==1', {
|
||||
'dependencies': [
|
||||
'../third_party/openh264/openh264.gyp:openh264_common',
|
||||
'../third_party/openh264/openh264.gyp:openh264_processing',
|
||||
'../third_party/openh264/openh264.gyp:openh264_encoder',
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'gyp_remaining',
|
||||
'type': 'none',
|
||||
'conditions': [
|
||||
['test_isolation_mode!="noop"', {
|
||||
'dependencies': [
|
||||
'../base/base.gyp:base_unittests_run',
|
||||
'../cc/cc_tests.gyp:cc_unittests_run',
|
||||
'../chrome/chrome.gyp:browser_tests_run',
|
||||
'../chrome/chrome.gyp:chrome_app_unittests_run',
|
||||
'../chrome/chrome.gyp:chrome_run',
|
||||
'../chrome/chrome.gyp:interactive_ui_tests_run',
|
||||
'../chrome/chrome.gyp:sync_integration_tests_run',
|
||||
'../chrome/chrome.gyp:unit_tests_run',
|
||||
'../device/device_tests.gyp:device_unittests_run',
|
||||
'../components/components_tests.gyp:components_browsertests_run',
|
||||
'../components/components_tests.gyp:components_unittests_run',
|
||||
'../content/content_shell_and_tests.gyp:content_browsertests_run',
|
||||
'../content/content_shell_and_tests.gyp:content_unittests_run',
|
||||
'../courgette/courgette.gyp:courgette_unittests_run',
|
||||
'../crypto/crypto.gyp:crypto_unittests_run',
|
||||
'../extensions/extensions_tests.gyp:extensions_browsertests_run',
|
||||
'../extensions/extensions_tests.gyp:extensions_unittests_run',
|
||||
'../google_apis/gcm/gcm.gyp:gcm_unit_tests_run',
|
||||
'../google_apis/google_apis.gyp:google_apis_unittests_run',
|
||||
'../gpu/gpu.gyp:gpu_unittests_run',
|
||||
'../media/blink/media_blink.gyp:media_blink_unittests_run',
|
||||
'../media/cast/cast.gyp:cast_unittests_run',
|
||||
'../media/media.gyp:media_unittests_run',
|
||||
'../media/midi/midi.gyp:midi_unittests_run',
|
||||
'../mojo/mojo_edk_tests.gyp:mojo_public_bindings_unittests_run',
|
||||
'../mojo/mojo_edk_tests.gyp:mojo_public_system_unittests_run',
|
||||
'../net/net.gyp:net_unittests_run',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_unittests_run',
|
||||
'../printing/printing.gyp:printing_unittests_run',
|
||||
'../remoting/remoting.gyp:remoting_unittests_run',
|
||||
'../skia/skia_tests.gyp:skia_unittests_run',
|
||||
'../sql/sql.gyp:sql_unittests_run',
|
||||
'../third_party/WebKit/Source/platform/blink_platform_tests.gyp:blink_heap_unittests_run',
|
||||
'../third_party/WebKit/Source/platform/blink_platform_tests.gyp:blink_platform_unittests_run',
|
||||
'../third_party/WebKit/Source/web/web_tests.gyp:webkit_unit_tests_run',
|
||||
'../third_party/WebKit/Source/wtf/wtf_tests.gyp:wtf_unittests_run',
|
||||
'../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_unittests_run',
|
||||
'../tools/battor_agent/battor_agent.gyp:battor_agent_unittests_run',
|
||||
'../tools/gn/gn.gyp:gn_unittests_run',
|
||||
'../ui/accessibility/accessibility.gyp:accessibility_unittests_run',
|
||||
'../ui/compositor/compositor.gyp:compositor_unittests_run',
|
||||
'../ui/display/display.gyp:display_unittests_run',
|
||||
'../ui/events/events_unittests.gyp:events_unittests_run',
|
||||
'../ui/gfx/gfx_tests.gyp:gfx_unittests_run',
|
||||
'../ui/message_center/message_center.gyp:message_center_unittests_run',
|
||||
'../url/url.gyp:url_unittests_run',
|
||||
],
|
||||
'conditions': [
|
||||
['OS=="linux"', {
|
||||
'dependencies': [
|
||||
'../sandbox/sandbox.gyp:sandbox_linux_unittests_run',
|
||||
],
|
||||
}],
|
||||
['OS=="mac"', {
|
||||
'dependencies': [
|
||||
'../sandbox/sandbox.gyp:sandbox_mac_unittests_run',
|
||||
],
|
||||
}],
|
||||
['OS=="win"', {
|
||||
'dependencies': [
|
||||
'../chrome/chrome.gyp:installer_util_unittests_run',
|
||||
'../chrome/chrome.gyp:setup_unittests_run',
|
||||
'../chrome_elf/chrome_elf.gyp:chrome_elf_unittests_run',
|
||||
'../sandbox/sandbox.gyp:sbox_integration_tests_run',
|
||||
'../sandbox/sandbox.gyp:sbox_unittests_run',
|
||||
'../sandbox/sandbox.gyp:sbox_validation_tests_run',
|
||||
],
|
||||
}],
|
||||
['OS!="android"', {
|
||||
'dependencies': [
|
||||
'../ipc/ipc.gyp:ipc_tests_run',
|
||||
'../ui/base/ui_base_tests.gyp:ui_base_unittests_run',
|
||||
'../ui/gl/gl_tests.gyp:gl_unittests_run',
|
||||
'../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_unittests_run',
|
||||
],
|
||||
}],
|
||||
['OS!="android" and OS!="ios" and chromecast==0', {
|
||||
'dependencies': [
|
||||
'../mojo/mojo_edk_tests.gyp:mojo_js_unittests_run',
|
||||
'../mojo/mojo_edk_tests.gyp:mojo_js_integration_tests_run',
|
||||
'../mojo/mojo_edk_tests.gyp:mojo_system_unittests_run',
|
||||
'../services/shell/shell.gyp:mojo_shell_unittests_run',
|
||||
],
|
||||
}],
|
||||
['use_ash==1', {
|
||||
'dependencies': [
|
||||
'../ash/ash.gyp:ash_unittests_run',
|
||||
],
|
||||
}],
|
||||
['enable_app_list==1', {
|
||||
'dependencies': [
|
||||
'../ui/app_list/app_list.gyp:app_list_unittests_run',
|
||||
],
|
||||
}],
|
||||
['use_aura==1', {
|
||||
'dependencies': [
|
||||
'../ui/app_list/presenter/app_list_presenter.gyp:app_list_presenter_unittests_run',
|
||||
],
|
||||
}],
|
||||
['use_aura==1', {
|
||||
'dependencies': [
|
||||
'../ui/aura/aura.gyp:aura_unittests_run',
|
||||
'../ui/wm/wm.gyp:wm_unittests_run',
|
||||
],
|
||||
}],
|
||||
['enable_webrtc==1 or OS!="android"', {
|
||||
'dependencies': [
|
||||
'../jingle/jingle.gyp:jingle_unittests_run',
|
||||
],
|
||||
}],
|
||||
['disable_nacl==0 and disable_nacl_untrusted==0', {
|
||||
'dependencies': [
|
||||
'../components/nacl.gyp:nacl_loader_unittests_run',
|
||||
]
|
||||
}],
|
||||
['toolkit_views==1', {
|
||||
'dependencies': [
|
||||
'../ui/views/views.gyp:views_unittests_run',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
['chromeos==1', {
|
||||
'dependencies': [
|
||||
'../media/media.gyp:jpeg_decode_accelerator_unittest',
|
||||
],
|
||||
}],
|
||||
['chromeos==1 or OS=="mac"', {
|
||||
'dependencies': [
|
||||
'../media/media.gyp:video_encode_accelerator_unittest',
|
||||
],
|
||||
}],
|
||||
['chromeos==1 and target_arch != "arm"', {
|
||||
'dependencies': [
|
||||
'../media/media.gyp:vaapi_jpeg_decoder_unittest',
|
||||
],
|
||||
}],
|
||||
['chromeos==1 or OS=="win" or OS=="android"', {
|
||||
'dependencies': [
|
||||
'../media/media.gyp:video_decode_accelerator_unittest',
|
||||
],
|
||||
}],
|
||||
['OS=="linux" or OS=="win"', {
|
||||
'dependencies': [
|
||||
# TODO(GYP): Figure out which of these run on android/mac/win/ios/etc.
|
||||
'../remoting/remoting.gyp:ar_sample_test_driver',
|
||||
|
||||
# TODO(GYP): in progress - see tfarina.
|
||||
'../third_party/webrtc/tools/tools.gyp:frame_analyzer',
|
||||
'../third_party/webrtc/tools/tools.gyp:rgba_to_i420_converter',
|
||||
],
|
||||
}],
|
||||
['OS=="win"', {
|
||||
'dependencies': [
|
||||
# TODO(GYP): All of these targets still need to be converted.
|
||||
'../chrome/chrome.gyp:gcapi_dll',
|
||||
'../chrome/chrome.gyp:gcapi_test',
|
||||
'../chrome/chrome.gyp:pack_policy_templates',
|
||||
|
||||
# This is a safe browsing utility only necessary for developers.
|
||||
# For now, we can skip this and anybody that needs this can add it
|
||||
# to the GN build.
|
||||
'../chrome/chrome.gyp:sb_sigutil',
|
||||
|
||||
'../components/test_runner/test_runner.gyp:layout_test_helper',
|
||||
'../content/content_shell_and_tests.gyp:content_shell_crash_service',
|
||||
'../gpu/gpu.gyp:angle_end2end_tests',
|
||||
'../gpu/gpu.gyp:angle_perftests',
|
||||
'../ppapi/ppapi_internal.gyp:ppapi_perftests',
|
||||
'../remoting/remoting.gyp:ar_sample_test_driver',
|
||||
'../remoting/remoting.gyp:remoting_breakpad_tester',
|
||||
'../remoting/remoting.gyp:remoting_console',
|
||||
'../remoting/remoting.gyp:remoting_desktop',
|
||||
'../tools/win/static_initializers/static_initializers.gyp:static_initializers',
|
||||
],
|
||||
}],
|
||||
['OS=="win" and target_arch=="ia32"', {
|
||||
'dependencies': [
|
||||
# TODO(GYP): All of these targets need to be ported over.
|
||||
'../base/base.gyp:base_win64',
|
||||
'../base/base.gyp:base_i18n_nacl_win64',
|
||||
'../chrome/chrome.gyp:launcher_support64',
|
||||
'../components/components.gyp:breakpad_win64',
|
||||
'../courgette/courgette.gyp:courgette64',
|
||||
'../crypto/crypto.gyp:crypto_nacl_win64',
|
||||
'../ipc/ipc.gyp:ipc_win64',
|
||||
'../sandbox/sandbox.gyp:sandbox_win64',
|
||||
],
|
||||
}],
|
||||
['OS=="win" and target_arch=="ia32" and configuration_policy==1', {
|
||||
'dependencies': [
|
||||
# TODO(GYP): All of these targets need to be ported over.
|
||||
'../components/components.gyp:policy_win64',
|
||||
]
|
||||
}],
|
||||
['OS=="android"', {
|
||||
'dependencies': [
|
||||
'../components/components.gyp:cronet_perf_test_apk',
|
||||
'../url/url.gyp:url_unittests',
|
||||
],
|
||||
}],
|
||||
['OS=="android" and chromecast==0', {
|
||||
'dependencies': [
|
||||
'../android_webview/android_webview.gyp:android_webview_apk',
|
||||
'../android_webview/android_webview.gyp:android_webview_test_apk',
|
||||
'../android_webview/android_webview.gyp:android_webview_unittests',
|
||||
'../android_webview/android_webview.gyp:android_webview_unittests_apk',
|
||||
],
|
||||
}],
|
||||
['OS=="android" and chromecast==0 and use_webview_internal_framework==0', {
|
||||
'dependencies': [
|
||||
'../android_webview/android_webview.gyp:system_webview_apk',
|
||||
],
|
||||
}],
|
||||
['OS=="android" and target_arch != "x64"', {
|
||||
'dependencies': [
|
||||
'../third_party/android_platform/relocation_packer.gyp:android_relocation_packer_unittests#host'
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
]
|
||||
}
|
|
@ -1,71 +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.
|
||||
|
||||
# This file is meant to be included into an action to invoke grit in a
|
||||
# consistent manner. To use this the following variables need to be
|
||||
# defined:
|
||||
# grit_grd_file: string: grd file path
|
||||
# grit_out_dir: string: the output directory path
|
||||
|
||||
# It would be really nice to do this with a rule instead of actions, but it
|
||||
# would need to determine inputs and outputs via grit_info on a per-file
|
||||
# basis. GYP rules don't currently support that. They could be extended to
|
||||
# do this, but then every generator would need to be updated to handle this.
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'grit_cmd': ['python', '<(DEPTH)/tools/grit/grit.py'],
|
||||
'grit_resource_ids%': '<(DEPTH)/tools/gritsettings/resource_ids',
|
||||
# This makes it possible to add more defines in specific targets,
|
||||
# instead of build/common.gypi .
|
||||
'grit_additional_defines%': [],
|
||||
'grit_rc_header_format%': [],
|
||||
'grit_whitelist%': '',
|
||||
|
||||
'conditions': [
|
||||
# These scripts can skip writing generated files if they are identical
|
||||
# to the already existing files, which avoids further build steps, like
|
||||
# recompilation. However, a dependency (earlier build step) having a
|
||||
# newer timestamp than an output (later build step) confuses some build
|
||||
# systems, so only use this on ninja, which explicitly supports this use
|
||||
# case (gyp turns all actions into ninja restat rules).
|
||||
['"<(GENERATOR)"=="ninja"', {
|
||||
'write_only_new': '1',
|
||||
}, {
|
||||
'write_only_new': '0',
|
||||
}],
|
||||
],
|
||||
},
|
||||
'conditions': [
|
||||
['"<(grit_whitelist)"==""', {
|
||||
'variables': {
|
||||
'grit_whitelist_flag': [],
|
||||
}
|
||||
}, {
|
||||
'variables': {
|
||||
'grit_whitelist_flag': ['-w', '<(grit_whitelist)'],
|
||||
}
|
||||
}]
|
||||
],
|
||||
'inputs': [
|
||||
'<!@pymod_do_main(grit_info <@(grit_defines) <@(grit_additional_defines) '
|
||||
'<@(grit_whitelist_flag) --inputs <(grit_grd_file) '
|
||||
'-f "<(grit_resource_ids)")',
|
||||
],
|
||||
'outputs': [
|
||||
'<!@pymod_do_main(grit_info <@(grit_defines) <@(grit_additional_defines) '
|
||||
'<@(grit_whitelist_flag) --outputs \'<(grit_out_dir)\' '
|
||||
'<(grit_grd_file) -f "<(grit_resource_ids)")',
|
||||
],
|
||||
'action': ['<@(grit_cmd)',
|
||||
'-i', '<(grit_grd_file)', 'build',
|
||||
'-f', '<(grit_resource_ids)',
|
||||
'-o', '<(grit_out_dir)',
|
||||
'--write-only-new=<(write_only_new)',
|
||||
'<@(grit_defines)',
|
||||
'<@(grit_whitelist_flag)',
|
||||
'<@(grit_additional_defines)',
|
||||
'<@(grit_rc_header_format)'],
|
||||
'message': 'Generating resources from <(grit_grd_file)',
|
||||
}
|
|
@ -1,31 +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.
|
||||
|
||||
# This file is meant to be included into a target that will have one or more
|
||||
# uses of grit_action.gypi. To use this the following variables need to be
|
||||
# defined:
|
||||
# grit_out_dir: string: the output directory path
|
||||
|
||||
# DO NOT USE THIS FILE. Instead, use qualified includes.
|
||||
# TODO: Convert everything to qualified includes, and delete this file,
|
||||
# http://crbug.com/401588
|
||||
{
|
||||
'conditions': [
|
||||
# If the target is a direct binary, it needs to be able to find the header,
|
||||
# otherwise it probably a supporting target just for grit so the include
|
||||
# dir needs to be set on anything that depends on this action.
|
||||
['_type=="executable" or _type=="shared_library" or \
|
||||
_type=="loadable_module" or _type=="static_library"', {
|
||||
'include_dirs': [
|
||||
'<(grit_out_dir)',
|
||||
],
|
||||
}, {
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'<(grit_out_dir)',
|
||||
],
|
||||
},
|
||||
}],
|
||||
],
|
||||
}
|
149
host_jar.gypi
149
host_jar.gypi
|
@ -1,149 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule to build
|
||||
# a JAR file for use on a host in a consistent manner. If a main class is
|
||||
# specified, this file will also generate an executable to run the jar in the
|
||||
# output folder's /bin/ directory.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'my_jar',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'src_paths': [
|
||||
# 'path/to/directory',
|
||||
# 'path/to/other/directory',
|
||||
# 'path/to/individual_file.java',
|
||||
# ...
|
||||
# ],
|
||||
# },
|
||||
# 'includes': [ 'path/to/this/gypi/file' ],
|
||||
# }
|
||||
#
|
||||
# Required variables:
|
||||
# src_paths - A list of all paths containing java files that should be
|
||||
# included in the jar. Paths can be either directories or files.
|
||||
# Optional/automatic variables:
|
||||
# excluded_src_paths - A list of all paths that should be excluded from
|
||||
# the jar.
|
||||
# generated_src_dirs - Directories containing additional .java files
|
||||
# generated at build time.
|
||||
# input_jars_paths - A list of paths to the jars that should be included
|
||||
# in the classpath.
|
||||
# main_class - The class containing the main() function that should be called
|
||||
# when running the jar file.
|
||||
# jar_excluded_classes - A list of .class files that should be excluded
|
||||
# from the jar.
|
||||
|
||||
{
|
||||
'dependencies': [
|
||||
'<(DEPTH)/build/android/setup.gyp:build_output_dirs',
|
||||
],
|
||||
'variables': {
|
||||
'classes_dir': '<(intermediate_dir)/classes',
|
||||
'excluded_src_paths': [],
|
||||
'generated_src_dirs': [],
|
||||
'input_jars_paths': [],
|
||||
'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
|
||||
'jar_dir': '<(PRODUCT_DIR)/lib.java',
|
||||
'jar_excluded_classes': [],
|
||||
'jar_name': '<(_target_name).jar',
|
||||
'jar_path': '<(jar_dir)/<(jar_name)',
|
||||
'main_class%': '',
|
||||
'stamp': '<(intermediate_dir)/jar.stamp',
|
||||
'conditions': [
|
||||
['chromium_code == 0', {
|
||||
'enable_errorprone': 0,
|
||||
}],
|
||||
],
|
||||
'enable_errorprone%': 0,
|
||||
'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
|
||||
'wrapper_script_name%': '<(_target_name)',
|
||||
},
|
||||
'all_dependent_settings': {
|
||||
'variables': {
|
||||
'input_jars_paths': ['<(jar_path)']
|
||||
},
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'javac_<(_target_name)',
|
||||
'message': 'Compiling <(_target_name) java sources',
|
||||
'variables': {
|
||||
'extra_args': [],
|
||||
'extra_inputs': [],
|
||||
'java_sources': [ '<!@(find <@(src_paths) -name "*.java")' ],
|
||||
'conditions': [
|
||||
['"<(excluded_src_paths)" != ""', {
|
||||
'java_sources!': ['<!@(find <@(excluded_src_paths) -name "*.java")']
|
||||
}],
|
||||
['"<(jar_excluded_classes)" != ""', {
|
||||
'extra_args': ['--jar-excluded-classes=<(jar_excluded_classes)']
|
||||
}],
|
||||
['enable_errorprone == 1', {
|
||||
'extra_inputs': [
|
||||
'<(errorprone_exe_path)',
|
||||
],
|
||||
'extra_args': [ '--use-errorprone-path=<(errorprone_exe_path)' ],
|
||||
}],
|
||||
],
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/javac.py',
|
||||
'^@(java_sources)',
|
||||
'>@(input_jars_paths)',
|
||||
'<@(extra_inputs)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(jar_path)',
|
||||
'<(stamp)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/javac.py',
|
||||
'--classpath=>(input_jars_paths)',
|
||||
'--src-gendirs=>(generated_src_dirs)',
|
||||
'--chromium-code=<(chromium_code)',
|
||||
'--stamp=<(stamp)',
|
||||
'--jar-path=<(jar_path)',
|
||||
'<@(extra_args)',
|
||||
'^@(java_sources)',
|
||||
],
|
||||
},
|
||||
],
|
||||
'conditions': [
|
||||
['main_class != ""', {
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'create_java_binary_script_<(_target_name)',
|
||||
'message': 'Creating java binary script <(_target_name)',
|
||||
'variables': {
|
||||
'output': '<(PRODUCT_DIR)/bin/<(wrapper_script_name)',
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/create_java_binary_script.py',
|
||||
'<(jar_path)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(output)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
|
||||
'--classpath=>(input_jars_paths)',
|
||||
'--jar-path=<(jar_path)',
|
||||
'--output=<(output)',
|
||||
'--main-class=>(main_class)',
|
||||
]
|
||||
}
|
||||
]
|
||||
}],
|
||||
['enable_errorprone == 1', {
|
||||
'dependencies': [
|
||||
'<(DEPTH)/third_party/errorprone/errorprone.gyp:require_errorprone',
|
||||
],
|
||||
}],
|
||||
]
|
||||
}
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule to
|
||||
# copy a prebuilt JAR for use on a host to the output directory.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'my_prebuilt_jar',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'jar_path': 'path/to/prebuilt.jar',
|
||||
# },
|
||||
# 'includes': [ 'path/to/this/gypi/file' ],
|
||||
# }
|
||||
#
|
||||
# Required variables:
|
||||
# jar_path - The path to the prebuilt jar.
|
||||
|
||||
{
|
||||
'dependencies': [
|
||||
],
|
||||
'variables': {
|
||||
'dest_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).jar',
|
||||
'src_path': '<(jar_path)',
|
||||
},
|
||||
'all_dependent_settings': {
|
||||
'variables': {
|
||||
'input_jars_paths': [
|
||||
'<(dest_path)',
|
||||
]
|
||||
},
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'copy_prebuilt_jar',
|
||||
'message': 'Copy <(src_path) to <(dest_path)',
|
||||
'inputs': [
|
||||
'<(src_path)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(dest_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/cp.py', '<(src_path)', '<(dest_path)',
|
||||
],
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,18 +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.
|
||||
{
|
||||
'msvs_settings': {
|
||||
'VCCLCompilerTool': {
|
||||
'StringPooling': 'true',
|
||||
},
|
||||
'VCLinkerTool': {
|
||||
# No incremental linking.
|
||||
'LinkIncremental': '1',
|
||||
# Eliminate Unreferenced Data (/OPT:REF).
|
||||
'OptimizeReferences': '2',
|
||||
# Folding on (/OPT:ICF).
|
||||
'EnableCOMDATFolding': '2',
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,17 +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.
|
||||
{
|
||||
'includes': ['release_defaults.gypi'],
|
||||
'msvs_settings': {
|
||||
'VCCLCompilerTool': {
|
||||
'OmitFramePointers': 'false',
|
||||
# The above is not sufficient (http://crbug.com/106711): it
|
||||
# simply eliminates an explicit "/Oy", but both /O2 and /Ox
|
||||
# perform FPO regardless, so we must explicitly disable.
|
||||
# We still want the false setting above to avoid having
|
||||
# "/Oy /Oy-" and warnings about overriding.
|
||||
'AdditionalOptions': ['/Oy-'],
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,41 +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.
|
||||
{
|
||||
'includes': ['release_defaults.gypi'],
|
||||
'defines': ['OFFICIAL_BUILD'],
|
||||
'msvs_settings': {
|
||||
'VCCLCompilerTool': {
|
||||
'InlineFunctionExpansion': '2',
|
||||
'EnableIntrinsicFunctions': 'true',
|
||||
'OmitFramePointers': 'false',
|
||||
# The above is not sufficient (http://crbug.com/106711): it
|
||||
# simply eliminates an explicit "/Oy", but both /O2 and /Ox
|
||||
# perform FPO regardless, so we must explicitly disable.
|
||||
# We still want the false setting above to avoid having
|
||||
# "/Oy /Oy-" and warnings about overriding.
|
||||
'AdditionalOptions': ['/Oy-'],
|
||||
},
|
||||
'VCLibrarianTool': {
|
||||
'AdditionalOptions': [
|
||||
'/ltcg',
|
||||
'/expectedoutputsize:120000000'
|
||||
],
|
||||
},
|
||||
'VCLinkerTool': {
|
||||
'AdditionalOptions': [
|
||||
'/time',
|
||||
# This may reduce memory fragmentation during linking.
|
||||
# The expected size is 40*1024*1024, which gives us about 10M of
|
||||
# headroom as of Dec 16, 2011.
|
||||
'/expectedoutputsize:41943040',
|
||||
],
|
||||
# The /PROFILE flag causes the linker to add a "FIXUP" debug stream to
|
||||
# the generated PDB. According to MSDN documentation, this flag is only
|
||||
# available (or perhaps supported) in the Enterprise (team development)
|
||||
# version of Visual Studio. If this blocks your official build, simply
|
||||
# comment out this line, then re-run "gclient runhooks".
|
||||
'Profile': 'true',
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
# 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': {
|
||||
'enable_coverage%': 0,
|
||||
},
|
||||
'conditions': [
|
||||
['enable_coverage', {
|
||||
'target_defaults': {
|
||||
'defines': [
|
||||
'ENABLE_TEST_CODE_COVERAGE=1'
|
||||
],
|
||||
'link_settings': {
|
||||
'xcode_settings': {
|
||||
'OTHER_LDFLAGS': [
|
||||
'-fprofile-arcs',
|
||||
],
|
||||
},
|
||||
},
|
||||
'xcode_settings': {
|
||||
'OTHER_CFLAGS': [
|
||||
'-fprofile-arcs',
|
||||
'-ftest-coverage',
|
||||
],
|
||||
},
|
||||
},
|
||||
}],
|
||||
],
|
||||
}
|
||||
|
129
isolate.gypi
129
isolate.gypi
|
@ -1,129 +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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to "build" .isolate files into a .isolated file.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# 'conditions': [
|
||||
# ['test_isolation_mode != "noop"', {
|
||||
# 'targets': [
|
||||
# {
|
||||
# 'target_name': 'foo_test_run',
|
||||
# 'type': 'none',
|
||||
# 'dependencies': [
|
||||
# 'foo_test',
|
||||
# ],
|
||||
# 'includes': [
|
||||
# '../build/isolate.gypi',
|
||||
# ],
|
||||
# 'sources': [
|
||||
# 'foo_test.isolate',
|
||||
# ],
|
||||
# },
|
||||
# ],
|
||||
# }],
|
||||
# ],
|
||||
#
|
||||
# Note: foo_test.isolate is included and a source file. It is an inherent
|
||||
# property of the .isolate format. This permits to define GYP variables but is
|
||||
# a stricter format than GYP so isolate.py can read it.
|
||||
#
|
||||
# The generated .isolated file will be:
|
||||
# <(PRODUCT_DIR)/foo_test.isolated
|
||||
#
|
||||
# See http://dev.chromium.org/developers/testing/isolated-testing/for-swes
|
||||
# for more information.
|
||||
|
||||
{
|
||||
'rules': [
|
||||
{
|
||||
'rule_name': 'isolate',
|
||||
'extension': 'isolate',
|
||||
'inputs': [
|
||||
# Files that are known to be involved in this step.
|
||||
'<(DEPTH)/tools/isolate_driver.py',
|
||||
'<(DEPTH)/tools/swarming_client/isolate.py',
|
||||
'<(DEPTH)/tools/swarming_client/run_isolated.py',
|
||||
],
|
||||
'outputs': [],
|
||||
'action': [
|
||||
'python',
|
||||
'<(DEPTH)/tools/isolate_driver.py',
|
||||
'<(test_isolation_mode)',
|
||||
'--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
|
||||
'--isolate', '<(RULE_INPUT_PATH)',
|
||||
|
||||
# Variables should use the -V FOO=<(FOO) form so frequent values,
|
||||
# like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' for
|
||||
# more details.
|
||||
|
||||
# Path variables are used to replace file paths when loading a .isolate
|
||||
# file
|
||||
'--path-variable', 'DEPTH', '<(DEPTH)',
|
||||
'--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ',
|
||||
|
||||
# Note: This list must match DefaultConfigVariables()
|
||||
# in build/android/pylib/utils/isolator.py
|
||||
'--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)',
|
||||
'--config-variable', 'OS=<(OS)',
|
||||
'--config-variable', 'asan=<(asan)',
|
||||
'--config-variable', 'branding=<(branding)',
|
||||
'--config-variable', 'chromeos=<(chromeos)',
|
||||
'--config-variable', 'component=<(component)',
|
||||
'--config-variable', 'disable_nacl=<(disable_nacl)',
|
||||
'--config-variable', 'enable_pepper_cdms=<(enable_pepper_cdms)',
|
||||
'--config-variable', 'enable_plugins=<(enable_plugins)',
|
||||
'--config-variable', 'fastbuild=<(fastbuild)',
|
||||
'--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)',
|
||||
# TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run
|
||||
# once support for user-defined config variables is added.
|
||||
'--config-variable',
|
||||
'internal_gles2_conform_tests=<(internal_gles2_conform_tests)',
|
||||
'--config-variable', 'kasko=<(kasko)',
|
||||
'--config-variable', 'lsan=<(lsan)',
|
||||
'--config-variable', 'msan=<(msan)',
|
||||
'--config-variable', 'target_arch=<(target_arch)',
|
||||
'--config-variable', 'tsan=<(tsan)',
|
||||
'--config-variable', 'use_custom_libcxx=<(use_custom_libcxx)',
|
||||
'--config-variable', 'use_instrumented_libraries=<(use_instrumented_libraries)',
|
||||
'--config-variable',
|
||||
'use_prebuilt_instrumented_libraries=<(use_prebuilt_instrumented_libraries)',
|
||||
'--config-variable', 'use_ozone=<(use_ozone)',
|
||||
'--config-variable', 'use_x11=<(use_x11)',
|
||||
'--config-variable', 'v8_use_external_startup_data=<(v8_use_external_startup_data)',
|
||||
],
|
||||
'conditions': [
|
||||
# Note: When gyp merges lists, it appends them to the old value.
|
||||
# Extra variables are replaced on the 'command' entry and on paths in
|
||||
# the .isolate file but are not considered relative paths.
|
||||
['OS=="mac"', {
|
||||
'action': [
|
||||
'--extra-variable', 'mac_product_name=<(mac_product_name)',
|
||||
],
|
||||
}],
|
||||
["test_isolation_mode == 'prepare'", {
|
||||
'outputs': [
|
||||
'<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated.gen.json',
|
||||
],
|
||||
}, {
|
||||
'outputs': [
|
||||
'<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
|
||||
],
|
||||
}],
|
||||
['OS=="win"', {
|
||||
'includes': ['../build/util/version.gypi'],
|
||||
'action': [
|
||||
'--extra-variable', 'version_full=<(version_full)',
|
||||
'--config-variable', 'msvs_version=<(MSVS_VERSION)',
|
||||
],
|
||||
}, {
|
||||
'action': [
|
||||
'--config-variable', 'msvs_version=0',
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,72 +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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to generate jni bindings for system Java-files in a consistent manner.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'android_jar_jni_headers',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'jni_gen_package': 'chrome',
|
||||
# 'input_java_class': 'java/io/InputStream.class',
|
||||
# },
|
||||
# 'includes': [ '../build/jar_file_jni_generator.gypi' ],
|
||||
# },
|
||||
#
|
||||
# Optional variables:
|
||||
# input_jar_file - The input jar file, if omitted, android_sdk_jar will be used.
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py',
|
||||
# A comma separated string of include files.
|
||||
'jni_generator_includes%': (
|
||||
'base/android/jni_generator/jni_generator_helper.h'
|
||||
),
|
||||
'native_exports%': '--native_exports_optional',
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'generate_jni_headers_from_jar_file',
|
||||
'inputs': [
|
||||
'<(jni_generator)',
|
||||
'<(input_jar_file)',
|
||||
'<(android_sdk_jar)',
|
||||
],
|
||||
'variables': {
|
||||
'java_class_name': '<!(basename <(input_java_class)|sed "s/\.class//")',
|
||||
'input_jar_file%': '<(android_sdk_jar)'
|
||||
},
|
||||
'outputs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni/<(java_class_name)_jni.h',
|
||||
],
|
||||
'action': [
|
||||
'<(jni_generator)',
|
||||
'-j',
|
||||
'<(input_jar_file)',
|
||||
'--input_file',
|
||||
'<(input_java_class)',
|
||||
'--output_dir',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni',
|
||||
'--includes',
|
||||
'<(jni_generator_includes)',
|
||||
'--optimize_generation',
|
||||
'<(optimize_jni_generation)',
|
||||
'<(native_exports)',
|
||||
],
|
||||
'message': 'Generating JNI bindings from <(input_jar_file)/<(input_java_class)',
|
||||
'process_outputs_as_sources': 1,
|
||||
},
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)',
|
||||
],
|
||||
},
|
||||
# This target exports a hard dependency because it generates header
|
||||
# files.
|
||||
'hard_dependency': 1,
|
||||
}
|
398
java.gypi
398
java.gypi
|
@ -1,398 +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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to build Java in a consistent manner.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'my-package_java',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'java_in_dir': 'path/to/package/root',
|
||||
# },
|
||||
# 'includes': ['path/to/this/gypi/file'],
|
||||
# }
|
||||
#
|
||||
# Required variables:
|
||||
# java_in_dir - The top-level java directory. The src should be in
|
||||
# <java_in_dir>/src.
|
||||
# Optional/automatic variables:
|
||||
# add_to_dependents_classpaths - Set to 0 if the resulting jar file should not
|
||||
# be added to its dependents' classpaths.
|
||||
# additional_input_paths - These paths will be included in the 'inputs' list to
|
||||
# ensure that this target is rebuilt when one of these paths changes.
|
||||
# additional_src_dirs - Additional directories with .java files to be compiled
|
||||
# and included in the output of this target.
|
||||
# generated_src_dirs - Same as additional_src_dirs except used for .java files
|
||||
# that are generated at build time. This should be set automatically by a
|
||||
# target's dependencies. The .java files in these directories are not
|
||||
# included in the 'inputs' list (unlike additional_src_dirs).
|
||||
# input_jars_paths - The path to jars to be included in the classpath. This
|
||||
# should be filled automatically by depending on the appropriate targets.
|
||||
# javac_includes - A list of specific files to include. This is by default
|
||||
# empty, which leads to inclusion of all files specified. May include
|
||||
# wildcard, and supports '**/' for recursive path wildcards, ie.:
|
||||
# '**/MyFileRegardlessOfDirectory.java', '**/IncludedPrefix*.java'.
|
||||
# has_java_resources - Set to 1 if the java target contains an
|
||||
# Android-compatible resources folder named res. If 1, R_package and
|
||||
# R_package_relpath must also be set.
|
||||
# R_package - The java package in which the R class (which maps resources to
|
||||
# integer IDs) should be generated, e.g. org.chromium.content.
|
||||
# R_package_relpath - Same as R_package, but replace each '.' with '/'.
|
||||
# res_extra_dirs - A list of extra directories containing Android resources.
|
||||
# These directories may be generated at build time.
|
||||
# res_extra_files - A list of the files in res_extra_dirs.
|
||||
# never_lint - Set to 1 to not run lint on this target.
|
||||
|
||||
{
|
||||
'dependencies': [
|
||||
'<(DEPTH)/build/android/android_lint_cache.gyp:android_lint_cache',
|
||||
'<(DEPTH)/build/android/setup.gyp:build_output_dirs',
|
||||
],
|
||||
'variables': {
|
||||
'add_to_dependents_classpaths%': 1,
|
||||
'android_jar': '<(android_sdk)/android.jar',
|
||||
'input_jars_paths': [ '<(android_jar)' ],
|
||||
'additional_src_dirs': [],
|
||||
'javac_includes': [],
|
||||
'jar_name': '<(_target_name).jar',
|
||||
'jar_dir': '<(PRODUCT_DIR)/lib.java',
|
||||
'jar_path': '<(intermediate_dir)/<(jar_name)',
|
||||
'jar_final_path': '<(jar_dir)/<(jar_name)',
|
||||
'jar_excluded_classes': [ '*/R.class', '*/R##*.class' ],
|
||||
'emma_instr_stamp': '<(intermediate_dir)/emma_instr.stamp',
|
||||
'additional_input_paths': [],
|
||||
'additional_locale_input_paths': [],
|
||||
'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar',
|
||||
'generated_src_dirs': ['>@(generated_R_dirs)'],
|
||||
'generated_R_dirs': [],
|
||||
'has_java_resources%': 0,
|
||||
'res_extra_dirs': [],
|
||||
'res_extra_files': [],
|
||||
'res_v14_skip%': 0,
|
||||
'resource_input_paths': ['>@(res_extra_files)'],
|
||||
'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
|
||||
'compile_stamp': '<(intermediate_dir)/compile.stamp',
|
||||
'lint_stamp': '<(intermediate_dir)/lint.stamp',
|
||||
'lint_result': '<(intermediate_dir)/lint_result.xml',
|
||||
'lint_config': '<(intermediate_dir)/lint_config.xml',
|
||||
'never_lint%': 0,
|
||||
'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp',
|
||||
'run_findbugs%': 0,
|
||||
'java_in_dir_suffix%': '/src',
|
||||
'proguard_config%': '',
|
||||
'proguard_preprocess%': '0',
|
||||
'variables': {
|
||||
'variables': {
|
||||
'proguard_preprocess%': 0,
|
||||
'emma_never_instrument%': 0,
|
||||
},
|
||||
'conditions': [
|
||||
['proguard_preprocess == 1', {
|
||||
'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar'
|
||||
}, {
|
||||
'javac_jar_path': '<(jar_path)'
|
||||
}],
|
||||
['chromium_code != 0 and emma_coverage != 0 and emma_never_instrument == 0', {
|
||||
'emma_instrument': 1,
|
||||
}, {
|
||||
'emma_instrument': 0,
|
||||
}],
|
||||
],
|
||||
},
|
||||
'emma_instrument': '<(emma_instrument)',
|
||||
'javac_jar_path': '<(javac_jar_path)',
|
||||
'conditions': [
|
||||
['chromium_code == 0', {
|
||||
'enable_errorprone': 0,
|
||||
}],
|
||||
],
|
||||
'enable_errorprone%': 0,
|
||||
'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
|
||||
},
|
||||
'conditions': [
|
||||
['add_to_dependents_classpaths == 1', {
|
||||
# This all_dependent_settings is used for java targets only. This will add the
|
||||
# jar path to the classpath of dependent java targets.
|
||||
'all_dependent_settings': {
|
||||
'variables': {
|
||||
'input_jars_paths': ['<(jar_final_path)'],
|
||||
'library_dexed_jars_paths': ['<(dex_path)'],
|
||||
},
|
||||
},
|
||||
}],
|
||||
['has_java_resources == 1', {
|
||||
'variables': {
|
||||
'resource_dir': '<(java_in_dir)/res',
|
||||
'res_input_dirs': ['<(resource_dir)', '<@(res_extra_dirs)'],
|
||||
'resource_input_paths': ['<!@(find <(resource_dir) -type f)'],
|
||||
|
||||
'R_dir': '<(intermediate_dir)/java_R',
|
||||
'R_text_file': '<(R_dir)/R.txt',
|
||||
|
||||
'generated_src_dirs': ['<(R_dir)'],
|
||||
'additional_input_paths': ['<(resource_zip_path)', ],
|
||||
|
||||
'dependencies_locale_zip_paths': [],
|
||||
'dependencies_res_zip_paths': [],
|
||||
'resource_zip_path': '<(PRODUCT_DIR)/res.java/<(_target_name).zip',
|
||||
},
|
||||
'all_dependent_settings': {
|
||||
'variables': {
|
||||
# Dependent libraries include this target's R.java file via
|
||||
# generated_R_dirs.
|
||||
'generated_R_dirs': ['<(R_dir)'],
|
||||
|
||||
# Dependent libraries and apks include this target's resources via
|
||||
# dependencies_res_zip_paths.
|
||||
'additional_input_paths': ['<(resource_zip_path)'],
|
||||
'dependencies_res_zip_paths': ['<(resource_zip_path)'],
|
||||
|
||||
# additional_res_packages and additional_R_text_files are used to
|
||||
# create this packages R.java files when building the APK.
|
||||
'additional_res_packages': ['<(R_package)'],
|
||||
'additional_R_text_files': ['<(R_text_file)'],
|
||||
},
|
||||
},
|
||||
'actions': [
|
||||
# Generate R.java and crunch image resources.
|
||||
{
|
||||
'action_name': 'process_resources',
|
||||
'message': 'processing resources for <(_target_name)',
|
||||
'variables': {
|
||||
'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml',
|
||||
# Write the inputs list to a file, so that its mtime is updated when
|
||||
# the list of inputs changes.
|
||||
'inputs_list_file': '>|(java_resources.<(_target_name).gypcmd >@(resource_input_paths))',
|
||||
'process_resources_options': [],
|
||||
'local_dependencies_res_zip_paths': [
|
||||
'>@(dependencies_res_zip_paths)',
|
||||
'>@(dependencies_locale_zip_paths)'
|
||||
],
|
||||
'conditions': [
|
||||
['res_v14_skip == 1', {
|
||||
'process_resources_options': ['--v14-skip']
|
||||
}],
|
||||
],
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/process_resources.py',
|
||||
'<(DEPTH)/build/android/gyp/generate_v14_compatible_resources.py',
|
||||
'>@(resource_input_paths)',
|
||||
'>@(local_dependencies_res_zip_paths)',
|
||||
'>(inputs_list_file)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(resource_zip_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/process_resources.py',
|
||||
'--android-sdk-jar', '<(android_sdk_jar)',
|
||||
'--aapt-path', '<(android_aapt_path)',
|
||||
# Need to generate onResourcesLoaded() in R.java, so could be used in java lib.
|
||||
'--shared-resources',
|
||||
|
||||
'--android-manifest', '<(android_manifest)',
|
||||
'--custom-package', '<(R_package)',
|
||||
|
||||
'--dependencies-res-zips', '>(local_dependencies_res_zip_paths)',
|
||||
'--resource-dirs', '<(res_input_dirs)',
|
||||
|
||||
'--R-dir', '<(R_dir)',
|
||||
'--resource-zip-out', '<(resource_zip_path)',
|
||||
|
||||
'<@(process_resources_options)',
|
||||
],
|
||||
},
|
||||
],
|
||||
}],
|
||||
['proguard_preprocess == 1', {
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'proguard_<(_target_name)',
|
||||
'message': 'Proguard preprocessing <(_target_name) jar',
|
||||
'inputs': [
|
||||
'<(DEPTH)/third_party/proguard/lib/proguard.jar',
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/proguard.py',
|
||||
'<(javac_jar_path)',
|
||||
'<(proguard_config)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(jar_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/proguard.py',
|
||||
'--proguard-path=<(DEPTH)/third_party/proguard/lib/proguard.jar',
|
||||
'--input-path=<(javac_jar_path)',
|
||||
'--output-path=<(jar_path)',
|
||||
'--proguard-config=<(proguard_config)',
|
||||
'--classpath=<(android_sdk_jar) >(input_jars_paths)',
|
||||
]
|
||||
},
|
||||
],
|
||||
}],
|
||||
['run_findbugs == 1', {
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'findbugs_<(_target_name)',
|
||||
'message': 'Running findbugs on <(_target_name)',
|
||||
'variables': {
|
||||
'additional_findbugs_args': [],
|
||||
'findbugs_verbose%': 0,
|
||||
},
|
||||
'conditions': [
|
||||
['findbugs_verbose == 1', {
|
||||
'variables': {
|
||||
'additional_findbugs_args+': ['-vv'],
|
||||
},
|
||||
}],
|
||||
],
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/findbugs_diff.py',
|
||||
'<(DEPTH)/build/android/findbugs_filter/findbugs_exclude.xml',
|
||||
'<(DEPTH)/build/android/pylib/utils/findbugs.py',
|
||||
'>@(input_jars_paths)',
|
||||
'<(jar_final_path)',
|
||||
'<(compile_stamp)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(findbugs_stamp)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/findbugs_diff.py',
|
||||
'--auxclasspath-gyp', '>(input_jars_paths)',
|
||||
'--stamp', '<(findbugs_stamp)',
|
||||
'<@(additional_findbugs_args)',
|
||||
'<(jar_final_path)',
|
||||
],
|
||||
},
|
||||
],
|
||||
}],
|
||||
['enable_errorprone == 1', {
|
||||
'dependencies': [
|
||||
'<(DEPTH)/third_party/errorprone/errorprone.gyp:require_errorprone',
|
||||
],
|
||||
}],
|
||||
],
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'javac_<(_target_name)',
|
||||
'message': 'Compiling <(_target_name) java sources',
|
||||
'variables': {
|
||||
'local_additional_input_paths': [
|
||||
'>@(additional_input_paths)',
|
||||
'>@(additional_locale_input_paths)',
|
||||
],
|
||||
'extra_args': [],
|
||||
'extra_inputs': [],
|
||||
'java_sources': ['>!@(find >(java_in_dir)>(java_in_dir_suffix) >(additional_src_dirs) -name "*.java")'],
|
||||
'conditions': [
|
||||
['enable_errorprone == 1', {
|
||||
'extra_inputs': [
|
||||
'<(errorprone_exe_path)',
|
||||
],
|
||||
'extra_args': [ '--use-errorprone-path=<(errorprone_exe_path)' ],
|
||||
}],
|
||||
],
|
||||
},
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/javac.py',
|
||||
'>@(java_sources)',
|
||||
'>@(input_jars_paths)',
|
||||
'>@(local_additional_input_paths)',
|
||||
'<@(extra_inputs)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(compile_stamp)',
|
||||
'<(javac_jar_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/javac.py',
|
||||
'--bootclasspath=<(android_sdk_jar)',
|
||||
'--classpath=>(input_jars_paths)',
|
||||
'--src-gendirs=>(generated_src_dirs)',
|
||||
'--javac-includes=<(javac_includes)',
|
||||
'--chromium-code=<(chromium_code)',
|
||||
'--jar-path=<(javac_jar_path)',
|
||||
'--jar-excluded-classes=<(jar_excluded_classes)',
|
||||
'--stamp=<(compile_stamp)',
|
||||
'>@(java_sources)',
|
||||
'<@(extra_args)',
|
||||
]
|
||||
},
|
||||
{
|
||||
'action_name': 'emma_instr_jar_<(_target_name)',
|
||||
'message': 'Instrumenting <(_target_name) jar',
|
||||
'variables': {
|
||||
'input_path': '<(jar_path)',
|
||||
'output_path': '<(jar_final_path)',
|
||||
'coverage_file': '<(jar_dir)/<(_target_name).em',
|
||||
'sources_list_file': '<(jar_dir)/<(_target_name)_sources.txt',
|
||||
'stamp_path': '<(emma_instr_stamp)',
|
||||
},
|
||||
'outputs': [
|
||||
'<(jar_final_path)',
|
||||
],
|
||||
'inputs': [
|
||||
'<(jar_path)',
|
||||
],
|
||||
'includes': [ 'android/emma_instr_action.gypi' ],
|
||||
},
|
||||
{
|
||||
'variables': {
|
||||
'src_dirs': [
|
||||
'<(java_in_dir)<(java_in_dir_suffix)',
|
||||
'>@(additional_src_dirs)',
|
||||
],
|
||||
'stamp_path': '<(lint_stamp)',
|
||||
'result_path': '<(lint_result)',
|
||||
'config_path': '<(lint_config)',
|
||||
'lint_jar_path': '<(jar_final_path)',
|
||||
},
|
||||
'inputs': [
|
||||
'<(jar_final_path)',
|
||||
'<(compile_stamp)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(lint_stamp)',
|
||||
],
|
||||
'includes': [ 'android/lint_action.gypi' ],
|
||||
},
|
||||
{
|
||||
'action_name': 'jar_toc_<(_target_name)',
|
||||
'message': 'Creating <(_target_name) jar.TOC',
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/util/md5_check.py',
|
||||
'<(DEPTH)/build/android/gyp/jar_toc.py',
|
||||
'<(jar_final_path)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(jar_final_path).TOC',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/jar_toc.py',
|
||||
'--jar-path=<(jar_final_path)',
|
||||
'--toc-path=<(jar_final_path).TOC',
|
||||
]
|
||||
},
|
||||
{
|
||||
'action_name': 'dex_<(_target_name)',
|
||||
'variables': {
|
||||
'conditions': [
|
||||
['emma_instrument != 0', {
|
||||
'dex_no_locals': 1,
|
||||
}],
|
||||
],
|
||||
'dex_input_paths': [ '<(jar_final_path)' ],
|
||||
'output_path': '<(dex_path)',
|
||||
},
|
||||
'includes': [ 'android/dex_action.gypi' ],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,79 +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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to build Java aidl files in a consistent manner.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'aidl_aidl-file-name',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'aidl_interface_file': '<interface-path>/<interface-file>.aidl',
|
||||
# 'aidl_import_include': '<(DEPTH)/<path-to-src-dir>',
|
||||
# },
|
||||
# 'sources': {
|
||||
# '<input-path1>/<input-file1>.aidl',
|
||||
# '<input-path2>/<input-file2>.aidl',
|
||||
# ...
|
||||
# },
|
||||
# 'includes': ['<path-to-this-file>/java_aidl.gypi'],
|
||||
# }
|
||||
#
|
||||
#
|
||||
# The generated java files will be:
|
||||
# <(PRODUCT_DIR)/lib.java/<input-file1>.java
|
||||
# <(PRODUCT_DIR)/lib.java/<input-file2>.java
|
||||
# ...
|
||||
#
|
||||
# Optional variables:
|
||||
# aidl_import_include - This should be an absolute path to your java src folder
|
||||
# that contains the classes that are imported by your aidl files.
|
||||
#
|
||||
# TODO(cjhopman): dependents need to rebuild when this target's inputs have changed.
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'aidl_path%': '<(android_sdk_tools)/aidl',
|
||||
'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)/aidl',
|
||||
'aidl_import_include%': '',
|
||||
'additional_aidl_arguments': [],
|
||||
'additional_aidl_input_paths': [],
|
||||
},
|
||||
'direct_dependent_settings': {
|
||||
'variables': {
|
||||
'generated_src_dirs': ['<(intermediate_dir)/'],
|
||||
},
|
||||
},
|
||||
'conditions': [
|
||||
['aidl_import_include != ""', {
|
||||
'variables': {
|
||||
'additional_aidl_arguments': [ '-I<(aidl_import_include)' ],
|
||||
'additional_aidl_input_paths': [ '<!@(find <(aidl_import_include) -name "*.java" | sort)' ],
|
||||
}
|
||||
}],
|
||||
],
|
||||
'rules': [
|
||||
{
|
||||
'rule_name': 'compile_aidl',
|
||||
'extension': 'aidl',
|
||||
'inputs': [
|
||||
'<(android_sdk)/framework.aidl',
|
||||
'<(aidl_interface_file)',
|
||||
'<@(additional_aidl_input_paths)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(intermediate_dir)/<(RULE_INPUT_ROOT).java',
|
||||
],
|
||||
'action': [
|
||||
'<(aidl_path)',
|
||||
'-p<(android_sdk)/framework.aidl',
|
||||
'-p<(aidl_interface_file)',
|
||||
'<@(additional_aidl_arguments)',
|
||||
'<(RULE_INPUT_PATH)',
|
||||
'<(intermediate_dir)/<(RULE_INPUT_ROOT).java',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
1242
java_apk.gypi
1242
java_apk.gypi
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,101 +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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to package prebuilt Java JARs in a consistent manner.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'my-package_java',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'jar_path': 'path/to/your.jar',
|
||||
# },
|
||||
# 'includes': ['path/to/this/gypi/file'],
|
||||
# }
|
||||
#
|
||||
# Required variables:
|
||||
# jar_path - The path to the prebuilt Java JAR file.
|
||||
|
||||
{
|
||||
'dependencies': [
|
||||
'<(DEPTH)/build/android/setup.gyp:build_output_dirs'
|
||||
],
|
||||
'variables': {
|
||||
'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar',
|
||||
'android_jar': '<(android_sdk)/android.jar',
|
||||
'input_jars_paths': [ '<(android_jar)' ],
|
||||
'neverlink%': 0,
|
||||
'proguard_config%': '',
|
||||
'proguard_preprocess%': '0',
|
||||
'variables': {
|
||||
'variables': {
|
||||
'proguard_preprocess%': 0,
|
||||
},
|
||||
'conditions': [
|
||||
['proguard_preprocess == 1', {
|
||||
'dex_input_jar_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).pre.jar',
|
||||
}, {
|
||||
'dex_input_jar_path': '<(jar_path)',
|
||||
}],
|
||||
],
|
||||
},
|
||||
'dex_input_jar_path': '<(dex_input_jar_path)',
|
||||
},
|
||||
'all_dependent_settings': {
|
||||
'variables': {
|
||||
'input_jars_paths': ['<(dex_input_jar_path)'],
|
||||
'conditions': [
|
||||
['neverlink == 1', {
|
||||
'library_dexed_jars_paths': [],
|
||||
}, {
|
||||
'library_dexed_jars_paths': ['<(dex_path)'],
|
||||
}],
|
||||
],
|
||||
},
|
||||
},
|
||||
'conditions' : [
|
||||
['proguard_preprocess == 1', {
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'proguard_<(_target_name)',
|
||||
'message': 'Proguard preprocessing <(_target_name) jar',
|
||||
'inputs': [
|
||||
'<(DEPTH)/third_party/proguard/lib/proguard.jar',
|
||||
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
||||
'<(DEPTH)/build/android/gyp/proguard.py',
|
||||
'<(jar_path)',
|
||||
'<(proguard_config)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(dex_input_jar_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/proguard.py',
|
||||
'--proguard-path=<(DEPTH)/third_party/proguard/lib/proguard.jar',
|
||||
'--input-path=<(jar_path)',
|
||||
'--output-path=<(dex_input_jar_path)',
|
||||
'--proguard-config=<(proguard_config)',
|
||||
'--classpath=>(input_jars_paths)',
|
||||
]
|
||||
},
|
||||
],
|
||||
}],
|
||||
['neverlink == 0', {
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'dex_<(_target_name)',
|
||||
'message': 'Dexing <(_target_name) jar',
|
||||
'variables': {
|
||||
'dex_input_paths': [
|
||||
'<(dex_input_jar_path)',
|
||||
],
|
||||
'output_path': '<(dex_path)',
|
||||
},
|
||||
'includes': [ 'android/dex_action.gypi' ],
|
||||
},
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to generate localized strings.xml from a grd file.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'my-package_strings_grd',
|
||||
# 'type': 'none',
|
||||
# 'variables': {
|
||||
# 'grd_file': 'path/to/grd/file',
|
||||
# },
|
||||
# 'includes': ['path/to/this/gypi/file'],
|
||||
# }
|
||||
#
|
||||
# Required variables:
|
||||
# grd_file - The path to the grd file to use.
|
||||
{
|
||||
'variables': {
|
||||
'res_grit_dir': '<(INTERMEDIATE_DIR)/<(_target_name)/res_grit',
|
||||
'grit_grd_file': '<(grd_file)',
|
||||
'resource_zip_path': '<(PRODUCT_DIR)/res.java/<(_target_name).zip',
|
||||
'grit_additional_defines': ['-E', 'ANDROID_JAVA_TAGGED_ONLY=false'],
|
||||
'grit_out_dir': '<(res_grit_dir)',
|
||||
# resource_ids is unneeded since we don't generate .h headers.
|
||||
'grit_resource_ids': '',
|
||||
'grit_outputs': [
|
||||
'<!@pymod_do_main(grit_info <@(grit_defines) <@(grit_additional_defines) '
|
||||
'--outputs \'<(grit_out_dir)\' '
|
||||
'<(grit_grd_file) -f "<(grit_resource_ids)")',
|
||||
]
|
||||
},
|
||||
'all_dependent_settings': {
|
||||
'variables': {
|
||||
'additional_input_paths': ['<(resource_zip_path)'],
|
||||
'dependencies_res_zip_paths': ['<(resource_zip_path)'],
|
||||
},
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'generate_localized_strings_xml',
|
||||
'includes': ['../build/grit_action.gypi'],
|
||||
},
|
||||
{
|
||||
'action_name': 'create_resources_zip',
|
||||
'inputs': [
|
||||
'<(DEPTH)/build/android/gyp/zip.py',
|
||||
'<@(grit_outputs)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(resource_zip_path)',
|
||||
],
|
||||
'action': [
|
||||
'python', '<(DEPTH)/build/android/gyp/zip.py',
|
||||
'--input-dir', '<(res_grit_dir)',
|
||||
'--output', '<(resource_zip_path)',
|
||||
],
|
||||
}
|
||||
],
|
||||
}
|
|
@ -1,77 +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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to generate jni bindings for Java-files in a consistent manner.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'base_jni_headers',
|
||||
# 'type': 'none',
|
||||
# 'sources': [
|
||||
# 'android/java/src/org/chromium/base/BuildInfo.java',
|
||||
# ...
|
||||
# ...
|
||||
# 'android/java/src/org/chromium/base/SystemMessageHandler.java',
|
||||
# ],
|
||||
# 'variables': {
|
||||
# 'jni_gen_package': 'base',
|
||||
# },
|
||||
# 'includes': [ '../build/jni_generator.gypi' ],
|
||||
# },
|
||||
#
|
||||
# The generated file name pattern can be seen on the "outputs" section below.
|
||||
# (note that RULE_INPUT_ROOT is the basename for the java file).
|
||||
#
|
||||
# See base/android/jni_generator/jni_generator.py for more info about the
|
||||
# format of generating JNI bindings.
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py',
|
||||
'jni_generator_ptr_type%': 'long',
|
||||
# A comma separated string of include files.
|
||||
'jni_generator_includes%': (
|
||||
'base/android/jni_generator/jni_generator_helper.h'
|
||||
),
|
||||
'native_exports%': '--native_exports_optional',
|
||||
},
|
||||
'rules': [
|
||||
{
|
||||
'rule_name': 'generate_jni_headers',
|
||||
'extension': 'java',
|
||||
'inputs': [
|
||||
'<(jni_generator)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni/<(RULE_INPUT_ROOT)_jni.h',
|
||||
],
|
||||
'action': [
|
||||
'<(jni_generator)',
|
||||
'--input_file',
|
||||
'<(RULE_INPUT_PATH)',
|
||||
'--output_dir',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni',
|
||||
'--includes',
|
||||
'<(jni_generator_includes)',
|
||||
'--optimize_generation',
|
||||
'<(optimize_jni_generation)',
|
||||
'--ptr_type',
|
||||
'<(jni_generator_ptr_type)',
|
||||
'<(native_exports)',
|
||||
],
|
||||
'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)',
|
||||
'process_outputs_as_sources': 1,
|
||||
},
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)',
|
||||
],
|
||||
},
|
||||
# This target exports a hard dependency because it generates header
|
||||
# files.
|
||||
'hard_dependency': 1,
|
||||
}
|
||||
|
|
@ -1,88 +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': {
|
||||
# When including this gypi, the following variables must be set:
|
||||
# schema_files:
|
||||
# An array of json or idl files that comprise the api model.
|
||||
# schema_include_rules (optional):
|
||||
# An array of paths to include when searching for referenced objects,
|
||||
# with the namespace separated by a :.
|
||||
# Example:
|
||||
# [ '/foo/bar:Foo::Bar::%(namespace)s' ]
|
||||
# cc_dir:
|
||||
# The directory to put the generated code in.
|
||||
# root_namespace:
|
||||
# A Python string substituion pattern used to generate the C++
|
||||
# namespace for each API. Use %(namespace)s to replace with the API
|
||||
# namespace, like "toplevel::%(namespace)s_api".
|
||||
# bundle_name:
|
||||
# A string to prepend to generated bundle class names, so that multiple
|
||||
# bundle rules can be used without conflicting. Only used with one of
|
||||
# the cpp-bundle generators.
|
||||
#
|
||||
# Functions and namespaces can be excluded by setting "nocompile" to true.
|
||||
# The default root path of API implementation sources is
|
||||
# chrome/browser/extensions/api and can be overridden by setting "impl_dir".
|
||||
'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler',
|
||||
'api_gen': '<(api_gen_dir)/compiler.py',
|
||||
'generator_files': [
|
||||
'<(api_gen_dir)/cc_generator.py',
|
||||
'<(api_gen_dir)/code.py',
|
||||
'<(api_gen_dir)/compiler.py',
|
||||
'<(api_gen_dir)/cpp_bundle_generator.py',
|
||||
'<(api_gen_dir)/cpp_type_generator.py',
|
||||
'<(api_gen_dir)/cpp_util.py',
|
||||
'<(api_gen_dir)/h_generator.py',
|
||||
'<(api_gen_dir)/idl_schema.py',
|
||||
'<(api_gen_dir)/json_schema.py',
|
||||
'<(api_gen_dir)/model.py',
|
||||
'<(api_gen_dir)/util_cc_helper.py',
|
||||
],
|
||||
'schema_include_rules': [],
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'genapi_bundle_schema',
|
||||
'inputs': [
|
||||
'<@(generator_files)',
|
||||
'<@(schema_files)',
|
||||
'<@(non_compiled_schema_files)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_schemas.h',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_schemas.cc',
|
||||
],
|
||||
'action': [
|
||||
'python',
|
||||
'<(api_gen)',
|
||||
'--root=<(DEPTH)',
|
||||
'--destdir=<(SHARED_INTERMEDIATE_DIR)',
|
||||
'--namespace=<(root_namespace)',
|
||||
'--bundle-name=<(bundle_name)',
|
||||
'--generator=cpp-bundle-schema',
|
||||
'--include-rules=<(schema_include_rules)',
|
||||
'<@(schema_files)',
|
||||
'<@(non_compiled_schema_files)',
|
||||
],
|
||||
'message': 'Generating C++ API bundle code for schemas',
|
||||
'process_outputs_as_sources': 1,
|
||||
# Avoid running MIDL compiler on IDL input files.
|
||||
'explicit_idl_action': 1,
|
||||
},
|
||||
],
|
||||
'include_dirs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)',
|
||||
'<(DEPTH)',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)',
|
||||
]
|
||||
},
|
||||
# This target exports a hard dependency because it generates header
|
||||
# files.
|
||||
'hard_dependency': 1,
|
||||
}
|
|
@ -1,83 +0,0 @@
|
|||
# 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': {
|
||||
# When including this gypi, the following variables must be set:
|
||||
# schema_files:
|
||||
# An array of json or idl files that comprise the api model.
|
||||
# impl_dir_:
|
||||
# The root path of API implementations; also used for the
|
||||
# output location. (N.B. Named as such to prevent gyp from
|
||||
# expanding it as a relative path.)
|
||||
# root_namespace:
|
||||
# A Python string substituion pattern used to generate the C++
|
||||
# namespace for each API. Use %(namespace)s to replace with the API
|
||||
# namespace, like "toplevel::%(namespace)s_api".
|
||||
# bundle_name:
|
||||
# A string to prepend to generated bundle class names, so that multiple
|
||||
# bundle rules can be used without conflicting. Only used with one of
|
||||
# the cpp-bundle generators.
|
||||
#
|
||||
# Functions and namespaces can be excluded by setting "nocompile" to true.
|
||||
'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler',
|
||||
'api_gen': '<(api_gen_dir)/compiler.py',
|
||||
'generator_files': [
|
||||
'<(api_gen_dir)/cc_generator.py',
|
||||
'<(api_gen_dir)/code.py',
|
||||
'<(api_gen_dir)/compiler.py',
|
||||
'<(api_gen_dir)/cpp_bundle_generator.py',
|
||||
'<(api_gen_dir)/cpp_type_generator.py',
|
||||
'<(api_gen_dir)/cpp_util.py',
|
||||
'<(api_gen_dir)/h_generator.py',
|
||||
'<(api_gen_dir)/idl_schema.py',
|
||||
'<(api_gen_dir)/json_schema.py',
|
||||
'<(api_gen_dir)/model.py',
|
||||
'<(api_gen_dir)/util_cc_helper.py',
|
||||
],
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
# GN version: json_schema_api.gni
|
||||
'action_name': 'genapi_bundle_registration',
|
||||
'inputs': [
|
||||
'<@(generator_files)',
|
||||
'<@(schema_files)',
|
||||
'<@(non_compiled_schema_files)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(impl_dir_)/generated_api_registration.h',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(impl_dir_)/generated_api_registration.cc',
|
||||
],
|
||||
'action': [
|
||||
'python',
|
||||
'<(api_gen)',
|
||||
'--root=<(DEPTH)',
|
||||
'--destdir=<(SHARED_INTERMEDIATE_DIR)',
|
||||
'--namespace=<(root_namespace)',
|
||||
'--bundle-name=<(bundle_name)',
|
||||
'--generator=cpp-bundle-registration',
|
||||
'--impl-dir=<(impl_dir_)',
|
||||
'<@(schema_files)',
|
||||
'<@(non_compiled_schema_files)',
|
||||
],
|
||||
'message': 'Generating C++ API bundle code for function registration',
|
||||
'process_outputs_as_sources': 1,
|
||||
# Avoid running MIDL compiler on IDL input files.
|
||||
'explicit_idl_action': 1,
|
||||
},
|
||||
],
|
||||
'include_dirs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)',
|
||||
'<(DEPTH)',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)',
|
||||
]
|
||||
},
|
||||
# This target exports a hard dependency because it generates header
|
||||
# files.
|
||||
'hard_dependency': 1,
|
||||
}
|
|
@ -1,123 +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': {
|
||||
# When including this gypi, the following variables must be set:
|
||||
# schema_files:
|
||||
# An array of json or idl files that comprise the api model.
|
||||
# schema_include_rules (optional):
|
||||
# An array of paths to include when searching for referenced objects,
|
||||
# with the namespace separated by a :.
|
||||
# Example:
|
||||
# [ '/foo/bar:Foo::Bar::%(namespace)s' ]
|
||||
# cc_dir:
|
||||
# The directory to put the generated code in.
|
||||
# root_namespace:
|
||||
# A Python string substituion pattern used to generate the C++
|
||||
# namespace for each API. Use %(namespace)s to replace with the API
|
||||
# namespace, like "toplevel::%(namespace)s_api".
|
||||
#
|
||||
# Functions and namespaces can be excluded by setting "nocompile" to true.
|
||||
'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler',
|
||||
'api_gen': '<(api_gen_dir)/compiler.py',
|
||||
'schema_include_rules': [],
|
||||
},
|
||||
'rules': [
|
||||
{
|
||||
# GN version: json_schema_api.gni
|
||||
'rule_name': 'genapi',
|
||||
'msvs_external_rule': 1,
|
||||
'extension': 'json',
|
||||
'inputs': [
|
||||
'<(api_gen_dir)/cc_generator.py',
|
||||
'<(api_gen_dir)/code.py',
|
||||
'<(api_gen_dir)/compiler.py',
|
||||
'<(api_gen_dir)/cpp_generator.py',
|
||||
'<(api_gen_dir)/cpp_type_generator.py',
|
||||
'<(api_gen_dir)/cpp_util.py',
|
||||
'<(api_gen_dir)/h_generator.py',
|
||||
'<(api_gen_dir)/json_schema.py',
|
||||
'<(api_gen_dir)/model.py',
|
||||
'<(api_gen_dir)/util.cc',
|
||||
'<(api_gen_dir)/util.h',
|
||||
'<(api_gen_dir)/util_cc_helper.py',
|
||||
# TODO(calamity): uncomment this when gyp on windows behaves like other
|
||||
# platforms. List expansions of filepaths in inputs expand to different
|
||||
# things.
|
||||
# '<@(schema_files)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).cc',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).h',
|
||||
],
|
||||
'action': [
|
||||
'python',
|
||||
'<(api_gen)',
|
||||
'<(RULE_INPUT_PATH)',
|
||||
'--root=<(DEPTH)',
|
||||
'--destdir=<(SHARED_INTERMEDIATE_DIR)',
|
||||
'--namespace=<(root_namespace)',
|
||||
'--generator=cpp',
|
||||
'--include-rules=<(schema_include_rules)'
|
||||
],
|
||||
'message': 'Generating C++ code from <(RULE_INPUT_PATH) json files',
|
||||
'process_outputs_as_sources': 1,
|
||||
},
|
||||
{
|
||||
'rule_name': 'genapi_idl',
|
||||
'msvs_external_rule': 1,
|
||||
'extension': 'idl',
|
||||
'inputs': [
|
||||
'<(api_gen_dir)/cc_generator.py',
|
||||
'<(api_gen_dir)/code.py',
|
||||
'<(api_gen_dir)/compiler.py',
|
||||
'<(api_gen_dir)/cpp_generator.py',
|
||||
'<(api_gen_dir)/cpp_type_generator.py',
|
||||
'<(api_gen_dir)/cpp_util.py',
|
||||
'<(api_gen_dir)/h_generator.py',
|
||||
'<(api_gen_dir)/idl_schema.py',
|
||||
'<(api_gen_dir)/model.py',
|
||||
'<(api_gen_dir)/util.cc',
|
||||
'<(api_gen_dir)/util.h',
|
||||
'<(api_gen_dir)/util_cc_helper.py',
|
||||
# TODO(calamity): uncomment this when gyp on windows behaves like other
|
||||
# platforms. List expansions of filepaths in inputs expand to different
|
||||
# things.
|
||||
# '<@(schema_files)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).cc',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).h',
|
||||
],
|
||||
'action': [
|
||||
'python',
|
||||
'<(api_gen)',
|
||||
'<(RULE_INPUT_PATH)',
|
||||
'--root=<(DEPTH)',
|
||||
'--destdir=<(SHARED_INTERMEDIATE_DIR)',
|
||||
'--namespace=<(root_namespace)',
|
||||
'--generator=cpp',
|
||||
'--include-rules=<(schema_include_rules)'
|
||||
],
|
||||
'message': 'Generating C++ code from <(RULE_INPUT_PATH) IDL files',
|
||||
'process_outputs_as_sources': 1,
|
||||
},
|
||||
],
|
||||
'include_dirs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)',
|
||||
'<(DEPTH)',
|
||||
],
|
||||
'dependencies':[
|
||||
'<(DEPTH)/tools/json_schema_compiler/api_gen_util.gyp:api_gen_util',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)',
|
||||
]
|
||||
},
|
||||
# This target exports a hard dependency because it generates header
|
||||
# files.
|
||||
'hard_dependency': 1,
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
# Copyright 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': {
|
||||
# When including this gypi, the following variables must be set:
|
||||
# schema_file: a json file that comprise the structure model.
|
||||
# namespace: the C++ namespace that all generated files go under
|
||||
# cc_dir: path to generated files
|
||||
# Functions and namespaces can be excluded by setting "nocompile" to true.
|
||||
'struct_gen_dir': '<(DEPTH)/tools/json_to_struct',
|
||||
'struct_gen%': '<(struct_gen_dir)/json_to_struct.py',
|
||||
'output_filename%': '<(RULE_INPUT_ROOT)',
|
||||
},
|
||||
'rules': [
|
||||
{
|
||||
# GN version: //tools/json_to_struct/json_to_struct.gni
|
||||
'rule_name': 'genstaticinit',
|
||||
'extension': 'json',
|
||||
'inputs': [
|
||||
'<(struct_gen)',
|
||||
'<(struct_gen_dir)/element_generator.py',
|
||||
'<(struct_gen_dir)/json_to_struct.py',
|
||||
'<(struct_gen_dir)/struct_generator.py',
|
||||
'<(schema_file)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(output_filename).cc',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(output_filename).h',
|
||||
],
|
||||
'action': [
|
||||
'python',
|
||||
'<(struct_gen)',
|
||||
'<(RULE_INPUT_PATH)',
|
||||
'--destbase=<(SHARED_INTERMEDIATE_DIR)',
|
||||
'--destdir=<(cc_dir)',
|
||||
'--namespace=<(namespace)',
|
||||
'--schema=<(schema_file)',
|
||||
'--output=<(output_filename)',
|
||||
],
|
||||
'message': 'Generating C++ static initializers from <(RULE_INPUT_PATH)',
|
||||
'process_outputs_as_sources': 1,
|
||||
},
|
||||
],
|
||||
'include_dirs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)',
|
||||
'<(DEPTH)',
|
||||
],
|
||||
# This target exports a hard dependency because it generates header
|
||||
# files.
|
||||
'hard_dependency': 1,
|
||||
}
|
1270
linux/system.gyp
1270
linux/system.gyp
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,17 +0,0 @@
|
|||
# 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': 'expat',
|
||||
'type': 'none',
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-lexpat',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,65 +0,0 @@
|
|||
# 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': 'ffmpeg',
|
||||
'type': 'none',
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags libavcodec libavformat libavutil)',
|
||||
|
||||
'<!(python <(DEPTH)/tools/compile_test/compile_test.py '
|
||||
'--code "#define __STDC_CONSTANT_MACROS\n'
|
||||
'#include <libavcodec/avcodec.h>\n'
|
||||
'int test() { return AV_CODEC_ID_OPUS; }" '
|
||||
'--on-failure -DCHROMIUM_OMIT_AV_CODEC_ID_OPUS=1)',
|
||||
|
||||
'<!(python <(DEPTH)/tools/compile_test/compile_test.py '
|
||||
'--code "#define __STDC_CONSTANT_MACROS\n'
|
||||
'#include <libavcodec/avcodec.h>\n'
|
||||
'int test() { return AV_CODEC_ID_VP9; }" '
|
||||
'--on-failure -DCHROMIUM_OMIT_AV_CODEC_ID_VP9=1)',
|
||||
|
||||
'<!(python <(DEPTH)/tools/compile_test/compile_test.py '
|
||||
'--code "#define __STDC_CONSTANT_MACROS\n'
|
||||
'#include <libavcodec/avcodec.h>\n'
|
||||
'int test() { return AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL; }" '
|
||||
'--on-failure -DCHROMIUM_OMIT_AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL=1)',
|
||||
|
||||
'<!(python <(DEPTH)/tools/compile_test/compile_test.py '
|
||||
'--code "#define __STDC_CONSTANT_MACROS\n'
|
||||
'#include <libavcodec/avcodec.h>\n'
|
||||
'int test() { struct AVFrame frame;\n'
|
||||
'return av_frame_get_channels(&frame); }" '
|
||||
'--on-failure -DCHROMIUM_NO_AVFRAME_CHANNELS=1)',
|
||||
],
|
||||
'defines': [
|
||||
'__STDC_CONSTANT_MACROS',
|
||||
'USE_SYSTEM_FFMPEG',
|
||||
],
|
||||
},
|
||||
'variables': {
|
||||
'headers_root_path': '.',
|
||||
'header_filenames': [
|
||||
'libavcodec/avcodec.h',
|
||||
'libavformat/avformat.h',
|
||||
'libavutil/imgutils.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other libavcodec libavformat libavutil)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l libavcodec libavformat libavutil)',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
# 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': 'libflac',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
'headers_root_path': 'include',
|
||||
'header_filenames': [
|
||||
'FLAC/callback.h',
|
||||
'FLAC/metadata.h',
|
||||
'FLAC/assert.h',
|
||||
'FLAC/export.h',
|
||||
'FLAC/format.h',
|
||||
'FLAC/stream_decoder.h',
|
||||
'FLAC/stream_encoder.h',
|
||||
'FLAC/ordinals.h',
|
||||
'FLAC/all.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other flac)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l flac)',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,47 +0,0 @@
|
|||
# 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': {
|
||||
# Check for presence of harfbuzz-icu library, use it if present.
|
||||
'harfbuzz_libraries':
|
||||
'<!(python <(DEPTH)/tools/compile_test/compile_test.py '
|
||||
'--code "int main() { return 0; }" '
|
||||
'--run-linker '
|
||||
'--on-success "harfbuzz harfbuzz-icu" '
|
||||
'--on-failure "harfbuzz" '
|
||||
'-- -lharfbuzz-icu)',
|
||||
},
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'harfbuzz-ng',
|
||||
'type': 'none',
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags <(harfbuzz_libraries))',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags <(harfbuzz_libraries))',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other <(harfbuzz_libraries))',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l <(harfbuzz_libraries))',
|
||||
],
|
||||
},
|
||||
'variables': {
|
||||
'headers_root_path': 'src',
|
||||
'header_filenames': [
|
||||
'hb.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,248 +0,0 @@
|
|||
# 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': 'icudata',
|
||||
'type': 'none',
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags icu-uc)',
|
||||
],
|
||||
'defines': [
|
||||
'U_USING_ICU_NAMESPACE=0',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other icu-uc)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l icu-uc)',
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
'target_name': 'icui18n',
|
||||
'type': 'none',
|
||||
'toolsets': ['host', 'target'],
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags icu-i18n)',
|
||||
],
|
||||
'defines': [
|
||||
'U_USING_ICU_NAMESPACE=0',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other icu-i18n)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l icu-i18n)',
|
||||
],
|
||||
},
|
||||
'variables': {
|
||||
'headers_root_path': 'source/i18n',
|
||||
'header_filenames': [
|
||||
# This list can easily be updated using the command below:
|
||||
# find third_party/icu/source/i18n/unicode -iname '*.h' \
|
||||
# -printf "'%p',\n" | \
|
||||
# sed -e 's|third_party/icu/source/i18n/||' | sort -u
|
||||
'unicode/basictz.h',
|
||||
'unicode/bmsearch.h',
|
||||
'unicode/bms.h',
|
||||
'unicode/calendar.h',
|
||||
'unicode/choicfmt.h',
|
||||
'unicode/coleitr.h',
|
||||
'unicode/colldata.h',
|
||||
'unicode/coll.h',
|
||||
'unicode/curramt.h',
|
||||
'unicode/currpinf.h',
|
||||
'unicode/currunit.h',
|
||||
'unicode/datefmt.h',
|
||||
'unicode/dcfmtsym.h',
|
||||
'unicode/decimfmt.h',
|
||||
'unicode/dtfmtsym.h',
|
||||
'unicode/dtitvfmt.h',
|
||||
'unicode/dtitvinf.h',
|
||||
'unicode/dtptngen.h',
|
||||
'unicode/dtrule.h',
|
||||
'unicode/fieldpos.h',
|
||||
'unicode/fmtable.h',
|
||||
'unicode/format.h',
|
||||
'unicode/fpositer.h',
|
||||
'unicode/gregocal.h',
|
||||
'unicode/locdspnm.h',
|
||||
'unicode/measfmt.h',
|
||||
'unicode/measunit.h',
|
||||
'unicode/measure.h',
|
||||
'unicode/msgfmt.h',
|
||||
'unicode/numfmt.h',
|
||||
'unicode/numsys.h',
|
||||
'unicode/plurfmt.h',
|
||||
'unicode/plurrule.h',
|
||||
'unicode/rbnf.h',
|
||||
'unicode/rbtz.h',
|
||||
'unicode/regex.h',
|
||||
'unicode/search.h',
|
||||
'unicode/selfmt.h',
|
||||
'unicode/simpletz.h',
|
||||
'unicode/smpdtfmt.h',
|
||||
'unicode/sortkey.h',
|
||||
'unicode/stsearch.h',
|
||||
'unicode/tblcoll.h',
|
||||
'unicode/timezone.h',
|
||||
'unicode/tmunit.h',
|
||||
'unicode/tmutamt.h',
|
||||
'unicode/tmutfmt.h',
|
||||
'unicode/translit.h',
|
||||
'unicode/tzrule.h',
|
||||
'unicode/tztrans.h',
|
||||
'unicode/ucal.h',
|
||||
'unicode/ucoleitr.h',
|
||||
'unicode/ucol.h',
|
||||
'unicode/ucsdet.h',
|
||||
'unicode/ucurr.h',
|
||||
'unicode/udat.h',
|
||||
'unicode/udatpg.h',
|
||||
'unicode/uldnames.h',
|
||||
'unicode/ulocdata.h',
|
||||
'unicode/umsg.h',
|
||||
'unicode/unirepl.h',
|
||||
'unicode/unum.h',
|
||||
'unicode/uregex.h',
|
||||
'unicode/usearch.h',
|
||||
'unicode/uspoof.h',
|
||||
'unicode/utmscale.h',
|
||||
'unicode/utrans.h',
|
||||
'unicode/vtzone.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'icuuc',
|
||||
'type': 'none',
|
||||
'toolsets': ['host', 'target'],
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags icu-uc)',
|
||||
],
|
||||
'defines': [
|
||||
'U_USING_ICU_NAMESPACE=0',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other icu-uc)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l icu-uc)',
|
||||
],
|
||||
},
|
||||
'variables': {
|
||||
'headers_root_path': 'source/common',
|
||||
'header_filenames': [
|
||||
# This list can easily be updated using the command below:
|
||||
# find third_party/icu/source/common/unicode -iname '*.h' \
|
||||
# -printf "'%p',\n" | \
|
||||
# sed -e 's|third_party/icu/source/common/||' | sort -u
|
||||
'unicode/brkiter.h',
|
||||
'unicode/bytestream.h',
|
||||
'unicode/caniter.h',
|
||||
'unicode/chariter.h',
|
||||
'unicode/dbbi.h',
|
||||
'unicode/docmain.h',
|
||||
'unicode/dtintrv.h',
|
||||
'unicode/errorcode.h',
|
||||
'unicode/icudataver.h',
|
||||
'unicode/icuplug.h',
|
||||
'unicode/idna.h',
|
||||
'unicode/localpointer.h',
|
||||
'unicode/locid.h',
|
||||
'unicode/normalizer2.h',
|
||||
'unicode/normlzr.h',
|
||||
'unicode/pandroid.h',
|
||||
'unicode/parseerr.h',
|
||||
'unicode/parsepos.h',
|
||||
'unicode/pfreebsd.h',
|
||||
'unicode/plinux.h',
|
||||
'unicode/pmac.h',
|
||||
'unicode/popenbsd.h',
|
||||
'unicode/ppalmos.h',
|
||||
'unicode/ptypes.h',
|
||||
'unicode/putil.h',
|
||||
'unicode/pwin32.h',
|
||||
'unicode/rbbi.h',
|
||||
'unicode/rep.h',
|
||||
'unicode/resbund.h',
|
||||
'unicode/schriter.h',
|
||||
'unicode/std_string.h',
|
||||
'unicode/strenum.h',
|
||||
'unicode/stringpiece.h',
|
||||
'unicode/symtable.h',
|
||||
'unicode/ubidi.h',
|
||||
'unicode/ubrk.h',
|
||||
'unicode/ucasemap.h',
|
||||
'unicode/ucat.h',
|
||||
'unicode/uchar.h',
|
||||
'unicode/uchriter.h',
|
||||
'unicode/uclean.h',
|
||||
'unicode/ucnv_cb.h',
|
||||
'unicode/ucnv_err.h',
|
||||
'unicode/ucnv.h',
|
||||
'unicode/ucnvsel.h',
|
||||
'unicode/uconfig.h',
|
||||
'unicode/udata.h',
|
||||
'unicode/udeprctd.h',
|
||||
'unicode/udraft.h',
|
||||
'unicode/uenum.h',
|
||||
'unicode/uidna.h',
|
||||
'unicode/uintrnal.h',
|
||||
'unicode/uiter.h',
|
||||
'unicode/uloc.h',
|
||||
'unicode/umachine.h',
|
||||
'unicode/umisc.h',
|
||||
'unicode/unifilt.h',
|
||||
'unicode/unifunct.h',
|
||||
'unicode/unimatch.h',
|
||||
'unicode/uniset.h',
|
||||
'unicode/unistr.h',
|
||||
'unicode/unorm2.h',
|
||||
'unicode/unorm.h',
|
||||
'unicode/uobject.h',
|
||||
'unicode/uobslete.h',
|
||||
'unicode/urename.h',
|
||||
'unicode/urep.h',
|
||||
'unicode/ures.h',
|
||||
'unicode/uscript.h',
|
||||
'unicode/uset.h',
|
||||
'unicode/usetiter.h',
|
||||
'unicode/ushape.h',
|
||||
'unicode/usprep.h',
|
||||
'unicode/ustring.h',
|
||||
'unicode/usystem.h',
|
||||
'unicode/utext.h',
|
||||
'unicode/utf16.h',
|
||||
'unicode/utf32.h',
|
||||
'unicode/utf8.h',
|
||||
'unicode/utf.h',
|
||||
'unicode/utf_old.h',
|
||||
'unicode/utrace.h',
|
||||
'unicode/utypeinfo.h',
|
||||
'unicode/utypes.h',
|
||||
'unicode/uvernum.h',
|
||||
'unicode/uversion.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
# 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': 'jsoncpp',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
'headers_root_path': 'source/include',
|
||||
'header_filenames': [
|
||||
'json/assertions.h',
|
||||
'json/autolink.h',
|
||||
'json/config.h',
|
||||
'json/features.h',
|
||||
'json/forwards.h',
|
||||
'json/json.h',
|
||||
'json/reader.h',
|
||||
'json/value.h',
|
||||
'json/writer.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'/usr/include/jsoncpp',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-ljsoncpp',
|
||||
],
|
||||
},
|
||||
}
|
||||
],
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
# 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': 'libXNVCtrl',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
'headers_root_path': '.',
|
||||
'header_filenames': [
|
||||
'NVCtrlLib.h',
|
||||
'NVCtrl.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags libXNVCtrl)',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other libXNVCtrl)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l libXNVCtrl)',
|
||||
],
|
||||
},
|
||||
}
|
||||
],
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
# 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': 'libevent',
|
||||
'type': 'none',
|
||||
'toolsets': ['host', 'target'],
|
||||
'variables': {
|
||||
'headers_root_path': '.',
|
||||
'header_filenames': [
|
||||
'event.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../../build/shim_headers.gypi',
|
||||
],
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-levent',
|
||||
],
|
||||
},
|
||||
}
|
||||
],
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
# 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': 'libjpeg',
|
||||
'type': 'none',
|
||||
'direct_dependent_settings': {
|
||||
'defines': [
|
||||
'USE_SYSTEM_LIBJPEG',
|
||||
],
|
||||
'conditions': [
|
||||
['os_bsd==1', {
|
||||
'include_dirs': [
|
||||
'/usr/local/include',
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-ljpeg',
|
||||
],
|
||||
},
|
||||
}
|
||||
],
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
# 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': 'libpng',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'../zlib/zlib.gyp:zlib',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags libpng)',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other libpng)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l libpng)',
|
||||
],
|
||||
},
|
||||
'variables': {
|
||||
'headers_root_path': '.',
|
||||
'header_filenames': [
|
||||
'png.h',
|
||||
'pngconf.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
# 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': 'libusb',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
'headers_root_path': 'src/libusb',
|
||||
'header_filenames': [
|
||||
'libusb.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags libusb-1.0)',
|
||||
],
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other libusb-1.0)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l libusb-1.0)',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
# 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': 'libvpx',
|
||||
'type': 'none',
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags vpx)',
|
||||
],
|
||||
},
|
||||
'variables': {
|
||||
'headers_root_path': 'source/libvpx',
|
||||
'header_filenames': [
|
||||
'vpx/vp8.h',
|
||||
'vpx/vp8cx.h',
|
||||
'vpx/vp8dx.h',
|
||||
'vpx/vpx_codec.h',
|
||||
'vpx/vpx_codec_impl_bottom.h',
|
||||
'vpx/vpx_codec_impl_top.h',
|
||||
'vpx/vpx_decoder.h',
|
||||
'vpx/vpx_encoder.h',
|
||||
'vpx/vpx_frame_buffer.h',
|
||||
'vpx/vpx_image.h',
|
||||
'vpx/vpx_integer.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other vpx)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l vpx)',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
# 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': 'libwebp',
|
||||
'type': 'none',
|
||||
'direct_dependent_settings': {
|
||||
'defines': [
|
||||
'ENABLE_WEBP',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
# Check for presence of webpdemux library, use it if present.
|
||||
'<!(python <(DEPTH)/tools/compile_test/compile_test.py '
|
||||
'--code "int main() { return 0; }" '
|
||||
'--run-linker '
|
||||
'--on-success "-lwebp -lwebpdemux" '
|
||||
'--on-failure "-lwebp" '
|
||||
'-- -lwebpdemux)',
|
||||
],
|
||||
},
|
||||
}
|
||||
],
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
# 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': 'libxml',
|
||||
'type': 'static_library',
|
||||
'sources': [
|
||||
'chromium/libxml_utils.h',
|
||||
'chromium/libxml_utils.cc',
|
||||
],
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags libxml-2.0)',
|
||||
],
|
||||
'defines': [
|
||||
'USE_SYSTEM_LIBXML',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags libxml-2.0)',
|
||||
],
|
||||
'defines': [
|
||||
'USE_SYSTEM_LIBXML',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other libxml-2.0)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l libxml-2.0)',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
# 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': 'libxslt',
|
||||
'type': 'none',
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags libxslt)',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other libxslt)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l libxslt)',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
# 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': 'opus',
|
||||
'type': 'none',
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags opus)',
|
||||
],
|
||||
},
|
||||
'variables': {
|
||||
'headers_root_path': 'src/include',
|
||||
'header_filenames': [
|
||||
'opus_custom.h',
|
||||
'opus_defines.h',
|
||||
'opus_multistream.h',
|
||||
'opus_types.h',
|
||||
'opus.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other opus)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l opus)',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,149 +0,0 @@
|
|||
# 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': 'protobuf_lite',
|
||||
'type': 'none',
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
# Use full protobuf, because vanilla protobuf doesn't have
|
||||
# our custom patch to retain unknown fields in lite mode.
|
||||
'<!@(pkg-config --cflags protobuf)',
|
||||
],
|
||||
'defines': [
|
||||
'USE_SYSTEM_PROTOBUF',
|
||||
|
||||
# This macro must be defined to suppress the use
|
||||
# of dynamic_cast<>, which requires RTTI.
|
||||
'GOOGLE_PROTOBUF_NO_RTTI',
|
||||
'GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
# Use full protobuf, because vanilla protobuf doesn't have
|
||||
# our custom patch to retain unknown fields in lite mode.
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other protobuf)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l protobuf)',
|
||||
],
|
||||
},
|
||||
'variables': {
|
||||
'headers_root_path': 'src',
|
||||
'header_filenames': [
|
||||
# This list can easily be updated using the command below:
|
||||
# find third_party/protobuf/src -iname '*.h' -printf "'%p',\n" | \
|
||||
# sed -e 's|third_party/protobuf/src/||' | sort -u
|
||||
'google/protobuf/compiler/code_generator.h',
|
||||
'google/protobuf/compiler/command_line_interface.h',
|
||||
'google/protobuf/compiler/cpp/cpp_enum_field.h',
|
||||
'google/protobuf/compiler/cpp/cpp_enum.h',
|
||||
'google/protobuf/compiler/cpp/cpp_extension.h',
|
||||
'google/protobuf/compiler/cpp/cpp_field.h',
|
||||
'google/protobuf/compiler/cpp/cpp_file.h',
|
||||
'google/protobuf/compiler/cpp/cpp_generator.h',
|
||||
'google/protobuf/compiler/cpp/cpp_helpers.h',
|
||||
'google/protobuf/compiler/cpp/cpp_message_field.h',
|
||||
'google/protobuf/compiler/cpp/cpp_message.h',
|
||||
'google/protobuf/compiler/cpp/cpp_options.h',
|
||||
'google/protobuf/compiler/cpp/cpp_primitive_field.h',
|
||||
'google/protobuf/compiler/cpp/cpp_service.h',
|
||||
'google/protobuf/compiler/cpp/cpp_string_field.h',
|
||||
'google/protobuf/compiler/cpp/cpp_unittest.h',
|
||||
'google/protobuf/compiler/importer.h',
|
||||
'google/protobuf/compiler/java/java_doc_comment.h',
|
||||
'google/protobuf/compiler/java/java_enum_field.h',
|
||||
'google/protobuf/compiler/java/java_enum.h',
|
||||
'google/protobuf/compiler/java/java_extension.h',
|
||||
'google/protobuf/compiler/java/java_field.h',
|
||||
'google/protobuf/compiler/java/java_file.h',
|
||||
'google/protobuf/compiler/java/java_generator.h',
|
||||
'google/protobuf/compiler/java/java_helpers.h',
|
||||
'google/protobuf/compiler/java/java_message_field.h',
|
||||
'google/protobuf/compiler/java/java_message.h',
|
||||
'google/protobuf/compiler/java/java_primitive_field.h',
|
||||
'google/protobuf/compiler/java/java_service.h',
|
||||
'google/protobuf/compiler/java/java_string_field.h',
|
||||
'google/protobuf/compiler/mock_code_generator.h',
|
||||
'google/protobuf/compiler/package_info.h',
|
||||
'google/protobuf/compiler/parser.h',
|
||||
'google/protobuf/compiler/plugin.h',
|
||||
'google/protobuf/compiler/plugin.pb.h',
|
||||
'google/protobuf/compiler/python/python_generator.h',
|
||||
'google/protobuf/compiler/subprocess.h',
|
||||
'google/protobuf/compiler/zip_writer.h',
|
||||
'google/protobuf/descriptor_database.h',
|
||||
'google/protobuf/descriptor.h',
|
||||
'google/protobuf/descriptor.pb.h',
|
||||
'google/protobuf/dynamic_message.h',
|
||||
'google/protobuf/extension_set.h',
|
||||
'google/protobuf/generated_enum_reflection.h',
|
||||
'google/protobuf/generated_message_reflection.h',
|
||||
'google/protobuf/generated_message_util.h',
|
||||
'google/protobuf/io/coded_stream.h',
|
||||
'google/protobuf/io/coded_stream_inl.h',
|
||||
'google/protobuf/io/gzip_stream.h',
|
||||
'google/protobuf/io/package_info.h',
|
||||
'google/protobuf/io/printer.h',
|
||||
'google/protobuf/io/tokenizer.h',
|
||||
'google/protobuf/io/zero_copy_stream.h',
|
||||
'google/protobuf/io/zero_copy_stream_impl.h',
|
||||
'google/protobuf/io/zero_copy_stream_impl_lite.h',
|
||||
'google/protobuf/message.h',
|
||||
'google/protobuf/message_lite.h',
|
||||
'google/protobuf/package_info.h',
|
||||
'google/protobuf/reflection_ops.h',
|
||||
'google/protobuf/repeated_field.h',
|
||||
'google/protobuf/service.h',
|
||||
'google/protobuf/stubs/atomicops.h',
|
||||
'google/protobuf/stubs/atomicops_internals_arm64_gcc.h',
|
||||
'google/protobuf/stubs/atomicops_internals_arm_gcc.h',
|
||||
'google/protobuf/stubs/atomicops_internals_arm_qnx.h',
|
||||
'google/protobuf/stubs/atomicops_internals_atomicword_compat.h',
|
||||
'google/protobuf/stubs/atomicops_internals_macosx.h',
|
||||
'google/protobuf/stubs/atomicops_internals_mips_gcc.h',
|
||||
'google/protobuf/stubs/atomicops_internals_pnacl.h',
|
||||
'google/protobuf/stubs/atomicops_internals_tsan.h',
|
||||
'google/protobuf/stubs/atomicops_internals_x86_gcc.h',
|
||||
'google/protobuf/stubs/atomicops_internals_x86_msvc.h',
|
||||
'google/protobuf/stubs/common.h',
|
||||
'google/protobuf/stubs/hash.h',
|
||||
'google/protobuf/stubs/map-util.h',
|
||||
'google/protobuf/stubs/once.h',
|
||||
'google/protobuf/stubs/platform_macros.h',
|
||||
'google/protobuf/stubs/stl_util.h',
|
||||
'google/protobuf/stubs/stringprintf.h',
|
||||
'google/protobuf/stubs/strutil.h',
|
||||
'google/protobuf/stubs/substitute.h',
|
||||
'google/protobuf/stubs/template_util.h',
|
||||
'google/protobuf/stubs/type_traits.h',
|
||||
'google/protobuf/testing/file.h',
|
||||
'google/protobuf/testing/googletest.h',
|
||||
'google/protobuf/test_util.h',
|
||||
'google/protobuf/test_util_lite.h',
|
||||
'google/protobuf/text_format.h',
|
||||
'google/protobuf/unknown_field_set.h',
|
||||
'google/protobuf/wire_format.h',
|
||||
'google/protobuf/wire_format_lite.h',
|
||||
'google/protobuf/wire_format_lite_inl.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'protoc',
|
||||
'type': 'none',
|
||||
'toolsets': ['host', 'target'],
|
||||
},
|
||||
{
|
||||
'target_name': 'py_proto',
|
||||
'type': 'none',
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
# 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': 're2',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
'headers_root_path': '.',
|
||||
'header_filenames': [
|
||||
're2/filtered_re2.h',
|
||||
're2/re2.h',
|
||||
're2/set.h',
|
||||
're2/stringpiece.h',
|
||||
're2/variadic_function.h',
|
||||
],
|
||||
'shim_generator_additional_args': [
|
||||
# Chromium copy of re2 is patched to rename POSIX to POSIX_SYNTAX
|
||||
# because of collision issues that break the build.
|
||||
# Upstream refuses to make changes:
|
||||
# http://code.google.com/p/re2/issues/detail?id=73 .
|
||||
'--define', 'POSIX=POSIX_SYNTAX',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-lre2',
|
||||
],
|
||||
},
|
||||
}
|
||||
],
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
# 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': 'snappy',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
'headers_root_path': 'src',
|
||||
'header_filenames': [
|
||||
'snappy-c.h',
|
||||
'snappy-sinksource.h',
|
||||
'snappy-stubs-public.h',
|
||||
'snappy.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-lsnappy',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
# 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': 'sqlite',
|
||||
'type': 'none',
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
'<!@(pkg-config --cflags sqlite3)',
|
||||
],
|
||||
'defines': [
|
||||
'USE_SYSTEM_SQLITE',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(pkg-config --libs-only-L --libs-only-other sqlite3)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(pkg-config --libs-only-l sqlite3)',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,64 +0,0 @@
|
|||
# Copyright 2013 the V8 project authors. All rights reserved.
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
{
|
||||
'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'v8',
|
||||
'type': 'none',
|
||||
'toolsets': ['host', 'target'],
|
||||
'variables': {
|
||||
'headers_root_path': '../../include',
|
||||
'header_filenames': [
|
||||
'v8-debug.h',
|
||||
'v8-preparser.h',
|
||||
'v8-profiler.h',
|
||||
'v8-testing.h',
|
||||
'v8.h',
|
||||
'v8stdint.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../../build/shim_headers.gypi',
|
||||
],
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-lv8',
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
'target_name': 'v8_shell',
|
||||
'type': 'none',
|
||||
'toolsets': ['host', 'target'],
|
||||
'dependencies': [
|
||||
'v8'
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
# 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': 'zlib',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
'headers_root_path': '.',
|
||||
'header_filenames': [
|
||||
'zlib.h',
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../../build/shim_headers.gypi',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'defines': [
|
||||
'USE_SYSTEM_ZLIB',
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-lz',
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
'target_name': 'minizip',
|
||||
'type': 'static_library',
|
||||
'all_dependent_settings': {
|
||||
'defines': [
|
||||
'USE_SYSTEM_MINIZIP',
|
||||
],
|
||||
},
|
||||
'defines': [
|
||||
'USE_SYSTEM_MINIZIP',
|
||||
],
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-lminizip',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
53
mac/asan.gyp
53
mac/asan.gyp
|
@ -1,53 +0,0 @@
|
|||
# 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': 'asan_dynamic_runtime',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
# Every target is going to depend on asan_dynamic_runtime, so allow
|
||||
# this one to depend on itself.
|
||||
'prune_self_dependency': 1,
|
||||
# Path is relative to this GYP file.
|
||||
'asan_rtl_mask_path':
|
||||
'../../third_party/llvm-build/Release+Asserts/lib/clang/<!(python ../../tools/clang/scripts/update.py --print-clang-version)/lib/darwin',
|
||||
'asan_osx_dynamic':
|
||||
'<(asan_rtl_mask_path)/libclang_rt.asan_osx_dynamic.dylib',
|
||||
'asan_iossim_dynamic':
|
||||
'<(asan_rtl_mask_path)/libclang_rt.asan_iossim_dynamic.dylib',
|
||||
},
|
||||
'conditions': [
|
||||
['OS=="mac"', {
|
||||
'copies': [
|
||||
{
|
||||
'destination': '<(PRODUCT_DIR)',
|
||||
'files': [
|
||||
'<!(/bin/ls <(asan_osx_dynamic))',
|
||||
],
|
||||
},
|
||||
],
|
||||
}],
|
||||
# ASan works with iOS simulator only, not bare-metal iOS.
|
||||
['OS=="ios" and target_arch=="ia32"', {
|
||||
'toolsets': ['host', 'target'],
|
||||
'copies': [
|
||||
{
|
||||
'destination': '<(PRODUCT_DIR)',
|
||||
'target_conditions': [
|
||||
['_toolset=="host"', {
|
||||
'files': [ '<!(/bin/ls <(asan_osx_dynamic))'],
|
||||
}],
|
||||
['_toolset=="target"', {
|
||||
'files': [ '<!(/bin/ls <(asan_iossim_dynamic))'],
|
||||
}],
|
||||
],
|
||||
},
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,97 +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.
|
||||
|
||||
# This file is meant to be included into an target to create a unittest that
|
||||
# invokes a set of no-compile tests. A no-compile test is a test that asserts
|
||||
# a particular construct will not compile.
|
||||
#
|
||||
# Also see:
|
||||
# http://dev.chromium.org/developers/testing/no-compile-tests
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'my_module_nc_unittests',
|
||||
# 'type': 'executable',
|
||||
# 'sources': [
|
||||
# 'nc_testset_1.nc',
|
||||
# 'nc_testset_2.nc',
|
||||
# ],
|
||||
# 'includes': ['path/to/this/gypi/file'],
|
||||
# }
|
||||
#
|
||||
# The .nc files are C++ files that contain code we wish to assert will not
|
||||
# compile. Each individual test case in the file should be put in its own
|
||||
# #ifdef section. The expected output should be appended with a C++-style
|
||||
# comment that has a python list of regular expressions. This will likely
|
||||
# be greater than 80-characters. Giving a solid expected output test is
|
||||
# important so that random compile failures do not cause the test to pass.
|
||||
#
|
||||
# Example .nc file:
|
||||
#
|
||||
# #if defined(TEST_NEEDS_SEMICOLON) // [r"expected ',' or ';' at end of input"]
|
||||
#
|
||||
# int a = 1
|
||||
#
|
||||
# #elif defined(TEST_NEEDS_CAST) // [r"invalid conversion from 'void*' to 'char*'"]
|
||||
#
|
||||
# void* a = NULL;
|
||||
# char* b = a;
|
||||
#
|
||||
# #endif
|
||||
#
|
||||
# If we needed disable TEST_NEEDS_SEMICOLON, then change the define to:
|
||||
#
|
||||
# DISABLE_TEST_NEEDS_SEMICOLON
|
||||
# TEST_NEEDS_CAST
|
||||
#
|
||||
# The lines above are parsed by a regexp so avoid getting creative with the
|
||||
# formatting or ifdef logic; it will likely just not work.
|
||||
#
|
||||
# Implementation notes:
|
||||
# The .nc files are actually processed by a python script which executes the
|
||||
# compiler and generates a .cc file that is empty on success, or will have a
|
||||
# series of #error lines on failure, and a set of trivially passing gunit
|
||||
# TEST() functions on success. This allows us to fail at the compile step when
|
||||
# something goes wrong, and know during the unittest run that the test was at
|
||||
# least processed when things go right.
|
||||
|
||||
{
|
||||
# TODO(awong): Disabled until http://crbug.com/105388 is resolved.
|
||||
'sources/': [['exclude', '\\.nc$']],
|
||||
'conditions': [
|
||||
[ 'OS!="win" and clang==1', {
|
||||
'rules': [
|
||||
{
|
||||
'variables': {
|
||||
'nocompile_driver': '<(DEPTH)/tools/nocompile_driver.py',
|
||||
'nc_result_path': ('<(INTERMEDIATE_DIR)/<(module_dir)/'
|
||||
'<(RULE_INPUT_ROOT)_nc.cc'),
|
||||
},
|
||||
'rule_name': 'run_nocompile',
|
||||
'extension': 'nc',
|
||||
'inputs': [
|
||||
'<(nocompile_driver)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(nc_result_path)'
|
||||
],
|
||||
'depfile': '<(nc_result_path).d',
|
||||
'action': [
|
||||
'python',
|
||||
'<(nocompile_driver)',
|
||||
'4', # number of compilers to invoke in parallel.
|
||||
'<(RULE_INPUT_PATH)',
|
||||
'-Wall -Werror -Wfatal-errors -I<(DEPTH)',
|
||||
'<(nc_result_path)',
|
||||
],
|
||||
'message': 'Generating no compile results for <(RULE_INPUT_PATH)',
|
||||
'process_outputs_as_sources': 1,
|
||||
},
|
||||
],
|
||||
}, {
|
||||
'sources/': [['exclude', '\\.nc$']]
|
||||
}], # 'OS!="win" and clang=="1"'
|
||||
],
|
||||
}
|
||||
|
164
protoc.gypi
164
protoc.gypi
|
@ -1,164 +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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to invoke protoc in a consistent manner. For Java-targets, see
|
||||
# protoc_java.gypi.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'my_proto_lib',
|
||||
# 'type': 'static_library',
|
||||
# 'sources': [
|
||||
# 'foo.proto',
|
||||
# 'bar.proto',
|
||||
# ],
|
||||
# 'variables': {
|
||||
# # Optional, see below: 'proto_in_dir': '.'
|
||||
# 'proto_out_dir': 'dir/for/my_proto_lib'
|
||||
# },
|
||||
# 'includes': ['path/to/this/gypi/file'],
|
||||
# }
|
||||
# If necessary, you may add normal .cc files to the sources list or other gyp
|
||||
# dependencies. The proto headers are guaranteed to be generated before any
|
||||
# source files, even within this target, are compiled.
|
||||
#
|
||||
# The 'proto_in_dir' variable must be the relative path to the
|
||||
# directory containing the .proto files. If left out, it defaults to '.'.
|
||||
#
|
||||
# The 'proto_out_dir' variable specifies the path suffix that output
|
||||
# files are generated under. Targets that gyp-depend on my_proto_lib
|
||||
# will be able to include the resulting proto headers with an include
|
||||
# like:
|
||||
# #include "dir/for/my_proto_lib/foo.pb.h"
|
||||
#
|
||||
# If you need to add an EXPORT macro to a protobuf's c++ header, set the
|
||||
# 'cc_generator_options' variable with the value: 'dllexport_decl=FOO_EXPORT:'
|
||||
# e.g. 'dllexport_decl=BASE_EXPORT:'
|
||||
#
|
||||
# It is likely you also need to #include a file for the above EXPORT macro to
|
||||
# work. You can do so with the 'cc_include' variable.
|
||||
# e.g. 'base/base_export.h'
|
||||
#
|
||||
# Implementation notes:
|
||||
# A proto_out_dir of foo/bar produces
|
||||
# <(SHARED_INTERMEDIATE_DIR)/protoc_out/foo/bar/{file1,file2}.pb.{cc,h}
|
||||
# <(SHARED_INTERMEDIATE_DIR)/pyproto/foo/bar/{file1,file2}_pb2.py
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'protoc_wrapper': '<(DEPTH)/tools/protoc_wrapper/protoc_wrapper.py',
|
||||
'cc_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out/<(proto_out_dir)',
|
||||
'py_dir': '<(PRODUCT_DIR)/pyproto/<(proto_out_dir)',
|
||||
'cc_generator_options%': '',
|
||||
'generate_python%': 1,
|
||||
'generate_cc%': 1,
|
||||
# Name of plugin executable which generates custom cc stubs.
|
||||
# If passed, generator_plugin_suffix (before .cc and .h) is also required.
|
||||
'generator_plugin%': '',
|
||||
'generator_plugin_options%': '',
|
||||
'cc_include%': '',
|
||||
'proto_in_dir%': '.',
|
||||
'conditions': [
|
||||
['use_system_protobuf==0', {
|
||||
'protoc': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
|
||||
}, { # use_system_protobuf==1
|
||||
'protoc': '<!(which protoc)',
|
||||
}],
|
||||
],
|
||||
},
|
||||
'rules': [
|
||||
{
|
||||
'rule_name': 'genproto',
|
||||
'extension': 'proto',
|
||||
'inputs': [
|
||||
'<(protoc_wrapper)',
|
||||
'<(protoc)',
|
||||
],
|
||||
'action': [
|
||||
'python',
|
||||
'<(protoc_wrapper)',
|
||||
# If no cc_include specified --protobuf option will be ignored.
|
||||
'--include',
|
||||
'<(cc_include)',
|
||||
'--protobuf',
|
||||
'<(cc_dir)/<(RULE_INPUT_ROOT).pb.h',
|
||||
# Using the --arg val form (instead of --arg=val) allows gyp's msvs rule
|
||||
# generation to correct 'val' which is a path.
|
||||
'--proto-in-dir','<(proto_in_dir)',
|
||||
# Naively you'd use <(RULE_INPUT_PATH) here, but protoc requires
|
||||
# --proto_path is a strict prefix of the path given as an argument.
|
||||
'--proto-in-file','<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
|
||||
'--use-system-protobuf=<(use_system_protobuf)',
|
||||
'--',
|
||||
'<(protoc)',
|
||||
],
|
||||
'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)',
|
||||
'process_outputs_as_sources': 1,
|
||||
|
||||
'conditions': [
|
||||
['generate_python==1', {
|
||||
'outputs': [
|
||||
'<(py_dir)/<(RULE_INPUT_ROOT)_pb2.py',
|
||||
],
|
||||
'action': [
|
||||
'--python_out',
|
||||
'<(py_dir)',
|
||||
],
|
||||
}],
|
||||
['generate_cc==1', {
|
||||
'outputs': [
|
||||
'<(cc_dir)/<(RULE_INPUT_ROOT).pb.cc',
|
||||
'<(cc_dir)/<(RULE_INPUT_ROOT).pb.h',
|
||||
],
|
||||
'action': [
|
||||
'--cpp_out',
|
||||
'<(cc_generator_options)<(cc_dir)',
|
||||
],
|
||||
}],
|
||||
['generator_plugin!=""', {
|
||||
'outputs': [
|
||||
'<(cc_dir)/<(RULE_INPUT_ROOT)<(generator_plugin_suffix).cc',
|
||||
'<(cc_dir)/<(RULE_INPUT_ROOT)<(generator_plugin_suffix).h',
|
||||
],
|
||||
'action': [
|
||||
'--plugin',
|
||||
'protoc-gen-plugin=<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)<(generator_plugin)<(EXECUTABLE_SUFFIX)',
|
||||
'--plugin_out',
|
||||
'<(generator_plugin_options)<(cc_dir)',
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
],
|
||||
'dependencies': [
|
||||
'<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host',
|
||||
],
|
||||
'include_dirs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/protoc_out',
|
||||
'<(DEPTH)',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/protoc_out',
|
||||
'<(DEPTH)',
|
||||
]
|
||||
},
|
||||
# This target exports a hard dependency because it generates header files.
|
||||
'hard_dependency': 1,
|
||||
|
||||
# If using built-in cc generator the resulting headers reference headers
|
||||
# within protobuf_lite, hence dependencies require those headers too.
|
||||
# In case of generator plugin such issues should be resolved by invoker.
|
||||
'conditions': [
|
||||
['generate_cc==1', {
|
||||
'dependencies': [
|
||||
'<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite',
|
||||
],
|
||||
'export_dependent_settings': [
|
||||
'<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
|
@ -1,83 +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.
|
||||
|
||||
# This file is meant to be included into a target to provide a rule
|
||||
# to invoke protoc in a consistent manner. This is only to be included
|
||||
# for Java targets. When including this file, a .jar-file will be generated.
|
||||
# For other targets, see protoc.gypi.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'my_proto_lib',
|
||||
# 'sources': [
|
||||
# 'foo.proto',
|
||||
# 'bar.proto',
|
||||
# ],
|
||||
# 'variables': {
|
||||
# 'proto_in_dir': '.'
|
||||
# },
|
||||
# 'includes': ['path/to/this/gypi/file'],
|
||||
# }
|
||||
#
|
||||
# The 'proto_in_dir' variable must be the relative path to the
|
||||
# directory containing the .proto files. If left out, it defaults to '.'.
|
||||
#
|
||||
# The 'output_java_files' variable specifies a list of output files that will
|
||||
# be generated. It is based on the package and java_outer_classname fields in
|
||||
# the proto. All the values must be prefixed with >(java_out_dir), since that
|
||||
# is the root directory of all the output.
|
||||
#
|
||||
# Implementation notes:
|
||||
# A target_name of foo and proto-specified 'package' java.package.path produces:
|
||||
# <(PRODUCT_DIR)/java_proto/foo/{java/package/path/}{Foo,Bar}.java
|
||||
# where Foo and Bar are taken from 'java_outer_classname' of the protos.
|
||||
#
|
||||
# How the .jar-file is created is different than how protoc is used for other
|
||||
# targets, and as such, this lives in its own file.
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'protoc': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)android_protoc<(EXECUTABLE_SUFFIX)',
|
||||
'java_out_dir': '<(PRODUCT_DIR)/java_proto/<(_target_name)/src',
|
||||
'proto_in_dir%': '.',
|
||||
'stamp_file': '<(java_out_dir).stamp',
|
||||
'script': '<(DEPTH)/build/protoc_java.py',
|
||||
|
||||
# The rest of the variables here are for the java.gypi include.
|
||||
'java_in_dir': '<(DEPTH)/build/android/empty',
|
||||
'generated_src_dirs': ['<(java_out_dir)'],
|
||||
# Adding the |stamp_file| to |additional_input_paths| makes the actions in
|
||||
# the include of java.gypi depend on the genproto_java action.
|
||||
'additional_input_paths': ['<(stamp_file)'],
|
||||
'run_findbugs': 0,
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'genproto_java',
|
||||
'inputs': [
|
||||
'<(script)',
|
||||
'<(protoc)',
|
||||
'<@(_sources)',
|
||||
],
|
||||
# We do not know the names of the generated files, so we use a stamp.
|
||||
'outputs': [
|
||||
'<(stamp_file)',
|
||||
],
|
||||
'action': [
|
||||
'<(script)',
|
||||
'--protoc=<(protoc)',
|
||||
'--proto-path=<(proto_in_dir)',
|
||||
'--java-out-dir=<(java_out_dir)',
|
||||
'--stamp=<(stamp_file)',
|
||||
'<@(_sources)',
|
||||
],
|
||||
'message': 'Generating Java code from protobuf files in <(proto_in_dir)',
|
||||
},
|
||||
],
|
||||
'dependencies': [
|
||||
'<(DEPTH)/third_party/android_protobuf/android_protobuf.gyp:android_protoc#host',
|
||||
'<(DEPTH)/third_party/android_protobuf/android_protobuf.gyp:protobuf_nano_javalib',
|
||||
],
|
||||
'includes': [ 'java.gypi' ],
|
||||
}
|
29
release.gypi
29
release.gypi
|
@ -1,29 +0,0 @@
|
|||
{
|
||||
'conditions': [
|
||||
# Handle build types.
|
||||
['buildtype=="Dev"', {
|
||||
'includes': ['internal/release_impl.gypi'],
|
||||
}],
|
||||
['buildtype=="Dev" and incremental_chrome_dll==1', {
|
||||
'msvs_settings': {
|
||||
'VCLinkerTool': {
|
||||
# Enable incremental linking and disable conflicting link options:
|
||||
# http://msdn.microsoft.com/en-us/library/4khtbfyf.aspx
|
||||
'LinkIncremental': '2',
|
||||
'OptimizeReferences': '1',
|
||||
'EnableCOMDATFolding': '1',
|
||||
'Profile': 'false',
|
||||
},
|
||||
},
|
||||
}],
|
||||
['buildtype=="Official"', {
|
||||
'includes': ['internal/release_impl_official.gypi'],
|
||||
}],
|
||||
# TODO(bradnelson): may also need:
|
||||
# checksenabled
|
||||
# coverage
|
||||
# dom_stats
|
||||
# pgo_instrument
|
||||
# pgo_optimize
|
||||
],
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
# 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.
|
||||
|
||||
# This file is meant to be included into an action to invoke grit repack in a
|
||||
# consistent manner. To use this the following variables need to be
|
||||
# defined:
|
||||
# pak_inputs: list: paths of pak files that need to be combined.
|
||||
# pak_output: string: the output pak file path.
|
||||
|
||||
{
|
||||
# GYP version: //tools/grit/repack.gni
|
||||
'variables': {
|
||||
'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
|
||||
'repack_options%': [],
|
||||
},
|
||||
'inputs': [
|
||||
'<(repack_path)',
|
||||
'<@(pak_inputs)',
|
||||
],
|
||||
'outputs': [
|
||||
'<(pak_output)'
|
||||
],
|
||||
'action': [
|
||||
'python',
|
||||
'<(repack_path)',
|
||||
'<@(repack_options)',
|
||||
'<(pak_output)',
|
||||
'<@(pak_inputs)',
|
||||
],
|
||||
}
|
|
@ -1,93 +0,0 @@
|
|||
# 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': 'sanitizer_options',
|
||||
'type': 'static_library',
|
||||
'toolsets': ['host', 'target'],
|
||||
'variables': {
|
||||
# Every target is going to depend on sanitizer_options, so allow
|
||||
# this one to depend on itself.
|
||||
'prune_self_dependency': 1,
|
||||
# Do not let 'none' targets depend on this one, they don't need to.
|
||||
'link_dependency': 1,
|
||||
},
|
||||
'sources': [
|
||||
'sanitizer_options.cc',
|
||||
],
|
||||
'include_dirs': [
|
||||
'../..',
|
||||
],
|
||||
# Some targets may want to opt-out from ASan, TSan and MSan and link
|
||||
# without the corresponding runtime libraries. We drop the libc++
|
||||
# dependency and omit the compiler flags to avoid bringing instrumented
|
||||
# code to those targets.
|
||||
'conditions': [
|
||||
['use_custom_libcxx==1', {
|
||||
'dependencies!': [
|
||||
'../../buildtools/third_party/libc++/libc++.gyp:libcxx_proxy',
|
||||
],
|
||||
}],
|
||||
['tsan==1', {
|
||||
'sources': [
|
||||
'tsan_suppressions.cc',
|
||||
],
|
||||
}],
|
||||
['lsan==1', {
|
||||
'sources': [
|
||||
'lsan_suppressions.cc',
|
||||
],
|
||||
}],
|
||||
['asan==1', {
|
||||
'sources': [
|
||||
'asan_suppressions.cc',
|
||||
],
|
||||
}],
|
||||
],
|
||||
'cflags/': [
|
||||
['exclude', '-fsanitize='],
|
||||
['exclude', '-fsanitize-'],
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'ldflags': [
|
||||
'-Wl,-u_sanitizer_options_link_helper',
|
||||
],
|
||||
'target_conditions': [
|
||||
['_type=="executable"', {
|
||||
'xcode_settings': {
|
||||
'OTHER_LDFLAGS': [
|
||||
'-Wl,-u,__sanitizer_options_link_helper',
|
||||
],
|
||||
},
|
||||
}],
|
||||
],
|
||||
},
|
||||
},
|
||||
# GN version: //build/sanitizers:copy_llvm_symbolizer
|
||||
{
|
||||
# Copy llvm-symbolizer to the product dir so that LKGR bots can package it.
|
||||
'target_name': 'llvm-symbolizer',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
|
||||
# Path is relative to this GYP file.
|
||||
'llvm_symbolizer_path':
|
||||
'../../third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer<(EXECUTABLE_SUFFIX)',
|
||||
},
|
||||
'conditions': [
|
||||
['clang==1', {
|
||||
'copies': [{
|
||||
'destination': '<(PRODUCT_DIR)',
|
||||
'files': [
|
||||
'<(llvm_symbolizer_path)',
|
||||
],
|
||||
}],
|
||||
}],
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
# Copyright (c) 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.
|
||||
|
||||
# This file is meant to be included to set clang-specific compiler flags.
|
||||
# To use this the following variable can be defined:
|
||||
# clang_warning_flags: list: Compiler flags to pass to clang.
|
||||
# clang_warning_flags_unset: list: Compiler flags to not pass to clang.
|
||||
#
|
||||
# Only use this in third-party code. In chromium_code, fix your code to not
|
||||
# warn instead!
|
||||
#
|
||||
# Note that the gypi file is included in target_defaults, so it does not need
|
||||
# to be explicitly included.
|
||||
#
|
||||
# Warning flags set by this will be used on all platforms. If you want to set
|
||||
# warning flags on only some platforms, you have to do so manually.
|
||||
#
|
||||
# To use this, create a gyp target with the following form:
|
||||
# {
|
||||
# 'target_name': 'my_target',
|
||||
# 'variables': {
|
||||
# 'clang_warning_flags': ['-Wno-awesome-warning'],
|
||||
# 'clang_warning_flags_unset': ['-Wpreviously-set-flag'],
|
||||
# }
|
||||
# }
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'clang_warning_flags_unset%': [], # Provide a default value.
|
||||
},
|
||||
'conditions': [
|
||||
['clang==1', {
|
||||
# This uses >@ instead of @< to also see clang_warning_flags set in
|
||||
# targets directly, not just the clang_warning_flags in target_defaults.
|
||||
'cflags': [ '>@(clang_warning_flags)' ],
|
||||
'cflags!': [ '>@(clang_warning_flags_unset)' ],
|
||||
'xcode_settings': {
|
||||
'WARNING_CFLAGS': ['>@(clang_warning_flags)'],
|
||||
'WARNING_CFLAGS!': ['>@(clang_warning_flags_unset)'],
|
||||
},
|
||||
'msvs_settings': {
|
||||
'VCCLCompilerTool': {
|
||||
'AdditionalOptions': [ '>@(clang_warning_flags)' ],
|
||||
'AdditionalOptions!': [ '>@(clang_warning_flags_unset)' ],
|
||||
},
|
||||
},
|
||||
}],
|
||||
['clang==0 and host_clang==1', {
|
||||
'target_conditions': [
|
||||
['_toolset=="host"', {
|
||||
'cflags': [ '>@(clang_warning_flags)' ],
|
||||
'cflags!': [ '>@(clang_warning_flags_unset)' ],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
|
@ -1,60 +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.
|
||||
|
||||
# This file is meant to be included into a target to handle shim headers
|
||||
# in a consistent manner. To use this the following variables need to be
|
||||
# defined:
|
||||
# headers_root_path: string: path to directory containing headers
|
||||
# header_filenames: list: list of header file names
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'shim_headers_path': '<(SHARED_INTERMEDIATE_DIR)/shim_headers/<(_target_name)/<(_toolset)',
|
||||
'shim_generator_additional_args%': [],
|
||||
},
|
||||
'include_dirs++': [
|
||||
'<(shim_headers_path)',
|
||||
],
|
||||
'all_dependent_settings': {
|
||||
# Repeating this with different numbers of plusses is unfortunately required
|
||||
# to make sure that even if this include is inside nested conditions/etc, it
|
||||
# still gets inserted at the beginning of the include_dirs list. See
|
||||
# http://crbug.com/263818 for details.
|
||||
'include_dirs+++': [
|
||||
'<(shim_headers_path)',
|
||||
],
|
||||
'include_dirs++++': [
|
||||
'<(shim_headers_path)',
|
||||
],
|
||||
'include_dirs+++++': [
|
||||
'<(shim_headers_path)',
|
||||
],
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
'variables': {
|
||||
'generator_path': '<(DEPTH)/tools/generate_shim_headers/generate_shim_headers.py',
|
||||
'generator_args': [
|
||||
'--headers-root', '<(headers_root_path)',
|
||||
'--output-directory', '<(shim_headers_path)',
|
||||
'<@(shim_generator_additional_args)',
|
||||
'<@(header_filenames)',
|
||||
],
|
||||
},
|
||||
'action_name': 'generate_<(_target_name)_shim_headers',
|
||||
'inputs': [
|
||||
'<(generator_path)',
|
||||
],
|
||||
'outputs': [
|
||||
'<!@pymod_do_main(generate_shim_headers <@(generator_args) --outputs)',
|
||||
],
|
||||
'action': ['python',
|
||||
'<(generator_path)',
|
||||
'<@(generator_args)',
|
||||
'--generate',
|
||||
],
|
||||
'message': 'Generating <(_target_name) shim headers',
|
||||
},
|
||||
],
|
||||
}
|
24
some.gyp
24
some.gyp
|
@ -1,24 +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': 'some',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
# This file is intended to be locally modified. List the targets you use
|
||||
# regularly. The generated some.sln will contains projects for only
|
||||
# those targets and the targets they are transitively dependent on. This
|
||||
# can result in a solution that loads and unloads faster in Visual
|
||||
# Studio.
|
||||
#
|
||||
# Tip: Create a dummy CL to hold your local edits to this file, so they
|
||||
# don't accidentally get added to another CL that you are editing.
|
||||
#
|
||||
# Example:
|
||||
# '../chrome/chrome.gyp:chrome',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
# 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': {
|
||||
'variables': {
|
||||
'version_py_path': '<(DEPTH)/build/util/version.py',
|
||||
'version_path': '<(DEPTH)/chrome/VERSION',
|
||||
'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
|
||||
},
|
||||
'version_py_path': '<(version_py_path)',
|
||||
'version_path': '<(version_path)',
|
||||
'lastchange_path': '<(lastchange_path)',
|
||||
'version_full':
|
||||
'<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@.@BUILD@.@PATCH@")',
|
||||
'version_mac_dylib':
|
||||
'<!(python <(version_py_path) -f <(version_path) -t "@BUILD@.@PATCH_HI@.@PATCH_LO@" -e "PATCH_HI=int(PATCH)/256" -e "PATCH_LO=int(PATCH)%256")',
|
||||
}, # variables
|
||||
}
|
30
win/asan.gyp
30
win/asan.gyp
|
@ -1,30 +0,0 @@
|
|||
# Copyright (c) 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': 'asan_dynamic_runtime',
|
||||
'type': 'none',
|
||||
'variables': {
|
||||
# Every target is going to depend on asan_dynamic_runtime, so allow
|
||||
# this one to depend on itself.
|
||||
'prune_self_dependency': 1,
|
||||
},
|
||||
'conditions': [
|
||||
['OS=="win"', {
|
||||
'copies': [
|
||||
{
|
||||
'destination': '<(PRODUCT_DIR)',
|
||||
'files': [
|
||||
# Path is relative to this GYP file.
|
||||
'<(DEPTH)/<(make_clang_dir)/lib/clang/<!(python <(DEPTH)/tools/clang/scripts/update.py --print-clang-version)/lib/windows/clang_rt.asan_dynamic-i386.dll',
|
||||
],
|
||||
},
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,21 +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.
|
||||
|
||||
# Include this file to make targets in your .gyp use the default
|
||||
# precompiled header on Windows, in debug builds only as the official
|
||||
# builders blow up (out of memory) if precompiled headers are used for
|
||||
# release builds.
|
||||
|
||||
{
|
||||
'conditions': [
|
||||
['OS=="win" and chromium_win_pch==1', {
|
||||
'target_defaults': {
|
||||
'msvs_precompiled_header': 'build/precompile.h',
|
||||
'msvs_precompiled_source': '<(DEPTH)/build/precompile.cc',
|
||||
'sources': ['<(DEPTH)/build/precompile.cc'],
|
||||
'include_dirs': [ '<(DEPTH)' ],
|
||||
}
|
||||
}],
|
||||
],
|
||||
}
|
Загрузка…
Ссылка в новой задаче