Bug 1921707 - point to new build directory location in third_party/chromium/build r=ng,glandium

Ran:
ack -l "\"//build/" third_party/chromium/build | xargs sed -i.bak -E 's/\"\/\/build\//\"\/\/chromium\/build\//'
ack -l "\"//build:" third_party/chromium/build | xargs sed -i.bak -E 's/\"\/\/build:/\"\/\/chromium\/build:/'
find third_party -name "*.bak" | xargs rm
hg revert \
  third_party/chromium/build/android/pylib/utils/gold_utils.py \
  third_party/chromium/build/args/README.txt \
  third_party/chromium/build/args/chromeos/README.md \
  third_party/chromium/build/gn_helpers_unittest.py \
  third_party/chromium/build/locale_tool.py \
  third_party/chromium/build/toolchain/linux/unbundle/README.md

Differential Revision: https://phabricator.services.mozilla.com/D224542
This commit is contained in:
Michael Froman 2024-10-10 13:42:42 +00:00
parent 6a2c152d7f
commit 162cd0f3c5
172 changed files with 842 additions and 842 deletions

View File

@ -2,11 +2,11 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/buildflag_header.gni")
import("//build/config/chrome_build.gni")
import("//build/config/chromecast_build.gni")
import("//build/config/chromeos/args.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//chromium/build/buildflag_header.gni")
import("//chromium/build/config/chrome_build.gni")
import("//chromium/build/config/chromecast_build.gni")
import("//chromium/build/config/chromeos/args.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
source_set("buildflag_header_h") {
sources = [ "buildflag.h" ]

View File

@ -2,10 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/build_vars.gni")
import("//build/config/android/config.gni")
import("//build/config/android/rules.gni")
import("//build/config/python.gni")
import("//chromium/build/config/android/build_vars.gni")
import("//chromium/build/config/android/config.gni")
import("//chromium/build/config/android/rules.gni")
import("//chromium/build/config/python.gni")
import("//build_overrides/build.gni")
if (enable_java_templates) {
@ -55,7 +55,7 @@ python_library("devil_chromium_py") {
"//third_party/catapult/devil/devil/devil_dependencies.json",
# Read by gn_helpers.BuildWithChromium()
"//build/config/gclient_args.gni",
"//chromium/build/config/gclient_args.gni",
]
}
@ -65,7 +65,7 @@ group("apk_installer_data") {
# Other //build users let devil library fetch these from Google Storage.
if (build_with_chromium) {
data_deps = [
"//build/android/pylib/device/commands",
"//chromium/build/android/pylib/device/commands",
"//tools/android/md5sum",
]
data = [
@ -111,7 +111,7 @@ python_library("test_runner_py") {
# Proguard is needed only when using apks (rather than native executables).
if (enable_java_templates) {
deps = [ "//build/android/stacktrace:java_deobfuscate" ]
deps = [ "//chromium/build/android/stacktrace:java_deobfuscate" ]
}
}

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
java_binary("bytecode_processor") {
main_class = "org.chromium.bytecode.ByteCodeProcessor"

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
android_library("native_test_instrumentation_test_runner_java") {
testonly = true

View File

@ -1,4 +1,4 @@
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
java_library("hello_world_java") {
sources = [ "java/org/chromium/helloworld/HelloWorldPrinter.java" ]

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
android_library("bootstrap_java") {
sources = [

View File

@ -3,7 +3,7 @@
# found in the LICENSE file.
if (current_toolchain == default_toolchain) {
import("//build/toolchain/toolchain.gni")
import("//chromium/build/toolchain/toolchain.gni")
# A toolchain that will capture compiler and linker arguments to a file.
toolchain("flagcapture") {
@ -26,7 +26,7 @@ if (current_toolchain == default_toolchain) {
description = stamp_description
}
}
} else if (current_toolchain == "//build/android/native_flags:flagcapture") {
} else if (current_toolchain == "//chromium/build/android/native_flags:flagcapture") {
# This will record flags from all default configs of the default toolchain.
source_set("default_ccflags") {
sources = [ "empty.cc" ]

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
group("commands") {
data_deps = [ ":chromium_commands_java" ]

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/internal_rules.gni")
import("//chromium/build/config/android/internal_rules.gni")
# Generates a script in the bin directory that runs
# //build/android/resource_sizes.py against the provided apk.
@ -18,13 +18,13 @@ import("//build/config/android/internal_rules.gni")
template("android_resource_sizes_test") {
generate_android_wrapper(target_name) {
forward_variables_from(invoker, [ "data_deps" ])
executable = "//build/android/resource_sizes.py"
executable = "//chromium/build/android/resource_sizes.py"
wrapper_script = "$root_out_dir/bin/run_${target_name}"
assert(defined(invoker.apk_name) != defined(invoker.file_path),
"Exactly one of apk_name or file_path should be provided.")
deps = [ "//build/android:resource_sizes_py" ]
deps = [ "//chromium/build/android:resource_sizes_py" ]
executable_args = [
"--output-format",
"histograms",

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
java_library("java_deobfuscate_java") {
sources = [ "java/org/chromium/build/FlushingReTrace.java" ]

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/android_nocompile.gni")
import("//chromium/build/config/android/android_nocompile.gni")
import("missing_symbol_test.gni")
import("nocompile_gn/nocompile_sources.gni")
@ -22,7 +22,7 @@ if (enable_java_templates) {
android_nocompile_test_suite("android_lint_tests") {
# Depend on lint script so that the action is re-run whenever the script is modified.
pydeps = [ "//build/android/gyp/lint.pydeps" ]
pydeps = [ "//chromium/build/android/gyp/lint.pydeps" ]
tests = [
{

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
declare_args() {
incremental_javac_test_toggle_gn = false
@ -85,7 +85,7 @@ incremental_javac_prebuilt("no_signature_change_prebuilt_generator") {
testonly = true
sources = all_test_sources
toggle_gn_target = ":changing_java"
pydeps = [ "//build/android/gyp/compile_java.pydeps" ]
pydeps = [ "//chromium/build/android/gyp/compile_java.pydeps" ]
}
android_java_prebuilt("no_signature_change_prebuilt_java") {

View File

@ -2,11 +2,11 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/android_nocompile.gni")
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/android_nocompile.gni")
import("//chromium/build/config/android/rules.gni")
missing_symbol_generated_importer_template_nocompile_source =
"//build/android/java/test/missing_symbol/Importer.template"
"//chromium/build/android/java/test/missing_symbol/Importer.template"
template("missing_symbol_test") {
# Not named "_java" to prevent target from being considered a classpath dep.

View File

@ -2,9 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/android/test/missing_symbol_test.gni")
import("//build/config/android/android_nocompile.gni")
import("//build/config/android/rules.gni")
import("//chromium/build/android/test/missing_symbol_test.gni")
import("//chromium/build/config/android/android_nocompile.gni")
import("//chromium/build/config/android/rules.gni")
import("nocompile_sources.gni")
template("lint_test") {
@ -24,7 +24,7 @@ template("lint_test") {
# targets. We need to test linting a normal apk target.
apk_name = _apk_target_name
deps = [ ":$_library_target_name" ]
android_manifest = "//build/android/AndroidManifest.xml"
android_manifest = "//chromium/build/android/AndroidManifest.xml"
}
android_lint(target_name) {

View File

@ -2,10 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
java_binary("unused_resources") {
sources = [ "//build/android/unused_resources/UnusedResources.java" ]
sources = [ "//chromium/build/android/unused_resources/UnusedResources.java" ]
main_class = "build.android.unused_resources.UnusedResources"
deps = [
"//third_party/android_deps:com_android_tools_common_java",

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/apple/compile_plist.gni")
import("//chromium/build/apple/compile_plist.gni")
# The base template used to generate Info.plist files for iOS and Mac apps and
# frameworks.

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/apple/compile_plist.gni")
import("//chromium/build/apple/compile_plist.gni")
# Template to merge multiple .entitlements files performing variable
# substitutions.

View File

@ -43,7 +43,7 @@ template("compile_plist") {
"testonly",
])
script = "//build/apple/plist_util.py"
script = "//chromium/build/apple/plist_util.py"
sources = invoker.plist_templates
outputs = [ _merged_name ]
args = [
@ -59,7 +59,7 @@ template("compile_plist") {
"testonly",
"visibility",
])
script = "//build/apple/plist_util.py"
script = "//chromium/build/apple/plist_util.py"
sources = [ _merged_name ]
outputs = [ _output_name ]
args = [

View File

@ -27,7 +27,7 @@ template("convert_plist") {
"deps",
])
script = "//build/apple/plist_util.py"
script = "//chromium/build/apple/plist_util.py"
sources = [ invoker.source ]
outputs = [ invoker.output ]
args = [

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/util/lastchange.gni")
import("//chromium/build/util/lastchange.gni")
# Template to run the tweak_info_plist.py script on a plist.
#
@ -36,7 +36,7 @@ template("tweak_info_plist") {
"testonly",
"deps",
])
script = "//build/apple/plist_util.py"
script = "//chromium/build/apple/plist_util.py"
sources = invoker.info_plists
outputs = [ _source_name ]
args = [
@ -62,10 +62,10 @@ template("tweak_info_plist") {
"args",
"testonly",
])
script = "//build/apple/tweak_info_plist.py"
script = "//chromium/build/apple/tweak_info_plist.py"
inputs = [
script,
"//build/util/version.py",
"//chromium/build/util/version.py",
lastchange_file,
"//chrome/VERSION",
]

View File

@ -2,7 +2,7 @@
#
# Add import to arg.gn in out directory and run gn gen on the directory to use.
# E.g. for out directory out/foo:
# echo 'import("//build/args/headless.gn")' > out/foo/args.gn
# echo 'import("//chromium/build/args/headless.gn")' > out/foo/args.gn
# gn gen out/foo
#
# Use gn args to add your own build preference args.

View File

@ -95,7 +95,7 @@
# }
template("buildflag_header") {
action(target_name) {
script = "//build/write_buildflag_header.py"
script = "//chromium/build/write_buildflag_header.py"
if (defined(invoker.header_dir)) {
header_file = "${invoker.header_dir}/${invoker.header}"
@ -132,6 +132,6 @@ template("buildflag_header") {
"visibility",
])
public_deps = [ "//build:buildflag_header_h" ]
public_deps = [ "//chromium/build:buildflag_header_h" ]
}
}

View File

@ -122,8 +122,8 @@ template("cipd_package_definition_by_file") {
_output_yaml_filename = invoker.package_definition_yaml
}
action(target_name) {
script = "//build/cipd/cipd_from_file.py"
inputs = [ "//build/cipd/cipd_from_file.py" ]
script = "//chromium/build/cipd/cipd_from_file.py"
inputs = [ "//chromium/build/cipd/cipd_from_file.py" ]
args = [
"--description=" + invoker.description,
"--buildtype=" + invoker.buildtype,

View File

@ -98,7 +98,7 @@ template("compiled_action") {
inputs = []
}
script = "//build/gn_run_binary.py"
script = "//chromium/build/gn_run_binary.py"
# Constuct the host toolchain version of the tool.
host_tool = invoker.tool + "($host_toolchain)"
@ -144,7 +144,7 @@ template("compiled_action_foreach") {
inputs = []
}
script = "//build/gn_run_binary.py"
script = "//chromium/build/gn_run_binary.py"
# Constuct the host toolchain version of the tool.
host_tool = invoker.tool + "($host_toolchain)"

View File

@ -2,26 +2,26 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/c++/c++.gni")
import("//build/config/chrome_build.gni")
import("//build/config/chromecast_build.gni")
import("//build/config/crypto.gni")
import("//build/config/dcheck_always_on.gni")
import("//build/config/features.gni")
import("//chromium/build/config/c++/c++.gni")
import("//chromium/build/config/chrome_build.gni")
import("//chromium/build/config/chromecast_build.gni")
import("//chromium/build/config/crypto.gni")
import("//chromium/build/config/dcheck_always_on.gni")
import("//chromium/build/config/features.gni")
# Subprojects need to override arguments in {mac,ios}_sdk_overrides.gni in their
# .gn config, but those arguments are only used on macOS. Including
# mac_sdk_overrides.gni insures that this doesn't trigger an unused argument
# warning.
import("//build/config/ios/ios_sdk_overrides.gni")
import("//build/config/mac/mac_sdk_overrides.gni")
import("//chromium/build/config/ios/ios_sdk_overrides.gni")
import("//chromium/build/config/mac/mac_sdk_overrides.gni")
import("//build/config/pch.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//build/config/ui.gni")
import("//build/toolchain/goma.gni")
import("//chromium/build/config/pch.gni")
import("//chromium/build/config/sanitizers/sanitizers.gni")
import("//chromium/build/config/ui.gni")
import("//chromium/build/toolchain/goma.gni")
if (is_android) {
import("//build/config/android/abi.gni")
import("//chromium/build/config/android/abi.gni")
}
# ==============================================
@ -247,7 +247,7 @@ group("common_deps") {
public_deps = []
if (using_sanitizer) {
public_deps += [ "//build/config/sanitizers:deps" ]
public_deps += [ "//chromium/build/config/sanitizers:deps" ]
}
#if (use_custom_libcxx) {
@ -291,8 +291,8 @@ group("shared_library_deps") {
# Windows linker setup for EXEs and DLLs.
if (is_win) {
_windows_linker_configs = [
"//build/config/win:sdk_link",
"//build/config/win:common_linker_setup",
"//chromium/build/config/win:sdk_link",
"//chromium/build/config/win:common_linker_setup",
]
}
@ -303,18 +303,18 @@ config("executable_config") {
if (is_win) {
configs += _windows_linker_configs
} else if (is_mac) {
configs += [ "//build/config/mac:mac_dynamic_flags" ]
configs += [ "//chromium/build/config/mac:mac_dynamic_flags" ]
} else if (is_ios) {
configs += [
"//build/config/ios:ios_dynamic_flags",
"//build/config/ios:ios_executable_flags",
"//chromium/build/config/ios:ios_dynamic_flags",
"//chromium/build/config/ios:ios_executable_flags",
]
} else if (is_linux || is_chromeos || is_android || current_os == "aix") {
configs += [ "//build/config/gcc:executable_config" ]
configs += [ "//chromium/build/config/gcc:executable_config" ]
if (is_chromecast) {
configs += [ "//build/config/chromecast:executable_config" ]
configs += [ "//chromium/build/config/chromecast:executable_config" ]
} else if (is_fuchsia) {
configs += [ "//build/config/fuchsia:executable_config" ]
configs += [ "//chromium/build/config/fuchsia:executable_config" ]
}
}
@ -326,7 +326,7 @@ config("executable_config") {
if (use_locally_built_instrumented_libraries) {
configs += [ "//third_party/instrumented_libraries:locally_built_ldflags" ]
}
configs += [ "//build/config/sanitizers:link_executable" ]
configs += [ "//chromium/build/config/sanitizers:link_executable" ]
}
# Shared library configs -------------------------------------------------------
@ -338,16 +338,16 @@ config("shared_library_config") {
if (is_win) {
configs += _windows_linker_configs
} else if (is_mac) {
configs += [ "//build/config/mac:mac_dynamic_flags" ]
configs += [ "//chromium/build/config/mac:mac_dynamic_flags" ]
} else if (is_ios) {
configs += [
"//build/config/ios:ios_dynamic_flags",
"//build/config/ios:ios_shared_library_flags",
"//chromium/build/config/ios:ios_dynamic_flags",
"//chromium/build/config/ios:ios_shared_library_flags",
]
} else if (is_chromecast) {
configs += [ "//build/config/chromecast:shared_library_config" ]
configs += [ "//chromium/build/config/chromecast:shared_library_config" ]
} else if (is_linux || is_chromeos || current_os == "aix") {
configs += [ "//build/config/gcc:shared_library_config" ]
configs += [ "//chromium/build/config/gcc:shared_library_config" ]
}
# If we're using the prebuilt instrumented libraries with the sanitizers, we
@ -358,7 +358,7 @@ config("shared_library_config") {
if (use_locally_built_instrumented_libraries) {
configs += [ "//third_party/instrumented_libraries:locally_built_ldflags" ]
}
configs += [ "//build/config/sanitizers:link_shared_library" ]
configs += [ "//chromium/build/config/sanitizers:link_shared_library" ]
}
# Add this config to your target to enable precompiled headers.
@ -380,12 +380,12 @@ config("precompiled_headers") {
# This is a file that GN will compile with the above header. It will be
# implicitly added to the sources (potentially multiple times, with one
# variant for each language used in the target).
precompiled_source = "//build/precompile.cc"
precompiled_source = "//chromium/build/precompile.cc"
# Force include the header.
cflags = [ "/FI$precompiled_header" ]
} else if (is_mac || is_linux) {
precompiled_source = "//build/precompile.h"
precompiled_source = "//chromium/build/precompile.h"
}
}
}

View File

@ -186,31 +186,31 @@ if (host_toolchain == "") {
if (host_os == "linux" || host_os == "openbsd") {
if (target_os != "linux") {
host_toolchain = "//build/toolchain/linux:clang_$host_cpu"
host_toolchain = "//chromium/build/toolchain/linux:clang_$host_cpu"
} else if (is_clang) {
host_toolchain = "//build/toolchain/linux:clang_$host_cpu"
host_toolchain = "//chromium/build/toolchain/linux:clang_$host_cpu"
} else {
host_toolchain = "//build/toolchain/linux:$host_cpu"
host_toolchain = "//chromium/build/toolchain/linux:$host_cpu"
}
} else if (host_os == "mac") {
host_toolchain = "//build/toolchain/mac:clang_$host_cpu"
host_toolchain = "//chromium/build/toolchain/mac:clang_$host_cpu"
} else if (host_os == "win") {
# On Windows always use the target CPU for host builds for x86/x64. On the
# configurations we support this will always work and it saves build steps.
# Windows ARM64 targets require an x64 host for cross build.
if (target_cpu == "x86" || target_cpu == "x64") {
if (is_clang) {
host_toolchain = "//build/toolchain/win:win_clang_$target_cpu"
host_toolchain = "//chromium/build/toolchain/win:win_clang_$target_cpu"
} else {
host_toolchain = "//build/toolchain/win:$target_cpu"
host_toolchain = "//chromium/build/toolchain/win:$target_cpu"
}
} else if (is_clang) {
host_toolchain = "//build/toolchain/win:win_clang_$host_cpu"
host_toolchain = "//chromium/build/toolchain/win:win_clang_$host_cpu"
} else {
host_toolchain = "//build/toolchain/win:$host_cpu"
host_toolchain = "//chromium/build/toolchain/win:$host_cpu"
}
} else if (host_os == "aix") {
host_toolchain = "//build/toolchain/aix:$host_cpu"
host_toolchain = "//chromium/build/toolchain/aix:$host_cpu"
} else {
assert(false, "Unsupported host_os: $host_os")
}
@ -221,38 +221,38 @@ _default_toolchain = ""
if (target_os == "android") {
assert(host_os == "linux" || host_os == "mac",
"Android builds are only supported on Linux and Mac hosts.")
_default_toolchain = "//build/toolchain/android:android_clang_$target_cpu"
_default_toolchain = "//chromium/build/toolchain/android:android_clang_$target_cpu"
} else if (target_os == "chromeos" || target_os == "linux" || target_os == "openbsd") {
# See comments in build/toolchain/cros/BUILD.gn about board compiles.
if (is_clang) {
_default_toolchain = "//build/toolchain/linux:clang_$target_cpu"
_default_toolchain = "//chromium/build/toolchain/linux:clang_$target_cpu"
} else {
_default_toolchain = "//build/toolchain/linux:$target_cpu"
_default_toolchain = "//chromium/build/toolchain/linux:$target_cpu"
}
} else if (target_os == "fuchsia") {
_default_toolchain = "//build/toolchain/fuchsia:$target_cpu"
_default_toolchain = "//chromium/build/toolchain/fuchsia:$target_cpu"
} else if (target_os == "ios") {
_default_toolchain = "//build/toolchain/ios:ios_clang_$target_cpu"
_default_toolchain = "//chromium/build/toolchain/ios:ios_clang_$target_cpu"
} else if (target_os == "mac") {
#assert(host_os == "mac" || host_os == "linux",
# "Mac cross-compiles are unsupported.")
_default_toolchain = "//build/toolchain/mac:clang_$target_cpu"
_default_toolchain = "//chromium/build/toolchain/mac:clang_$target_cpu"
} else if (target_os == "win") {
# On Windows, we use the same toolchain for host and target by default.
# Beware, win cross builds have some caveats, see docs/win_cross.md
if (is_clang) {
_default_toolchain = "//build/toolchain/win:win_clang_$target_cpu"
_default_toolchain = "//chromium/build/toolchain/win:win_clang_$target_cpu"
} else {
_default_toolchain = "//build/toolchain/win:$target_cpu"
_default_toolchain = "//chromium/build/toolchain/win:$target_cpu"
}
} else if (target_os == "winuwp") {
# Only target WinUWP on for a Windows store application and only
# x86, x64 and arm are supported target CPUs.
assert(target_cpu == "x86" || target_cpu == "x64" || target_cpu == "arm" ||
target_cpu == "arm64")
_default_toolchain = "//build/toolchain/win:uwp_$target_cpu"
_default_toolchain = "//chromium/build/toolchain/win:uwp_$target_cpu"
} else if (target_os == "aix") {
_default_toolchain = "//build/toolchain/aix:$target_cpu"
_default_toolchain = "//chromium/build/toolchain/aix:$target_cpu"
} else {
assert(false, "Unsupported target_os: $target_os")
}
@ -315,70 +315,70 @@ is_posix = !is_win && !is_fuchsia
# Holds all configs used for running the compiler.
default_compiler_configs = [
"//build/config:feature_flags",
"//build/config/compiler:afdo",
"//build/config/compiler:afdo_optimize_size",
"//build/config/compiler:cet_shadow_stack",
"//build/config/compiler:compiler",
"//build/config/compiler:compiler_arm_fpu",
"//build/config/compiler:compiler_arm_thumb",
"//build/config/compiler:chromium_code",
"//build/config/compiler:default_include_dirs",
"//build/config/compiler:default_optimization",
"//build/config/compiler:default_stack_frames",
"//build/config/compiler:default_symbols",
"//build/config/compiler:export_dynamic",
"//build/config/compiler:no_exceptions",
"//build/config/compiler:no_rtti",
"//build/config/compiler:runtime_library",
"//build/config/compiler:thin_archive",
"//build/config/compiler:thinlto_optimize_default",
"//build/config/compiler:default_init_stack_vars",
"//build/config/compiler:no_unresolved_symbols",
"//build/config/compiler/pgo:default_pgo_flags",
"//build/config/coverage:default_coverage",
"//build/config/sanitizers:default_sanitizer_flags",
"//chromium/build/config:feature_flags",
"//chromium/build/config/compiler:afdo",
"//chromium/build/config/compiler:afdo_optimize_size",
"//chromium/build/config/compiler:cet_shadow_stack",
"//chromium/build/config/compiler:compiler",
"//chromium/build/config/compiler:compiler_arm_fpu",
"//chromium/build/config/compiler:compiler_arm_thumb",
"//chromium/build/config/compiler:chromium_code",
"//chromium/build/config/compiler:default_include_dirs",
"//chromium/build/config/compiler:default_optimization",
"//chromium/build/config/compiler:default_stack_frames",
"//chromium/build/config/compiler:default_symbols",
"//chromium/build/config/compiler:export_dynamic",
"//chromium/build/config/compiler:no_exceptions",
"//chromium/build/config/compiler:no_rtti",
"//chromium/build/config/compiler:runtime_library",
"//chromium/build/config/compiler:thin_archive",
"//chromium/build/config/compiler:thinlto_optimize_default",
"//chromium/build/config/compiler:default_init_stack_vars",
"//chromium/build/config/compiler:no_unresolved_symbols",
"//chromium/build/config/compiler/pgo:default_pgo_flags",
"//chromium/build/config/coverage:default_coverage",
"//chromium/build/config/sanitizers:default_sanitizer_flags",
]
if (is_win) {
default_compiler_configs += [
"//build/config/win:default_cfg_compiler",
"//build/config/win:default_crt",
"//build/config/win:lean_and_mean",
"//build/config/win:nominmax",
"//build/config/win:unicode",
"//build/config/win:winver",
"//chromium/build/config/win:default_cfg_compiler",
"//chromium/build/config/win:default_crt",
"//chromium/build/config/win:lean_and_mean",
"//chromium/build/config/win:nominmax",
"//chromium/build/config/win:unicode",
"//chromium/build/config/win:winver",
]
}
if (is_posix) {
if (current_os != "aix") {
default_compiler_configs +=
[ "//build/config/gcc:symbol_visibility_hidden" ]
[ "//chromium/build/config/gcc:symbol_visibility_hidden" ]
}
}
if (is_fuchsia) {
default_compiler_configs += [ "//build/config/gcc:symbol_visibility_hidden" ]
default_compiler_configs += [ "//chromium/build/config/gcc:symbol_visibility_hidden" ]
}
if (is_android) {
default_compiler_configs +=
[ "//build/config/android:default_orderfile_instrumentation" ]
[ "//chromium/build/config/android:default_orderfile_instrumentation" ]
}
if (is_clang && !is_nacl) {
default_compiler_configs += [
"//build/config/clang:find_bad_constructs",
"//build/config/clang:extra_warnings",
"//chromium/build/config/clang:find_bad_constructs",
"//chromium/build/config/clang:extra_warnings",
]
}
# Debug/release-related defines.
if (is_debug) {
default_compiler_configs += [ "//build/config:debug" ]
default_compiler_configs += [ "//chromium/build/config:debug" ]
} else {
default_compiler_configs += [ "//build/config:release" ]
default_compiler_configs += [ "//chromium/build/config:release" ]
}
# Static libraries and source sets use only the compiler ones.
@ -401,28 +401,28 @@ if (is_win) {
# Many targets remove these configs, so they are not contained within
# //build/config:executable_config for easy removal.
_linker_configs = [
"//build/config/win:default_incremental_linking",
"//chromium/build/config/win:default_incremental_linking",
# Default to console-mode apps. Most of our targets are tests and such
# that shouldn't use the windows subsystem.
"//build/config/win:console",
"//chromium/build/config/win:console",
]
} else if (is_mac) {
_linker_configs = [ "//build/config/mac:strip_all" ]
_linker_configs = [ "//chromium/build/config/mac:strip_all" ]
} else {
_linker_configs = []
}
# Executable defaults.
default_executable_configs = default_compiler_configs + [
"//build/config:default_libs",
"//build/config:executable_config",
"//chromium/build/config:default_libs",
"//chromium/build/config:executable_config",
] + _linker_configs
if (is_win) {
# Turn on linker CFI for executables, and position it so it can be removed
# if needed.
default_executable_configs += [ "//build/config/win:cfi_linker" ]
default_executable_configs += [ "//chromium/build/config/win:cfi_linker" ]
}
set_defaults("executable") {
@ -432,19 +432,19 @@ set_defaults("executable") {
# Shared library and loadable module defaults (also for components in component
# mode).
default_shared_library_configs = default_compiler_configs + [
"//build/config:default_libs",
"//build/config:shared_library_config",
"//chromium/build/config:default_libs",
"//chromium/build/config:shared_library_config",
] + _linker_configs
if (is_win) {
# Turn on linker CFI for DLLs, and position it so it can be removed if needed.
default_shared_library_configs += [ "//build/config/win:cfi_linker" ]
default_shared_library_configs += [ "//chromium/build/config/win:cfi_linker" ]
}
if (is_android) {
# Strip native JNI exports from shared libraries by default. Binaries that
# want this can remove this config.
default_shared_library_configs +=
[ "//build/config/android:hide_all_but_jni_onload" ]
[ "//chromium/build/config/android:hide_all_but_jni_onload" ]
}
set_defaults("shared_library") {
configs = default_shared_library_configs
@ -454,7 +454,7 @@ set_defaults("loadable_module") {
# loadable_modules are generally used by other libs, not just via JNI.
if (is_android) {
configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
configs -= [ "//chromium/build/config/android:hide_all_but_jni_onload" ]
}
}
@ -475,8 +475,8 @@ TESTONLY_AND_VISIBILITY = [
# Variables
# no_default_deps: If true, no standard dependencies will be added.
# Targets that set this usually also want to remove
# "//build/config/compiler:runtime_library" from configs (to remove
# its subconfig "//build/config/c++:runtime_library").
# "//chromium/build/config/compiler:runtime_library" from configs (to remove
# its subconfig "//chromium/build/config/c++:runtime_library").
foreach(_target_type,
[
"executable",
@ -501,7 +501,7 @@ foreach(_target_type,
# //build/config:shared_library_deps
# (This explicit list is so that grepping for these configs finds where
# they are used.)
deps += [ "//build/config:${_target_type}_deps" ]
deps += [ "//chromium/build/config:${_target_type}_deps" ]
}
# On Android, write shared library output file to metadata. We will use
@ -580,7 +580,7 @@ set_defaults("component") {
if (is_component_build) {
configs = default_shared_library_configs
if (is_android) {
configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
configs -= [ "//chromium/build/config/android:hide_all_but_jni_onload" ]
}
} else {
configs = default_compiler_configs

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/sanitizers/sanitizers.gni")
import("//build/toolchain/toolchain.gni")
import("//chromium/build/config/sanitizers/sanitizers.gni")
import("//chromium/build/toolchain/toolchain.gni")
# This is included by reference in the //build/config/compiler config that
# is applied to all targets. It is here to separate out the logic.

View File

@ -2,13 +2,13 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/config.gni")
import("//build/config/c++/c++.gni")
import("//build/config/compiler/compiler.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//chromium/build/config/android/config.gni")
import("//chromium/build/config/c++/c++.gni")
import("//chromium/build/config/compiler/compiler.gni")
import("//chromium/build/config/sanitizers/sanitizers.gni")
if (current_toolchain == default_toolchain) {
import("//build/toolchain/concurrent_links.gni")
import("//chromium/build/toolchain/concurrent_links.gni")
}
assert(is_android)
@ -111,13 +111,13 @@ config("runtime_library") {
config("hide_all_but_jni_onload") {
ldflags = [ "-Wl,--version-script=" + rebase_path(
"//build/android/android_only_explicit_jni_exports.lst",
"//chromium/build/android/android_only_explicit_jni_exports.lst",
root_build_dir) ]
}
config("hide_all_but_jni") {
ldflags = [ "-Wl,--version-script=" +
rebase_path("//build/android/android_only_jni_exports.lst",
rebase_path("//chromium/build/android/android_only_jni_exports.lst",
root_build_dir) ]
}

View File

@ -45,7 +45,7 @@ if (target_cpu == "x86") {
android_app_abi = "x86"
android_abi_target = "i686-linux-android"
} else if (target_cpu == "arm") {
import("//build/config/arm.gni")
import("//chromium/build/config/arm.gni")
if (arm_version < 7) {
android_app_abi = "armeabi"
} else {
@ -97,5 +97,5 @@ if (target_cpu == "arm64") {
if (defined(android_secondary_abi_cpu)) {
android_secondary_abi_toolchain =
"//build/toolchain/android:android_clang_${android_secondary_abi_cpu}"
"//chromium/build/toolchain/android:android_clang_${android_secondary_abi_cpu}"
}

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
declare_args() {
# Used by tests to enable generating build files for GN targets which should
@ -33,7 +33,7 @@ template("android_nocompile_test_suite") {
action(target_name) {
testonly = true
script = "//build/android/gyp/nocompile_test.py"
script = "//chromium/build/android/gyp/nocompile_test.py"
_tests = invoker.tests
_test0 = _tests[0]
@ -57,7 +57,7 @@ template("android_nocompile_test_suite") {
# Depend on compile_java Python scripts so that the action is re-run whenever the script is
# modified.
_pydeps = [ "//build/android/gyp/compile_java.pydeps" ]
_pydeps = [ "//chromium/build/android/gyp/compile_java.pydeps" ]
if (defined(invoker.pydeps)) {
_pydeps += invoker.pydeps
}

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/config.gni")
import("//chromium/build/config/android/config.gni")
# Contains useful GN variables that may be used by scripts that take
# --output-directory as an arg.

View File

@ -8,8 +8,8 @@
# toolchain, this GNI file may be read and processed from within Chrome OS
# toolchains. Checking |is_android| here would therefore be too restrictive.
if (is_android || is_chromeos) {
import("//build/config/chromecast_build.gni")
import("//build/config/dcheck_always_on.gni")
import("//chromium/build/config/chromecast_build.gni")
import("//chromium/build/config/dcheck_always_on.gni")
import("//build_overrides/build.gni")
import("abi.gni")
@ -17,7 +17,7 @@ if (is_android || is_chromeos) {
# Some non-chromium projects (e.g. WebRTC) use our build configs
# heavily but don't write gclient args files.
import("//build/config/gclient_args.gni")
import("//chromium/build/config/gclient_args.gni")
if (defined(checkout_android_native_support)) {
n = "$0x0A" # Newline
assert(checkout_android_native_support,
@ -31,7 +31,7 @@ if (is_android || is_chromeos) {
}
has_chrome_android_internal =
exec_script("//build/dir_exists.py",
exec_script("//chromium/build/dir_exists.py",
[ rebase_path("//clank", root_build_dir) ],
"string") == "True"
@ -72,7 +72,7 @@ if (is_android || is_chromeos) {
if (enable_chrome_android_internal) {
import("//clank/config.gni")
} else {
import("//build/config/android/sdk.gni")
import("//chromium/build/config/android/sdk.gni")
declare_args() {
# Which Android SDK to use.
android_sdk_release = default_android_sdk_release
@ -116,7 +116,7 @@ if (is_android || is_chromeos) {
}
if (!defined(default_android_keystore_path)) {
default_android_keystore_path = "//build/android/chromium-debug.keystore"
default_android_keystore_path = "//chromium/build/android/chromium-debug.keystore"
default_android_keystore_name = "chromiumdebugkey"
default_android_keystore_password = "chromium"
}

View File

@ -19,7 +19,7 @@
# The following variables have the usual GN meaning: data, deps, inputs,
# outputs, testonly, visibility.
import("//build/config/python.gni")
import("//chromium/build/config/python.gni")
template("copy_ex") {
action_with_pydeps(target_name) {
@ -43,7 +43,7 @@ template("copy_ex") {
inputs = invoker.inputs
}
script = "//build/android/gyp/copy_ex.py"
script = "//chromium/build/android/gyp/copy_ex.py"
args = [
"--dest",

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
template("unwind_table_asset") {
# Note: This file name is used in multiple monochrome build scripts.
@ -18,7 +18,7 @@ template("unwind_table_asset") {
"root_out_dir")
}
script = "//build/android/gyp/extract_unwind_tables.py"
script = "//chromium/build/android/gyp/extract_unwind_tables.py"
outputs = [ _asset_path ]
inputs = [ "${_root_dir}/lib.unstripped/$shlib_prefix${invoker.library_target}$shlib_extension" ]

View File

@ -4,19 +4,19 @@
# Do not add any imports to non-//build directories here.
# Some projects (e.g. V8) do not have non-build directories DEPS'ed in.
import("//build/config/android/config.gni")
import("//build/config/android/copy_ex.gni")
import("//build/config/compiler/compiler.gni")
import("//build/config/compute_inputs_for_analyze.gni")
import("//build/config/coverage/coverage.gni")
import("//build/config/python.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//build/toolchain/goma.gni")
import("//build/toolchain/kythe.gni")
import("//build/util/generate_wrapper.gni")
import("//chromium/build/config/android/config.gni")
import("//chromium/build/config/android/copy_ex.gni")
import("//chromium/build/config/compiler/compiler.gni")
import("//chromium/build/config/compute_inputs_for_analyze.gni")
import("//chromium/build/config/coverage/coverage.gni")
import("//chromium/build/config/python.gni")
import("//chromium/build/config/sanitizers/sanitizers.gni")
import("//chromium/build/toolchain/goma.gni")
import("//chromium/build/toolchain/kythe.gni")
import("//chromium/build/util/generate_wrapper.gni")
import("//build_overrides/build.gni")
if (current_toolchain == default_toolchain) {
import("//build/toolchain/concurrent_links.gni")
import("//chromium/build/toolchain/concurrent_links.gni")
}
assert(is_android)
@ -190,7 +190,7 @@ template("write_build_config") {
deps += [ invoker.android_manifest_dep ]
}
script = "//build/android/gyp/write_build_config.py"
script = "//chromium/build/android/gyp/write_build_config.py"
depfile = "$target_gen_dir/$target_name.d"
inputs = []
outputs = [ invoker.build_config ]
@ -638,11 +638,11 @@ template("generate_android_wrapper") {
generate_wrapper(target_name) {
forward_variables_from(invoker, "*", TESTONLY_AND_VISIBILITY)
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY)
generator_script = "//build/android/gyp/generate_android_wrapper.py"
generator_script = "//chromium/build/android/gyp/generate_android_wrapper.py"
sources = [
"//build/android/gyp/util/build_utils.py",
"//build/gn_helpers.py",
"//build/util/generate_wrapper.py",
"//chromium/build/android/gyp/util/build_utils.py",
"//chromium/build/gn_helpers.py",
"//chromium/build/util/generate_wrapper.py",
]
}
}
@ -670,7 +670,7 @@ template("generate_r_java") {
inputs = [ invoker.build_config ]
outputs = [ invoker.srcjar_path ]
_rebased_build_config = rebase_path(invoker.build_config, root_build_dir)
script = "//build/android/gyp/create_r_java.py"
script = "//chromium/build/android/gyp/create_r_java.py"
args = [
"--depfile",
rebase_path(depfile, root_build_dir),
@ -739,7 +739,7 @@ template("test_runner_script") {
if (defined(android_test_runner_script)) {
_runner_script = android_test_runner_script
} else {
_runner_script = "//build/android/test_runner.py"
_runner_script = "//chromium/build/android/test_runner.py"
}
deps = []
@ -747,7 +747,7 @@ template("test_runner_script") {
deps = invoker.deps
}
data_deps = [
"//build/android:test_runner_py",
"//chromium/build/android:test_runner_py",
"//testing:test_scripts_shared",
]
if (defined(invoker.data_deps)) {
@ -992,9 +992,9 @@ if (enable_java_templates) {
# https://crbug.com/1098752 Fix for bot OOM (https://crbug.com/1098333).
if (defined(java_cmd_pool_size)) {
pool = "//build/config/android:java_cmd_pool($default_toolchain)"
pool = "//chromium/build/config/android:java_cmd_pool($default_toolchain)"
} else {
pool = "//build/toolchain:link_pool($default_toolchain)"
pool = "//chromium/build/toolchain:link_pool($default_toolchain)"
}
# Lint requires generated sources and generated resources from the build.
@ -1031,7 +1031,7 @@ if (enable_java_templates) {
_lint_gen_dir = "$target_gen_dir/$target_name"
_backported_methods = "//third_party/r8/backported_methods.txt"
script = "//build/android/gyp/lint.py"
script = "//chromium/build/android/gyp/lint.py"
depfile = "$target_gen_dir/$target_name.d"
inputs = [
_lint_binary_path,
@ -1108,7 +1108,7 @@ if (enable_java_templates) {
} else {
_stamp_path = "$target_out_dir/$target_name/build.lint.stamp"
deps += [
"//build/android:prepare_android_lint_cache",
"//chromium/build/android:prepare_android_lint_cache",
invoker.build_config_dep,
]
inputs += [ invoker.build_config ]
@ -1147,7 +1147,7 @@ if (enable_java_templates) {
"data_deps",
"public_deps",
])
_script = "//build/android/gyp/proguard.py"
_script = "//chromium/build/android/gyp/proguard.py"
_deps = invoker.deps
_inputs = [
@ -1357,9 +1357,9 @@ if (enable_java_templates) {
# http://crbug.com/725224. Fix for bots running out of memory.
if (defined(java_cmd_pool_size)) {
pool = "//build/config/android:java_cmd_pool($default_toolchain)"
pool = "//chromium/build/config/android:java_cmd_pool($default_toolchain)"
} else {
pool = "//build/toolchain:link_pool($default_toolchain)"
pool = "//chromium/build/toolchain:link_pool($default_toolchain)"
}
}
}
@ -1381,7 +1381,7 @@ if (enable_java_templates) {
_build_config = invoker.build_config
_script_name = invoker.script_name
script = "//build/android/gyp/create_java_binary_script.py"
script = "//chromium/build/android/gyp/create_java_binary_script.py"
inputs = [ _build_config ]
_java_script = "$root_build_dir/bin/$_script_name"
outputs = [ _java_script ]
@ -1460,7 +1460,7 @@ if (enable_java_templates) {
"apply_mapping can only be specified if proguard is enabled.")
if (_enable_main_dex_list) {
_main_dex_rules = "//build/android/main_dex_classes.flags"
_main_dex_rules = "//chromium/build/android/main_dex_classes.flags"
}
if (_desugar_needs_classpath || _proguard_enabled) {
@ -1573,7 +1573,7 @@ if (enable_java_templates) {
"data",
"data_deps",
])
script = "//build/android/gyp/dex.py"
script = "//chromium/build/android/gyp/dex.py"
deps = _deps
depfile = "$target_gen_dir/$target_name.d"
outputs = [ invoker.output ]
@ -1585,9 +1585,9 @@ if (enable_java_templates) {
if (!_is_library) {
# http://crbug.com/725224. Fix for bots running out of memory.
if (defined(java_cmd_pool_size)) {
pool = "//build/config/android:java_cmd_pool($default_toolchain)"
pool = "//chromium/build/config/android:java_cmd_pool($default_toolchain)"
} else {
pool = "//build/toolchain:link_pool($default_toolchain)"
pool = "//chromium/build/toolchain:link_pool($default_toolchain)"
}
}
@ -1742,7 +1742,7 @@ if (enable_java_templates) {
# min_sdk_version: The minimum Android SDK version this target supports.
template("dex_jdk_libs") {
action_with_pydeps(target_name) {
script = "//build/android/gyp/dex_jdk_libs.py"
script = "//chromium/build/android/gyp/dex_jdk_libs.py"
inputs = [
_r8_path,
_desugar_jdk_libs_json,
@ -1782,7 +1782,7 @@ if (enable_java_templates) {
_sources_json_file = "$target_out_dir/${target_name}__jacoco_sources.json"
_jacococli_jar = "//third_party/jacoco/lib/jacococli.jar"
script = "//build/android/gyp/jacoco_instr.py"
script = "//chromium/build/android/gyp/jacoco_instr.py"
inputs = invoker.java_files + [
_jacococli_jar,
invoker.input_jar_path,
@ -1814,7 +1814,7 @@ if (enable_java_templates) {
template("filter_jar") {
action_with_pydeps(target_name) {
script = "//build/android/gyp/filter_zip.py"
script = "//chromium/build/android/gyp/filter_zip.py"
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY + [ "deps" ])
inputs = [ invoker.input_jar ]
if (defined(invoker.inputs)) {
@ -1852,7 +1852,7 @@ if (enable_java_templates) {
_desugar_output_jar = "$target_out_dir/$target_name.desugar.jar"
action_with_pydeps(_desugar_target) {
script = "//build/android/gyp/desugar.py"
script = "//chromium/build/android/gyp/desugar.py"
deps = _deps + invoker.classpath_deps
depfile = "$target_gen_dir/$target_name.d"
_rebased_build_config =
@ -1939,7 +1939,7 @@ if (enable_java_templates) {
action_with_pydeps(target_name) {
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY)
_bytecode_checker_script = "$root_build_dir/bin/helper/bytecode_processor"
script = "//build/android/gyp/bytecode_processor.py"
script = "//chromium/build/android/gyp/bytecode_processor.py"
inputs = [
invoker.build_config,
invoker.input_jar,
@ -1948,7 +1948,7 @@ if (enable_java_templates) {
outputs = [ "$target_out_dir/$target_name.bytecode.stamp" ]
deps =
invoker.deps +
[ "//build/android/bytecode:bytecode_processor($default_toolchain)" ]
[ "//chromium/build/android/bytecode:bytecode_processor($default_toolchain)" ]
_rebased_build_config = rebase_path(invoker.build_config, root_build_dir)
args = [
"--target-name",
@ -1984,7 +1984,7 @@ if (enable_java_templates) {
template("merge_manifests") {
action_with_pydeps(target_name) {
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY + [ "deps" ])
script = "//build/android/gyp/merge_manifest.py"
script = "//chromium/build/android/gyp/merge_manifest.py"
depfile = "$target_gen_dir/$target_name.d"
inputs = [
@ -2063,7 +2063,7 @@ if (enable_java_templates) {
"deps",
"sources",
])
script = "//build/android/gyp/prepare_resources.py"
script = "//chromium/build/android/gyp/prepare_resources.py"
depfile = "$target_gen_dir/${invoker.target_name}.d"
outputs = [
@ -2229,7 +2229,7 @@ if (enable_java_templates) {
}
_final_srcjar_path = "${target_gen_dir}/${target_name}.srcjar"
_script = "//build/android/gyp/compile_resources.py"
_script = "//chromium/build/android/gyp/compile_resources.py"
_inputs = [
invoker.build_config,
@ -2553,7 +2553,7 @@ if (enable_java_templates) {
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY)
action_with_pydeps(target_name) {
forward_variables_from(invoker, [ "deps" ])
script = "//build/android/gyp/optimize_resources.py"
script = "//chromium/build/android/gyp/optimize_resources.py"
outputs = [ invoker.optimized_proto_output ]
inputs = [
android_sdk_tools_bundle_aapt2,
@ -2601,7 +2601,7 @@ if (enable_java_templates) {
template("unused_resources") {
action_with_pydeps(target_name) {
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY + [ "deps" ])
script = "//build/android/gyp/unused_resources.py"
script = "//chromium/build/android/gyp/unused_resources.py"
depfile = "$target_gen_dir/${target_name}.d"
_unused_resources_script = "$root_build_dir/bin/helper/unused_resources"
inputs = [ _unused_resources_script ]
@ -2609,7 +2609,7 @@ if (enable_java_templates) {
if (!defined(deps)) {
deps = []
}
deps += [ "//build/android/unused_resources:unused_resources" ]
deps += [ "//chromium/build/android/unused_resources:unused_resources" ]
_rebased_module_build_config =
rebase_path(invoker.build_config, root_build_dir)
args = [
@ -2653,7 +2653,7 @@ if (enable_java_templates) {
template("create_size_info_files") {
action_with_pydeps(target_name) {
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY + [ "deps" ])
script = "//build/android/gyp/create_size_info_files.py"
script = "//chromium/build/android/gyp/create_size_info_files.py"
_jar_info_path = "$root_build_dir/size-info/${invoker.name}.jar.info"
_pak_info_path = "$root_build_dir/size-info/${invoker.name}.pak.info"
_res_info_path = "$root_build_dir/size-info/${invoker.name}.res.info"
@ -2750,7 +2750,7 @@ if (enable_java_templates) {
invoker.secondary_native_lib_placeholders
}
_script = "//build/android/gyp/apkbuilder.py"
_script = "//chromium/build/android/gyp/apkbuilder.py"
_apksigner = "$android_sdk_build_tools/lib/apksigner.jar"
_zipalign = "$android_sdk_build_tools/zipalign"
@ -3005,9 +3005,9 @@ if (enable_java_templates) {
action_with_pydeps(target_name) {
if (invoker.use_turbine) {
script = "//build/android/gyp/turbine.py"
script = "//chromium/build/android/gyp/turbine.py"
} else {
script = "//build/android/gyp/compile_java.py"
script = "//chromium/build/android/gyp/compile_java.py"
}
if (target_name == "chrome_java__header") {
@ -3092,7 +3092,7 @@ if (enable_java_templates) {
args += [ "--gomacc-path=$goma_dir/gomacc" ]
# Override the default action_pool when goma is enabled.
pool = "//build/config/android:goma_javac_pool"
pool = "//chromium/build/config/android:goma_javac_pool"
}
# Flag enable_kythe_annotations requires
@ -3191,7 +3191,7 @@ if (enable_java_templates) {
"data_deps",
"public_deps",
])
script = "//build/android/gyp/ijar.py"
script = "//chromium/build/android/gyp/ijar.py"
deps = [ _ijar_target ]
if (defined(invoker.deps)) {
deps += invoker.deps
@ -3868,7 +3868,7 @@ if (enable_java_templates) {
get_label_info(invoker.bytecode_rewriter_target, "name")
_rebased_build_config = rebase_path(_build_config, root_build_dir)
action_with_pydeps(_rewritten_jar_target_name) {
script = "//build/android/gyp/bytecode_rewriter.py"
script = "//chromium/build/android/gyp/bytecode_rewriter.py"
inputs = [
_rewriter_path,
_build_config,
@ -4124,7 +4124,7 @@ template("create_android_app_bundle_module") {
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY)
_deps = invoker.deps
_script = "//build/android/gyp/apkbuilder.py"
_script = "//chromium/build/android/gyp/apkbuilder.py"
# NOTE: Compared to the inputs of the "package_apk" template action,
# this list is much smaller, since finalize_apk is never called
@ -4190,7 +4190,7 @@ template("create_android_app_bundle_module") {
# The library is imported via proguard when proguard is enabled.
if (!_proguard_enabled && enable_jdk_library_desugaring &&
invoker.module_name == "base") {
_all_jdk_libs = "//build/android:all_jdk_libs"
_all_jdk_libs = "//chromium/build/android:all_jdk_libs"
_deps += [ _all_jdk_libs ]
_jdk_libs_dex =
get_label_info(_all_jdk_libs, "target_out_dir") + "/all_jdk_libs.l8.dex"
@ -4281,7 +4281,7 @@ template("create_android_app_bundle_module") {
template("dexsplitter") {
action_with_pydeps(target_name) {
forward_variables_from(invoker, [ "deps" ])
script = "//build/android/gyp/dexsplitter.py"
script = "//chromium/build/android/gyp/dexsplitter.py"
_stamp = "${target_gen_dir}/${target_name}.stamp"
outputs = [ _stamp ]
@ -4336,7 +4336,7 @@ template("dexsplitter") {
# output: Path to native libraries config.
template("allot_native_libraries") {
action_with_pydeps(target_name) {
script = "//build/android/gyp/allot_native_libraries.py"
script = "//chromium/build/android/gyp/allot_native_libraries.py"
args = [
"--output",
rebase_path(invoker.output, root_build_dir),

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/python.gni")
import("//chromium/build/config/python.gni")
# Generate a custom linker version script that can later be used with
# "-Wl,--version-script=<path>" ldflags.
@ -16,7 +16,7 @@ import("//build/config/python.gni")
#
template("generate_linker_version_script") {
action_with_pydeps(target_name) {
script = "//build/android/gyp/generate_linker_version_script.py"
script = "//chromium/build/android/gyp/generate_linker_version_script.py"
outputs = [ invoker.linker_script ]
inputs = []
args = [ "--output=" + rebase_path(invoker.linker_script, root_build_dir) ]

View File

@ -5,16 +5,16 @@
# Do not add any imports to non-//build directories here.
# Some projects (e.g. V8) do not have non-build directories DEPS'ed in.
import("//build/config/android/channel.gni")
import("//build/config/android/config.gni")
import("//build/config/android/internal_rules.gni")
import("//build/config/clang/clang.gni")
import("//build/config/compiler/compiler.gni")
import("//build/config/coverage/coverage.gni")
import("//build/config/python.gni")
import("//build/config/rts.gni")
import("//build/config/zip.gni")
import("//build/toolchain/toolchain.gni")
import("//chromium/build/config/android/channel.gni")
import("//chromium/build/config/android/config.gni")
import("//chromium/build/config/android/internal_rules.gni")
import("//chromium/build/config/clang/clang.gni")
import("//chromium/build/config/compiler/compiler.gni")
import("//chromium/build/config/coverage/coverage.gni")
import("//chromium/build/config/python.gni")
import("//chromium/build/config/rts.gni")
import("//chromium/build/config/zip.gni")
import("//chromium/build/toolchain/toolchain.gni")
assert(is_android)
@ -121,7 +121,7 @@ template("create_native_executable_dist") {
}
if (enable_java_templates) {
import("//build/config/sanitizers/sanitizers.gni")
import("//chromium/build/config/sanitizers/sanitizers.gni")
# JNI target implementation. See generate_jni or generate_jar_jni for usage.
template("generate_jni_impl") {
@ -140,7 +140,7 @@ if (enable_java_templates) {
# cycle, though.
"//base:debugging_buildflags",
"//base:logging_buildflags",
"//build:chromeos_buildflags",
"//chromium/build:chromeos_buildflags",
]
}
@ -431,7 +431,7 @@ if (enable_java_templates) {
"testonly",
"visibility",
])
script = "//build/android/gyp/gcc_preprocess.py"
script = "//chromium/build/android/gyp/gcc_preprocess.py"
outputs = [ "$target_gen_dir/$target_name.srcjar" ]
_include_dirs = [
@ -481,7 +481,7 @@ if (enable_java_templates) {
# The sources aren't compiled so don't check their dependencies.
check_includes = false
script = "//build/android/gyp/java_cpp_enum.py"
script = "//chromium/build/android/gyp/java_cpp_enum.py"
_srcjar_path = "${target_gen_dir}/${target_name}.srcjar"
_rebased_srcjar_path = rebase_path(_srcjar_path, root_build_dir)
@ -545,7 +545,7 @@ if (enable_java_templates) {
# The sources aren't compiled so don't check their dependencies.
check_includes = false
script = "//build/android/gyp/java_cpp_strings.py"
script = "//chromium/build/android/gyp/java_cpp_strings.py"
_srcjar_path = "${target_gen_dir}/${target_name}.srcjar"
_rebased_srcjar_path = rebase_path(_srcjar_path, root_build_dir)
@ -614,7 +614,7 @@ if (enable_java_templates) {
# The sources aren't compiled so don't check their dependencies.
check_includes = false
script = "//build/android/gyp/java_cpp_features.py"
script = "//chromium/build/android/gyp/java_cpp_features.py"
_srcjar_path = "${target_gen_dir}/${target_name}.srcjar"
_rebased_srcjar_path = rebase_path(_srcjar_path, root_build_dir)
@ -653,7 +653,7 @@ if (enable_java_templates) {
if (defined(invoker.includes)) {
inputs += invoker.includes
}
script = "//build/android/gyp/jinja_template.py"
script = "//chromium/build/android/gyp/jinja_template.py"
outputs = [ invoker.output ]
@ -706,7 +706,7 @@ if (enable_java_templates) {
action_with_pydeps(target_name) {
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY + [ "deps" ])
script = "//build/android/gyp/write_native_libraries_java.py"
script = "//chromium/build/android/gyp/write_native_libraries_java.py"
outputs = [ _native_libraries_file ]
args = [
"--output",
@ -771,7 +771,7 @@ if (enable_java_templates) {
#
# action("my_resources__create_zip") {
# _depfile = "$target_gen_dir/${target_name}.d"
# script = "//build/path/to/create_my_resources_zip.py"
# script = "//chromium/build/path/to/create_my_resources_zip.py"
# args = [
# "--depfile", rebase_path(_depfile, root_build_dir),
# "--output-zip", rebase_path(_zip_archive, root_build_dir),
@ -809,7 +809,7 @@ if (enable_java_templates) {
]
inputs = [ invoker.generated_resources_zip ]
outputs = [ _rtxt_out_path ]
script = "//build/android/gyp/create_r_txt.py"
script = "//chromium/build/android/gyp/create_r_txt.py"
args = [
"--resources-zip-path",
rebase_path(invoker.generated_resources_zip, root_build_dir),
@ -847,7 +847,7 @@ if (enable_java_templates) {
action_with_pydeps(_generating_target_name) {
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY + [ "deps" ])
inputs = invoker.resources
script = "//build/android/gyp/jinja_template.py"
script = "//chromium/build/android/gyp/jinja_template.py"
outputs = [ _resources_zip ]
@ -901,7 +901,7 @@ if (enable_java_templates) {
"deps",
"testonly",
])
script = "//build/android/gyp/process_native_prebuilt.py"
script = "//chromium/build/android/gyp/process_native_prebuilt.py"
_lib_path = "${invoker.base_dir}/$android_app_abi/${invoker.lib_name}"
_stripped_output_path = "$root_out_dir/${invoker.lib_name}"
_unstripped_output_path =
@ -1336,7 +1336,7 @@ if (enable_java_templates) {
rename_manifest_package = _package_name
}
if (!defined(android_manifest)) {
android_manifest = "//build/android/AndroidManifest.xml"
android_manifest = "//chromium/build/android/AndroidManifest.xml"
}
arsc_output = _resource_arsc_output
min_sdk_version = default_min_sdk_version
@ -1380,7 +1380,7 @@ if (enable_java_templates) {
":$_jni_srcjar_target",
# This dep is required for any targets that depend on //base:base_java.
"//build/android:build_config_gen",
"//chromium/build/android:build_config_gen",
]
}
@ -1577,7 +1577,7 @@ if (enable_java_templates) {
_rebased_build_config = rebase_path(_build_config, root_build_dir)
action_with_pydeps(_jar_target_name) {
forward_variables_from(invoker, [ "data" ])
script = "//build/android/gyp/zip.py"
script = "//chromium/build/android/gyp/zip.py"
depfile = "$target_gen_dir/$target_name.d"
deps = _deps
@ -1758,7 +1758,7 @@ if (enable_java_templates) {
forward_variables_from(invoker, [ "data" ])
depfile = "$target_gen_dir/$target_name.d"
deps = _deps
script = "//build/android/gyp/dist_aar.py"
script = "//chromium/build/android/gyp/dist_aar.py"
inputs = [ _build_config ]
@ -1918,7 +1918,7 @@ if (enable_java_templates) {
template("generate_build_config_srcjar") {
java_cpp_template(target_name) {
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY)
sources = [ "//build/android/java/templates/BuildConfig.template" ]
sources = [ "//chromium/build/android/java/templates/BuildConfig.template" ]
defines = []
# Set these even when !use_final_fields so that they have correct default
@ -1992,7 +1992,7 @@ if (enable_java_templates) {
defines += [ "USE_FINAL" ]
}
sources = [ "//build/android/java/templates/ProductConfig.template" ]
sources = [ "//chromium/build/android/java/templates/ProductConfig.template" ]
defines += [ "PACKAGE=${invoker.java_package}" ]
_use_chromium_linker =
@ -2823,7 +2823,7 @@ if (enable_java_templates) {
if (!enable_java_asserts && (!defined(testonly) || !testonly) &&
# Injected JaCoCo code causes -checkdiscards to fail.
!use_jacoco_coverage) {
proguard_configs += [ "//build/android/dcheck_is_off.flags" ]
proguard_configs += [ "//chromium/build/android/dcheck_is_off.flags" ]
}
if (!_is_bundle_module) {
proguard_mapping_path = _proguard_mapping_path
@ -3005,7 +3005,7 @@ if (enable_java_templates) {
action_with_pydeps(_validate_dex_target) {
depfile = "$target_gen_dir/$target_name.d"
script =
"//build/android/gyp/validate_static_library_dex_references.py"
"//chromium/build/android/gyp/validate_static_library_dex_references.py"
inputs = [ _build_config ]
_stamp = "$target_gen_dir/$target_name.stamp"
outputs = [ _stamp ]
@ -3110,7 +3110,7 @@ if (enable_java_templates) {
":$_merge_manifest_target",
]
script =
"//build/android/incremental_install/generate_android_manifest.py"
"//chromium/build/android/incremental_install/generate_android_manifest.py"
inputs = [
_android_manifest,
_build_config,
@ -3165,14 +3165,14 @@ if (enable_java_templates) {
if ((!_proguard_enabled || _incremental_apk) &&
enable_jdk_library_desugaring) {
_all_jdk_libs = "//build/android:all_jdk_libs"
_all_jdk_libs = "//chromium/build/android:all_jdk_libs"
deps += [ _all_jdk_libs ]
jdk_libs_dex = get_label_info(_all_jdk_libs, "target_out_dir") +
"/all_jdk_libs.l8.dex"
}
if (_incremental_apk) {
_dex_target = "//build/android/incremental_install:apk_dex"
_dex_target = "//chromium/build/android/incremental_install:apk_dex"
deps += [
":${_incremental_compile_resources_target_name}",
@ -3217,7 +3217,7 @@ if (enable_java_templates) {
if (_incremental_apk) {
_write_installer_json_rule_name = "${_template_name}__incremental_json"
action_with_pydeps(_write_installer_json_rule_name) {
script = "//build/android/incremental_install/write_installer_json.py"
script = "//chromium/build/android/incremental_install/write_installer_json.py"
deps = [ ":$_build_config_target" ] + _all_native_libs_deps
data = [ _incremental_install_json_path ]
@ -3270,7 +3270,7 @@ if (enable_java_templates) {
_apk_operations_target_name = "${target_name}__apk_operations"
action_with_pydeps(_apk_operations_target_name) {
_generated_script = "$root_build_dir/bin/${invoker.target_name}"
script = "//build/android/gyp/create_apk_operations_script.py"
script = "//chromium/build/android/gyp/create_apk_operations_script.py"
outputs = [ _generated_script ]
args = [
"--script-output-path",
@ -3307,13 +3307,13 @@ if (enable_java_templates) {
}
data = []
data_deps = [
"//build/android:apk_operations_py",
"//build/android:stack_tools",
"//chromium/build/android:apk_operations_py",
"//chromium/build/android:stack_tools",
]
if (_proguard_enabled && !_incremental_apk) {
# Required by logcat command.
data_deps += [ "//build/android/stacktrace:java_deobfuscate" ]
data_deps += [ "//chromium/build/android/stacktrace:java_deobfuscate" ]
data += [ "$_final_apk_path.mapping" ]
args += [
"--proguard-mapping-path",
@ -3672,7 +3672,7 @@ if (enable_java_templates) {
template("instrumentation_test_runner") {
if (use_rts) {
action("${invoker.target_name}__rts_filters") {
script = "//build/add_rts_filters.py"
script = "//chromium/build/add_rts_filters.py"
rts_file = "${root_build_dir}/gen/rts/${invoker.target_name}.filter"
args = [ rebase_path(rts_file, root_build_dir) ]
outputs = [ rts_file ]
@ -3946,7 +3946,7 @@ if (enable_java_templates) {
if (!defined(use_default_launcher) || use_default_launcher) {
deps += [
"//base:base_java",
"//build/android/gtest_apk:native_test_instrumentation_test_runner_java",
"//chromium/build/android/gtest_apk:native_test_instrumentation_test_runner_java",
"//testing/android/native_test:native_test_java",
]
}
@ -3981,7 +3981,7 @@ if (enable_java_templates) {
action_with_pydeps(target_name) {
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY)
script = "//build/android/gyp/aidl.py"
script = "//chromium/build/android/gyp/aidl.py"
depfile = "$target_gen_dir/$target_name.d"
sources = invoker.sources
@ -4057,7 +4057,7 @@ if (enable_java_templates) {
# The suffix "__protoc_java.srcjar" is used by SuperSize to identify
# protobuf symbols.
_srcjar_path = "$target_gen_dir/$target_name.srcjar"
script = "//build/protoc_java.py"
script = "//chromium/build/protoc_java.py"
deps = []
if (defined(invoker.deps)) {
@ -4180,7 +4180,7 @@ if (enable_java_templates) {
# Some libraries might not have resources; others might have two jars.
if (!_ignore_info_updates && update_android_aar_prebuilts) {
print("Writing " + rebase_path(_info_path, "//"))
exec_script("//build/android/gyp/aar.py",
exec_script("//chromium/build/android/gyp/aar.py",
[
"list",
rebase_path(invoker.aar_path, root_build_dir),
@ -4214,7 +4214,7 @@ if (enable_java_templates) {
assert(_scanned_files.has_classes_jar || _scanned_files.subjars == [])
action_with_pydeps(_unpack_target_name) {
script = "//build/android/gyp/aar.py" # Unzips the AAR
script = "//chromium/build/android/gyp/aar.py" # Unzips the AAR
args = [
"extract",
rebase_path(invoker.aar_path, root_build_dir),
@ -4851,7 +4851,7 @@ if (enable_java_templates) {
_bundle_target_name = "${_target_name}__bundle"
action_with_pydeps(_bundle_target_name) {
script = "//build/android/gyp/create_app_bundle.py"
script = "//chromium/build/android/gyp/create_app_bundle.py"
inputs = _all_module_zip_paths + _all_module_build_configs
outputs = [ _bundle_path ]
deps = _all_create_module_targets + [ ":$_build_config_target" ]
@ -4909,9 +4909,9 @@ if (enable_java_templates) {
# http://crbug.com/725224. Fix for bots running out of memory.
if (defined(java_cmd_pool_size)) {
pool = "//build/config/android:java_cmd_pool($default_toolchain)"
pool = "//chromium/build/config/android:java_cmd_pool($default_toolchain)"
} else {
pool = "//build/toolchain:link_pool($default_toolchain)"
pool = "//chromium/build/toolchain:link_pool($default_toolchain)"
}
}
@ -4950,7 +4950,7 @@ if (enable_java_templates) {
_bundle_wrapper_script_path = "$_bundle_wrapper_script_dir/$_target_name"
action_with_pydeps("${_target_name}__wrapper_script") {
script = "//build/android/gyp/create_bundle_wrapper_script.py"
script = "//chromium/build/android/gyp/create_bundle_wrapper_script.py"
inputs = [ _base_module_build_config ]
outputs = [ _bundle_wrapper_script_path ]
@ -4962,8 +4962,8 @@ if (enable_java_templates) {
_bundle_path,
]
data_deps = [
"//build/android:apk_operations_py",
"//build/android:stack_tools",
"//chromium/build/android:apk_operations_py",
"//chromium/build/android:stack_tools",
]
deps = [ _base_module_build_config_target ]
@ -5019,7 +5019,7 @@ if (enable_java_templates) {
]
# Required by logcat command.
data_deps += [ "//build/android/stacktrace:java_deobfuscate" ]
data_deps += [ "//chromium/build/android/stacktrace:java_deobfuscate" ]
data += [ _proguard_mapping_path ]
}
}
@ -5072,7 +5072,7 @@ if (enable_java_templates) {
_apks_path = "$root_build_dir/apks/$_bundle_name.apks"
action_with_pydeps("${_target_name}_apks") {
script = "//build/android/gyp/create_app_bundle_apks.py"
script = "//chromium/build/android/gyp/create_app_bundle_apks.py"
inputs = [ _bundle_path ]
outputs = [ _apks_path ]
data = [ _apks_path ]
@ -5103,9 +5103,9 @@ if (enable_java_templates) {
# http://crbug.com/725224. Fix for bots running out of memory.
if (defined(java_cmd_pool_size)) {
pool = "//build/config/android:java_cmd_pool($default_toolchain)"
pool = "//chromium/build/config/android:java_cmd_pool($default_toolchain)"
} else {
pool = "//build/toolchain:link_pool($default_toolchain)"
pool = "//chromium/build/toolchain:link_pool($default_toolchain)"
}
}
}
@ -5127,7 +5127,7 @@ if (enable_java_templates) {
template("create_app_bundle_minimal_apks") {
action_with_pydeps(target_name) {
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY + [ "deps" ])
script = "//build/android/gyp/create_app_bundle_apks.py"
script = "//chromium/build/android/gyp/create_app_bundle_apks.py"
_dir = get_path_info(invoker.bundle_path, "dir")
_name = get_path_info(invoker.bundle_path, "name")
_output_path = "$_dir/$_name.minimal.apks"
@ -5167,7 +5167,7 @@ template("generate_ui_locale_resources") {
"${target_name}.zip"
action_with_pydeps(_generating_target_name) {
script = "//build/android/gyp/create_ui_locale_resources.py"
script = "//chromium/build/android/gyp/create_ui_locale_resources.py"
outputs = [ _output_zip ]
args = [
"--locale-list=${invoker.ui_locales}",

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
template("test_resources") {
jinja_template_resources(target_name) {

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
import("//third_party/protobuf/proto_library.gni")
# The purpose of these targets is test that |deps| satisfies java compilation

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//chromium/build/config/android/rules.gni")
# Tests for 'resource_overlay' parameter in android_resources() template.

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chrome_build.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//chromium/build/config/chrome_build.gni")
import("//chromium/build/config/sanitizers/sanitizers.gni")
# This file declares arguments and configs that control whether dSYM debug
# info is produced and whether build products are stripped.

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/v8_target_cpu.gni")
import("//chromium/build/config/v8_target_cpu.gni")
# These are primarily relevant in target_cpu == "arm" contexts, where
# ARM code is being compiled. But they can also be relevant in the

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromecast_build.gni")
import("//build/config/features.gni")
import("//chromium/build/config/chromecast_build.gni")
import("//chromium/build/config/features.gni")
declare_args() {
# Enable basic paint preview support. Does not work on iOS or Fuchsia. Should

View File

@ -1,7 +1,7 @@
import("//build/config/c++/c++.gni")
import("//build/config/chrome_build.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/dcheck_always_on.gni")
import("//chromium/build/config/c++/c++.gni")
import("//chromium/build/config/chrome_build.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/dcheck_always_on.gni")
import("//buildtools/deps_revisions.gni")
assert(use_custom_libcxx, "should only be used if use_custom_libcxx is set")

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/sanitizers/sanitizers.gni")
declare_args() {
# Use in-tree libc++ (buildtools/third_party/libc++ and
@ -14,7 +14,7 @@ declare_args() {
use_custom_libcxx =
is_fuchsia || is_android || is_mac || is_linux || is_chromeos_lacros ||
(is_ios && !use_xcode_clang) || (is_win && is_clang) ||
(is_chromeos && default_toolchain != "//build/toolchain/cros:target")
(is_chromeos && default_toolchain != "//chromium/build/toolchain/cros:target")
# Use libc++ instead of stdlibc++ when using the host_cpu toolchain, even if
# use_custom_libcxx is false. This is useful for cross-compiles where a custom

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromecast_build.gni")
import("//chromium/build/config/chromecast_build.gni")
assert(is_chromecast)

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
assert(is_chromeos_ash)

View File

@ -2,12 +2,12 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chrome_build.gni")
import("//build/config/chromeos/args.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/gclient_args.gni")
import("//build/config/python.gni")
import("//build/util/generate_wrapper.gni")
import("//chromium/build/config/chrome_build.gni")
import("//chromium/build/config/chromeos/args.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/gclient_args.gni")
import("//chromium/build/config/python.gni")
import("//chromium/build/util/generate_wrapper.gni")
assert((is_chromeos_ash || is_chromeos_lacros) && is_chromeos_device)
@ -45,7 +45,7 @@ if (cros_sdk_version != "") {
foreach(b, _potential_test_boards) {
_cache_path_prefix =
"//build/cros_cache/chrome-sdk/symlinks/${b}+${cros_sdk_version}"
"//chromium/build/cros_cache/chrome-sdk/symlinks/${b}+${cros_sdk_version}"
_cros_is_vm = false
foreach(b1, string_split(cros_boards_with_qemu_images, ":")) {
@ -84,7 +84,7 @@ if (cros_sdk_version != "") {
_all_symlinks += m[1]
}
_all_symlink_targets =
exec_script("//build/get_symlink_targets.py", _all_symlinks, "list lines")
exec_script("//chromium/build/get_symlink_targets.py", _all_symlinks, "list lines")
_index = 0
foreach(m, _symlink_map) {
_symlink_targets = []
@ -223,7 +223,7 @@ template("generate_runner_script") {
}
generate_wrapper(target_name) {
executable = "//build/chromeos/test_runner.py"
executable = "//chromium/build/chromeos/test_runner.py"
use_vpython3 = true
wrapper_script = generated_script
executable_args = []
@ -330,15 +330,15 @@ template("generate_runner_script") {
# We use android test-runner's results libs to construct gtest output
# json.
"//build/android/pylib/__init__.py",
"//build/android/pylib/base/",
"//build/android/pylib/results/",
"//build/chromeos/",
"//build/util/",
"//chromium/build/android/pylib/__init__.py",
"//chromium/build/android/pylib/base/",
"//chromium/build/android/pylib/results/",
"//chromium/build/chromeos/",
"//chromium/build/util/",
# Needed for various SDK components used below.
"//build/cros_cache/chrome-sdk/misc/",
"//build/cros_cache/chrome-sdk/symlinks/",
"//chromium/build/cros_cache/chrome-sdk/misc/",
"//chromium/build/cros_cache/chrome-sdk/symlinks/",
# The LKGM file controls what version of the VM image to download. Add it
# as data here so that changes to it will trigger analyze.
@ -470,7 +470,7 @@ template("lacros_tast_tests") {
"//components/crash/content/tools/generate_breakpad_symbols.py",
# A script needed to launch Lacros in Lacros Tast tests.
"//build/lacros/mojo_connection_lacros_launcher.py",
"//chromium/build/lacros/mojo_connection_lacros_launcher.py",
]
}
}
@ -483,7 +483,7 @@ template("generate_skylab_runner_script") {
])
action(target_name) {
script = "//build/chromeos/gen_skylab_runner.py"
script = "//chromium/build/chromeos/gen_skylab_runner.py"
outputs = [ generated_script ]
args = [
"--test-exe",

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/toolchain/toolchain.gni")
import("//chromium/build/toolchain/toolchain.gni")
default_clang_base_path = "//third_party/llvm-build/Release+Asserts"
@ -12,7 +12,7 @@ declare_args() {
# Chrome OS's.
clang_use_chrome_plugins =
is_clang && !is_nacl && !use_xcode_clang &&
default_toolchain != "//build/toolchain/cros:target"
default_toolchain != "//chromium/build/toolchain/cros:target"
clang_base_path = default_clang_base_path
}

View File

@ -2,49 +2,49 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/buildflag_header.gni")
import("//build/config/android/config.gni")
import("//build/config/c++/c++.gni")
import("//build/config/chrome_build.gni")
import("//build/config/chromecast_build.gni")
import("//build/config/chromeos/args.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/clang/clang.gni")
import("//build/config/compiler/compiler.gni")
import("//build/config/coverage/coverage.gni")
import("//build/config/dcheck_always_on.gni")
#import("//build/config/gclient_args.gni")
import("//build/config/host_byteorder.gni")
import("//build/config/rust.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//build/config/ui.gni")
import("//build/toolchain/cc_wrapper.gni")
import("//build/toolchain/goma.gni")
import("//build/toolchain/rbe.gni")
import("//build/toolchain/toolchain.gni")
import("//chromium/build/buildflag_header.gni")
import("//chromium/build/config/android/config.gni")
import("//chromium/build/config/c++/c++.gni")
import("//chromium/build/config/chrome_build.gni")
import("//chromium/build/config/chromecast_build.gni")
import("//chromium/build/config/chromeos/args.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/clang/clang.gni")
import("//chromium/build/config/compiler/compiler.gni")
import("//chromium/build/config/coverage/coverage.gni")
import("//chromium/build/config/dcheck_always_on.gni")
#import("//chromium/build/config/gclient_args.gni")
import("//chromium/build/config/host_byteorder.gni")
import("//chromium/build/config/rust.gni")
import("//chromium/build/config/sanitizers/sanitizers.gni")
import("//chromium/build/config/ui.gni")
import("//chromium/build/toolchain/cc_wrapper.gni")
import("//chromium/build/toolchain/goma.gni")
import("//chromium/build/toolchain/rbe.gni")
import("//chromium/build/toolchain/toolchain.gni")
import("//build_overrides/build.gni")
if (target_cpu == "arm" || target_cpu == "arm64") {
import("//build/config/arm.gni")
import("//chromium/build/config/arm.gni")
}
if (target_cpu == "mipsel" || target_cpu == "mips64el" ||
target_cpu == "mips" || target_cpu == "mips64") {
import("//build/config/mips.gni")
import("//chromium/build/config/mips.gni")
}
if (target_cpu == "x64") {
import("//build/config/x64.gni")
import("//chromium/build/config/x64.gni")
}
if (is_mac) {
import("//build/config/apple/symbols.gni")
import("//chromium/build/config/apple/symbols.gni")
}
if (is_ios) {
import("//build/config/ios/ios_sdk.gni")
import("//chromium/build/config/ios/ios_sdk.gni")
}
if (is_nacl) {
# To keep NaCl variables out of builds that don't include NaCl, all
# variables defined in nacl/config.gni referenced here should be protected by
# is_nacl conditions.
import("//build/config/nacl/config.gni")
import("//chromium/build/config/nacl/config.gni")
}
lld_path = ""
@ -270,24 +270,24 @@ config("compiler") {
# categories here, add it to the associated file to keep this shared config
# smaller.
if (is_win) {
configs += [ "//build/config/win:compiler" ]
configs += [ "//chromium/build/config/win:compiler" ]
} else if (is_android) {
configs += [ "//build/config/android:compiler" ]
configs += [ "//chromium/build/config/android:compiler" ]
} else if (is_linux || is_chromeos) {
configs += [ "//build/config/linux:compiler" ]
configs += [ "//chromium/build/config/linux:compiler" ]
if (is_chromeos_ash) {
configs += [ "//build/config/chromeos:compiler" ]
configs += [ "//chromium/build/config/chromeos:compiler" ]
}
} else if (is_nacl) {
configs += [ "//build/config/nacl:compiler" ]
configs += [ "//chromium/build/config/nacl:compiler" ]
} else if (is_mac) {
configs += [ "//build/config/mac:compiler" ]
configs += [ "//chromium/build/config/mac:compiler" ]
} else if (is_ios) {
configs += [ "//build/config/ios:compiler" ]
configs += [ "//chromium/build/config/ios:compiler" ]
} else if (is_fuchsia) {
configs += [ "//build/config/fuchsia:compiler" ]
configs += [ "//chromium/build/config/fuchsia:compiler" ]
} else if (current_os == "aix") {
configs += [ "//build/config/aix:compiler" ]
configs += [ "//chromium/build/config/aix:compiler" ]
}
configs += [
@ -844,8 +844,8 @@ config("thinlto_optimize_default") {
# Use this to enable optimization in the ThinLTO link step for select targets
# when thin_lto_enable_optimizations is set by doing:
#
# configs -= [ "//build/config/compiler:thinlto_optimize_default" ]
# configs += [ "//build/config/compiler:thinlto_optimize_max" ]
# configs -= [ "//chromium/build/config/compiler:thinlto_optimize_default" ]
# configs += [ "//chromium/build/config/compiler:thinlto_optimize_max" ]
#
# Since it makes linking significantly slower and more resource intensive, only
# use it on important targets such as the main browser executable or dll.
@ -1198,7 +1198,7 @@ config("compiler_codegen") {
ldflags = []
if (is_nacl) {
configs += [ "//build/config/nacl:compiler_codegen" ]
configs += [ "//chromium/build/config/nacl:compiler_codegen" ]
}
if (target_cpu == "arm64" && is_android) {
@ -1367,28 +1367,28 @@ config("runtime_library") {
# libandroid_support in the -isystem include order. Otherwise, there will be
# build errors related to symbols declared in math.h.
if (use_custom_libcxx) {
configs += [ "//build/config/c++:runtime_library" ]
configs += [ "//chromium/build/config/c++:runtime_library" ]
}
# TODO(crbug.com/830987): Come up with a better name for is POSIX + Fuchsia
# configuration.
if (is_posix || is_fuchsia) {
configs += [ "//build/config/posix:runtime_library" ]
configs += [ "//chromium/build/config/posix:runtime_library" ]
}
# System-specific flags. If your compiler flags apply to one of the
# categories here, add it to the associated file to keep this shared config
# smaller.
if (is_win) {
configs += [ "//build/config/win:runtime_library" ]
configs += [ "//chromium/build/config/win:runtime_library" ]
} else if (is_linux || is_chromeos) {
configs += [ "//build/config/linux:runtime_library" ]
configs += [ "//chromium/build/config/linux:runtime_library" ]
} else if (is_ios) {
configs += [ "//build/config/ios:runtime_library" ]
configs += [ "//chromium/build/config/ios:runtime_library" ]
} else if (is_mac) {
configs += [ "//build/config/mac:runtime_library" ]
configs += [ "//chromium/build/config/mac:runtime_library" ]
} else if (is_android) {
configs += [ "//build/config/android:runtime_library" ]
configs += [ "//chromium/build/config/android:runtime_library" ]
}
if (is_component_build) {
@ -1991,8 +1991,8 @@ config("no_incompatible_pointer_warnings") {
# You can override the optimization level on a per-target basis by removing the
# default config and then adding the named one you want:
#
# configs -= [ "//build/config/compiler:default_optimization" ]
# configs += [ "//build/config/compiler:optimize_max" ]
# configs -= [ "//chromium/build/config/compiler:default_optimization" ]
# configs += [ "//chromium/build/config/compiler:optimize_max" ]
# Shared settings for both "optimize" and "optimize_max" configs.
# IMPORTANT: On Windows "/O1" and "/O2" must go before the common flags.
@ -2186,12 +2186,12 @@ config("optimize_max") {
# The NaCl IRT is a special case and always wants its own config.
# Various components do:
# if (!is_debug) {
# configs -= [ "//build/config/compiler:default_optimization" ]
# configs += [ "//build/config/compiler:optimize_max" ]
# configs -= [ "//chromium/build/config/compiler:default_optimization" ]
# configs += [ "//chromium/build/config/compiler:optimize_max" ]
# }
# So this config has to have the selection logic just like
# "default_optimization", below.
configs = [ "//build/config/nacl:irt_optimize" ]
configs = [ "//chromium/build/config/nacl:irt_optimize" ]
} else {
ldflags = common_optimize_on_ldflags
if (is_win) {
@ -2219,12 +2219,12 @@ config("optimize_speed") {
# The NaCl IRT is a special case and always wants its own config.
# Various components do:
# if (!is_debug) {
# configs -= [ "//build/config/compiler:default_optimization" ]
# configs += [ "//build/config/compiler:optimize_max" ]
# configs -= [ "//chromium/build/config/compiler:default_optimization" ]
# configs += [ "//chromium/build/config/compiler:optimize_max" ]
# }
# So this config has to have the selection logic just like
# "default_optimization", below.
configs = [ "//build/config/nacl:irt_optimize" ]
configs = [ "//chromium/build/config/nacl:irt_optimize" ]
} else {
ldflags = common_optimize_on_ldflags
if (is_win) {
@ -2253,7 +2253,7 @@ config("default_optimization") {
if (is_nacl && is_nacl_irt) {
# The NaCl IRT is a special case and always wants its own config.
# It gets optimized the same way regardless of the type of build.
configs = [ "//build/config/nacl:irt_optimize" ]
configs = [ "//chromium/build/config/nacl:irt_optimize" ]
} else if (is_debug) {
configs = [ ":no_optimize" ]
} else if (optimize_for_fuzzing) {
@ -2336,8 +2336,8 @@ config("afdo") {
# You can override the symbol level on a per-target basis by removing the
# default config and then adding the named one you want:
#
# configs -= [ "//build/config/compiler:default_symbols" ]
# configs += [ "//build/config/compiler:symbols" ]
# configs -= [ "//chromium/build/config/compiler:default_symbols" ]
# configs += [ "//chromium/build/config/compiler:symbols" ]
# A helper config that all configs passing /DEBUG to the linker should
# include as sub-config.

View File

@ -2,30 +2,30 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chrome_build.gni")
import("//build/config/chromecast_build.gni")
import("//build/config/chromeos/args.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/compiler/pgo/pgo.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//build/toolchain/cc_wrapper.gni")
import("//build/toolchain/goma.gni")
import("//build/toolchain/toolchain.gni")
import("//chromium/build/config/chrome_build.gni")
import("//chromium/build/config/chromecast_build.gni")
import("//chromium/build/config/chromeos/args.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/compiler/pgo/pgo.gni")
import("//chromium/build/config/sanitizers/sanitizers.gni")
import("//chromium/build/toolchain/cc_wrapper.gni")
import("//chromium/build/toolchain/goma.gni")
import("//chromium/build/toolchain/toolchain.gni")
import("//build_overrides/build.gni")
if (is_android) {
import("//build/config/android/abi.gni")
import("//chromium/build/config/android/abi.gni")
}
if (target_cpu == "arm" || target_cpu == "arm64") {
import("//build/config/arm.gni")
import("//chromium/build/config/arm.gni")
}
if (is_apple) {
import("//build/config/apple/symbols.gni")
import("//chromium/build/config/apple/symbols.gni")
}
if (is_ios) {
import("//build/config/ios/config.gni")
import("//chromium/build/config/ios/config.gni")
}
declare_args() {

View File

@ -2,11 +2,11 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/clang/clang.gni")
import("//build/config/compiler/compiler.gni")
import("//build/config/compiler/pgo/pgo.gni")
import("//build/toolchain/toolchain.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/clang/clang.gni")
import("//chromium/build/config/compiler/compiler.gni")
import("//chromium/build/config/compiler/pgo/pgo.gni")
import("//chromium/build/toolchain/toolchain.gni")
# Configuration that enables PGO instrumentation.
config("pgo_instrumentation_flags") {

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromecast_build.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/chromecast_build.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
declare_args() {
# Specify the current PGO phase.

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/coverage/coverage.gni")
import("//chromium/build/config/coverage/coverage.gni")
config("default_coverage") {
if (use_clang_coverage) {

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/toolchain/toolchain.gni")
import("//chromium/build/toolchain/toolchain.gni")
if (is_fuchsia) {
import("//third_party/fuchsia-sdk/sdk/build/component.gni")
}

View File

@ -5,7 +5,7 @@
# TODO(crbug.com/1233050): Until the bug is resolved we need to include
# gclient_args for the definition of build_with_chromium and build_overrides
# for client overrides of that flag. The latter should go away.
import("//build/config/gclient_args.gni")
import("//chromium/build/config/gclient_args.gni")
import("//build_overrides/build.gni")
declare_args() {
# Enables DCHECKs to be built-in, but to default to being non-fatal/log-only.

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chrome_build.gni")
import("//chromium/build/config/chrome_build.gni")
import("//build_overrides/build.gni")
declare_args() {

View File

@ -14,8 +14,8 @@
# There is more advice on where to put build flags in the "Build flag" section
# of //build/config/BUILDCONFIG.gn.
import("//build/config/chrome_build.gni")
import("//build/config/chromecast_build.gni")
import("//chromium/build/config/chrome_build.gni")
import("//chromium/build/config/chromecast_build.gni")
declare_args() {
# Enables proprietary codecs and demuxers; e.g. H264, AAC, MP3, and MP4.

View File

@ -2,12 +2,12 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/features.gni")
import("//build/config/freetype/freetype.gni")
import("//chromium/build/config/features.gni")
import("//chromium/build/config/freetype/freetype.gni")
group("freetype") {
if (use_system_freetype) {
public_configs = [ "//build/linux:freetype_from_pkgconfig" ]
public_configs = [ "//chromium/build/linux:freetype_from_pkgconfig" ]
} else {
public_deps = [ "//third_party:freetype_harfbuzz" ]
}

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromecast_build.gni")
import("//chromium/build/config/chromecast_build.gni")
assert(is_fuchsia)
assert(!is_posix)

View File

@ -4,12 +4,12 @@
assert(is_fuchsia)
import("//build/config/chromecast_build.gni")
import("//build/config/fuchsia/config.gni")
import("//build/config/fuchsia/package.gni")
import("//build/config/gclient_args.gni")
import("//build/config/sysroot.gni")
import("//build/util/generate_wrapper.gni")
import("//chromium/build/config/chromecast_build.gni")
import("//chromium/build/config/fuchsia/config.gni")
import("//chromium/build/config/fuchsia/package.gni")
import("//chromium/build/config/gclient_args.gni")
import("//chromium/build/config/sysroot.gni")
import("//chromium/build/util/generate_wrapper.gni")
declare_args() {
# Sets the Fuchsia Amber repository which will be used by default by the
@ -78,7 +78,7 @@ template("fuchsia_package_runner") {
if (defined(runner_script)) {
_runner_script = runner_script
} else {
_runner_script = "//build/fuchsia/test_runner.py"
_runner_script = "//chromium/build/fuchsia/test_runner.py"
}
if (_is_test_exe) {
@ -122,8 +122,8 @@ template("fuchsia_package_runner") {
# Declares the files that are needed for test execution on the
# swarming test client.
data += [
"//build/fuchsia/",
"//build/util/lib/",
"//chromium/build/fuchsia/",
"//chromium/build/util/lib/",
"//third_party/fuchsia-sdk/sdk/.build-id/",
"//third_party/fuchsia-sdk/sdk/bin/fpave.sh",
"//third_party/fuchsia-sdk/sdk/bin/fuchsia-common.sh",
@ -139,7 +139,7 @@ template("fuchsia_package_runner") {
if (test_host_cpu == "x64") {
data_deps +=
[ "//build/config/clang:llvm-symbolizer_data($host_toolchain)" ]
[ "//chromium/build/config/clang:llvm-symbolizer_data($host_toolchain)" ]
}
data += [
@ -234,7 +234,7 @@ template("fuchsia_package_runner") {
# Produces a script which installs a package and its dependencies into the
# package repository of a pre-existing Fuchsia build directory.
generate_wrapper(_generate_installer_target) {
executable = rebase_path("//build/fuchsia/deploy_to_pkg_repo.py")
executable = rebase_path("//chromium/build/fuchsia/deploy_to_pkg_repo.py")
wrapper_script = generated_install_pkg_script_path
data_deps = [ invoker.package ]

View File

@ -55,7 +55,7 @@ template("cr_fuchsia_package") {
"testonly",
])
script = "//build/config/fuchsia/build_cmx_from_fragment.py"
script = "//chromium/build/config/fuchsia/build_cmx_from_fragment.py"
inputs = [ invoker.manifest ]
outputs = [ _component_manifest ]

View File

@ -2,4 +2,4 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/fuchsia/generate_runner_scripts.gni")
import("//chromium/build/config/fuchsia/generate_runner_scripts.gni")

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/util/generate_wrapper.gni")
import("//chromium/build/util/generate_wrapper.gni")
template("compute_fuchsia_package_sizes") {
generate_wrapper(target_name) {
@ -12,7 +12,7 @@ template("compute_fuchsia_package_sizes") {
"data_deps",
])
testonly = true
executable = "//build/fuchsia/binary_sizes.py"
executable = "//chromium/build/fuchsia/binary_sizes.py"
wrapper_script = "$root_out_dir/bin/run_${target_name}"
assert(target_cpu == "arm64" || target_cpu == "x64",
@ -29,7 +29,7 @@ template("compute_fuchsia_package_sizes") {
# Declares the files that are needed for test execution on the
# swarming test client.
data += [
"//build/fuchsia/",
"//chromium/build/fuchsia/",
"//fuchsia/release/size_tests/",
"//third_party/fuchsia-sdk/sdk/arch/",
"//third_party/fuchsia-sdk/sdk/tools/${target_cpu}/",

View File

@ -19,7 +19,7 @@ template("symbol_archive") {
_ids_txt = invoker.ids_txt
_build_ids = invoker.archive_name
script = "//build/config/fuchsia/build_symbol_archive.py"
script = "//chromium/build/config/fuchsia/build_symbol_archive.py"
inputs = [ _ids_txt ]

View File

@ -2,11 +2,11 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/c++/c++.gni")
import("//build/config/compiler/compiler.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//build/config/sysroot.gni")
import("//build/toolchain/toolchain.gni")
import("//chromium/build/config/c++/c++.gni")
import("//chromium/build/config/compiler/compiler.gni")
import("//chromium/build/config/sanitizers/sanitizers.gni")
import("//chromium/build/config/sysroot.gni")
import("//chromium/build/toolchain/toolchain.gni")
declare_args() {
# When non empty, overrides the target rpath value. This allows a user to
@ -60,7 +60,7 @@ config("symbol_visibility_default") {
# this is OK. For these cases use something like this:
#
# if ((is_linux || is_chromeos) && !is_component_build) {
# configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
# configs += [ "//chromium/build/config/gcc:rpath_for_built_shared_libraries" ]
# }
config("rpath_for_built_shared_libraries") {
if (!is_android && current_os != "aix") {

View File

@ -17,7 +17,7 @@ if (host_cpu == "ppc64") {
} else {
# Only use the script when absolutely necessary
host_byteorder =
exec_script("//build/config/get_host_byteorder.py", [], "trim string")
exec_script("//chromium/build/config/get_host_byteorder.py", [], "trim string")
}
} else if (host_cpu == "ppc" || host_cpu == "s390" || host_cpu == "s390x" ||
host_cpu == "mips" || host_cpu == "mips64") {

View File

@ -2,9 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/ios/ios_sdk.gni")
import("//build/toolchain/goma.gni")
import("//build/toolchain/toolchain.gni")
import("//chromium/build/config/ios/ios_sdk.gni")
import("//chromium/build/toolchain/goma.gni")
import("//chromium/build/toolchain/toolchain.gni")
import("//build_overrides/build.gni")
declare_args() {
@ -232,7 +232,7 @@ _xctrunner_path =
if (use_system_xcode && use_goma) {
action("copy_xctrunner_app") {
testonly = true
script = "//build/noop.py"
script = "//chromium/build/noop.py"
outputs = [
"$_xctrunner_path/Info.plist",
"$_xctrunner_path/PkgInfo",
@ -246,7 +246,7 @@ if (use_system_xcode && use_goma) {
# yet supported by Apple).
action("xctest_runner_without_arm64e") {
testonly = true
script = "//build/config/ios/strip_arm64e.py"
script = "//chromium/build/config/ios/strip_arm64e.py"
sources = [ "$_xctrunner_path/XCTRunner" ]
outputs = [ "$target_out_dir/XCTRunner" ]
args = [

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/ios/ios_sdk.gni")
import("//chromium/build/config/ios/ios_sdk.gni")
# This template declares a bundle_data target that references an asset
# catalog so that it is compiled to the asset catalog of the generated
@ -85,7 +85,7 @@ template("asset_catalog") {
"testonly",
])
script = "//build/config/ios/hardlink.py"
script = "//chromium/build/config/ios/hardlink.py"
visibility = [ ":$_data_target_name" ]
sources = _sources

View File

@ -2,11 +2,11 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/ios/config.gni")
import("//build/config/ios/ios_sdk_overrides.gni")
import("//build/toolchain/goma.gni")
import("//build/toolchain/goma.gni")
import("//build/toolchain/toolchain.gni")
import("//chromium/build/config/ios/config.gni")
import("//chromium/build/config/ios/ios_sdk_overrides.gni")
import("//chromium/build/toolchain/goma.gni")
import("//chromium/build/toolchain/goma.gni")
import("//chromium/build/toolchain/toolchain.gni")
import("//build_overrides/build.gni")
assert(current_os == "ios")
@ -145,7 +145,7 @@ if (ios_sdk_path == "") {
"sdk/xcode_links",
]
}
script_name = "//build/config/apple/sdk_info.py"
script_name = "//chromium/build/config/apple/sdk_info.py"
_ios_sdk_result = exec_script(script_name, ios_sdk_info_args, "scope")
ios_bin_path =
rebase_path("${_ios_sdk_result.toolchains_path}/usr/bin/", root_build_dir)

View File

@ -2,9 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/coverage/coverage.gni")
import("//build/config/ios/ios_sdk.gni")
import("//build/util/generate_wrapper.gni")
import("//chromium/build/config/coverage/coverage.gni")
import("//chromium/build/config/ios/ios_sdk.gni")
import("//chromium/build/util/generate_wrapper.gni")
# Invokes generate_wrapper to create an executable script wrapping iOS'
# run.py with baked in arguments. Only takes effect when test entry in

View File

@ -2,11 +2,11 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/apple/apple_info_plist.gni")
import("//build/config/apple/symbols.gni")
import("//build/config/ios/ios_sdk.gni")
import("//build/toolchain/goma.gni")
import("//build/toolchain/toolchain.gni")
import("//chromium/build/apple/apple_info_plist.gni")
import("//chromium/build/config/apple/symbols.gni")
import("//chromium/build/config/ios/ios_sdk.gni")
import("//chromium/build/toolchain/goma.gni")
import("//chromium/build/toolchain/toolchain.gni")
import("//build_overrides/build.gni")
declare_args() {
@ -77,10 +77,10 @@ template("lipo_binary") {
"output_name",
])
script = "//build/toolchain/apple/linker_driver.py"
script = "//chromium/build/toolchain/apple/linker_driver.py"
# http://crbug.com/762840. Fix for bots running out of memory.
pool = "//build/toolchain:link_pool($default_toolchain)"
pool = "//chromium/build/toolchain:link_pool($default_toolchain)"
outputs = [ "$target_out_dir/$_output_name" ]
@ -283,7 +283,7 @@ template("create_signed_bundle") {
if (_enable_entitlements) {
if (!defined(invoker.entitlements_target)) {
_entitlements_path = "//build/config/ios/entitlements.plist"
_entitlements_path = "//chromium/build/config/ios/entitlements.plist"
if (defined(invoker.entitlements_path)) {
_entitlements_path = invoker.entitlements_path
}
@ -355,7 +355,7 @@ template("create_signed_bundle") {
if (_xcode_product_bundle_id != "") {
_ios_provisioning_profile_info =
exec_script("//build/config/ios/codesign.py",
exec_script("//chromium/build/config/ios/codesign.py",
[
"find-provisioning-profile",
"-b=" + _xcode_product_bundle_id,
@ -393,7 +393,7 @@ template("create_signed_bundle") {
deps = []
}
code_signing_script = "//build/config/ios/codesign.py"
code_signing_script = "//chromium/build/config/ios/codesign.py"
code_signing_sources = [ _bundle_binary_path ]
if (_enable_entitlements) {
if (defined(invoker.entitlements_target)) {
@ -473,7 +473,7 @@ template("create_signed_bundle") {
invoker.partial_info_plist,
]
_plist_compiler_path = "//build/apple/plist_util.py"
_plist_compiler_path = "//chromium/build/apple/plist_util.py"
code_signing_sources += _partial_info_plists
code_signing_sources += [ _plist_compiler_path ]
@ -546,7 +546,7 @@ template("ios_info_plist") {
"XCODE_VERSION=$xcode_version",
]
plist_templates = [
"//build/config/ios/BuildInfo.plist",
"//chromium/build/config/ios/BuildInfo.plist",
_info_plist,
]
if (defined(invoker.info_plist_target)) {
@ -836,7 +836,7 @@ template("ios_app_bundle") {
if (!is_fat_secondary_toolchain) {
if (!defined(invoker.entitlements_target)) {
_entitlements_path = "//build/config/ios/entitlements.plist"
_entitlements_path = "//chromium/build/config/ios/entitlements.plist"
if (defined(invoker.entitlements_path)) {
_entitlements_path = invoker.entitlements_path
}
@ -854,7 +854,7 @@ template("ios_app_bundle") {
_gen_info_plist_outputs = get_target_outputs(":$_generate_info_plist")
_info_plist_path = _gen_info_plist_outputs[0]
script = "//build/config/ios/codesign.py"
script = "//chromium/build/config/ios/codesign.py"
deps = [ ":$_generate_info_plist" ]
if (defined(invoker.entitlements_target)) {
deps += [ invoker.entitlements_target ]
@ -878,8 +878,8 @@ template("ios_app_bundle") {
_create_pkg_info = target_name + "_pkg_info"
action(_create_pkg_info) {
forward_variables_from(invoker, [ "testonly" ])
script = "//build/apple/write_pkg_info.py"
inputs = [ "//build/apple/plist_util.py" ]
script = "//chromium/build/apple/write_pkg_info.py"
inputs = [ "//chromium/build/apple/plist_util.py" ]
sources = get_target_outputs(":$_generate_info_plist")
outputs = [
# Cannot name the output PkgInfo as the name will not be unique if
@ -961,7 +961,7 @@ template("ios_app_bundle") {
action(_target_name) {
forward_variables_from(invoker, [ "testonly" ])
script = "//build/config/ios/hardlink.py"
script = "//chromium/build/config/ios/hardlink.py"
public_deps = []
foreach(_variant, _variants) {
public_deps += [ ":${_variant.target_name}" ]
@ -1026,7 +1026,7 @@ template("ios_appex_bundle") {
}
set_defaults("ios_appex_bundle") {
configs = [ "//build/config/ios:ios_extension_executable_flags" ]
configs = [ "//chromium/build/config/ios:ios_extension_executable_flags" ]
}
# Template to compile .xib and .storyboard files.
@ -1057,7 +1057,7 @@ template("compile_ib_files") {
_output_extension = invoker.output_extension
script = "//build/config/ios/compile_ib_files.py"
script = "//chromium/build/config/ios/compile_ib_files.py"
sources = invoker.sources
outputs = [
"$target_gen_dir/$target_name/{{source_name_part}}.$_output_extension",
@ -1461,7 +1461,7 @@ template("ios_framework_bundle") {
"public_deps",
"testonly",
])
script = "//build/config/ios/write_framework_hmap.py"
script = "//chromium/build/config/ios/write_framework_hmap.py"
outputs = [ _header_map_filename ]
# The header map generation only wants the list of headers, not all of
@ -1484,7 +1484,7 @@ template("ios_framework_bundle") {
_create_module_map_target = _target_name + "_module_map"
action(_create_module_map_target) {
visibility = [ ":$_framework_headers_target" ]
script = "//build/config/ios/write_framework_modulemap.py"
script = "//chromium/build/config/ios/write_framework_modulemap.py"
outputs = [ "$_framework_contents_dir/Modules/module.modulemap" ]
args = [
_output_name,
@ -1732,7 +1732,7 @@ template("ios_xctest_bundle") {
}
deps = [ ":$_arch_loadable_module_source" ]
configs += [ "//build/config/ios:xctest_config" ]
configs += [ "//chromium/build/config/ios:xctest_config" ]
output_dir = "$target_out_dir/$target_cpu"
output_name = _output_name
@ -1760,7 +1760,7 @@ template("ios_xctest_bundle") {
testonly = true
visibility = [ ":$_info_plist_bundle" ]
info_plist = "//build/config/ios/Module-Info.plist"
info_plist = "//chromium/build/config/ios/Module-Info.plist"
executable_name = _output_name
if (defined(invoker.xctest_bundle_principal_class)) {
@ -1821,7 +1821,7 @@ template("ios_xctest_bundle") {
"$ios_app_bundle_id_prefix.gtest.$_output_name"
_ios_provisioning_profile_info =
exec_script("//build/config/ios/codesign.py",
exec_script("//chromium/build/config/ios/codesign.py",
[
"find-provisioning-profile",
"-b=" + _xcode_product_bundle_id,
@ -1907,9 +1907,9 @@ template("ios_xctest_test") {
_xctest_module_target_name = _xctest_target + "shell_source"
_xctest_module_target = ":$_xctest_module_target_name"
source_set(_xctest_module_target_name) {
sources = [ "//build/config/ios/xctest_shell.mm" ]
sources = [ "//chromium/build/config/ios/xctest_shell.mm" ]
configs += [ "//build/config/ios:xctest_config" ]
configs += [ "//chromium/build/config/ios:xctest_config" ]
}
}
@ -1934,10 +1934,10 @@ template("ios_xctest_test") {
testonly = true
output_name = _host_output
configs += [ "//build/config/ios:xctest_config" ]
configs += [ "//chromium/build/config/ios:xctest_config" ]
if (!defined(invoker.info_plist) && !defined(invoker.info_plist_target)) {
info_plist = "//build/config/ios/Host-Info.plist"
info_plist = "//chromium/build/config/ios/Host-Info.plist"
}
# Xcode needs the following frameworks installed in the application (and
@ -2010,7 +2010,7 @@ template("ios_xcuitest_test_runner_bundle") {
action(_info_plist_merge_plist) {
testonly = true
script = "//build/apple/plist_util.py"
script = "//chromium/build/apple/plist_util.py"
sources = [
"$_xctrunner_path/Info.plist",
@ -2018,7 +2018,7 @@ template("ios_xcuitest_test_runner_bundle") {
# NOTE: The XCTRunnerAddition+Info.plist must come after the Info.plist
# because it overrides the values under "CFBundleIdentifier" and
# "CFBundleName".
"//build/config/ios/resources/XCTRunnerAddition+Info.plist",
"//chromium/build/config/ios/resources/XCTRunnerAddition+Info.plist",
]
_output_name = "$target_gen_dir/${_target_name}_merged.plist"
@ -2031,7 +2031,7 @@ template("ios_xcuitest_test_runner_bundle") {
] + rebase_path(sources, root_build_dir)
if (use_system_xcode && use_goma) {
deps = [ "//build/config/ios:copy_xctrunner_app" ]
deps = [ "//chromium/build/config/ios:copy_xctrunner_app" ]
}
}
@ -2063,7 +2063,7 @@ template("ios_xcuitest_test_runner_bundle") {
outputs = [ "{{bundle_contents_dir}}/PkgInfo" ]
if (use_system_xcode && use_goma) {
public_deps = [ "//build/config/ios:copy_xctrunner_app" ]
public_deps = [ "//chromium/build/config/ios:copy_xctrunner_app" ]
}
}
@ -2071,7 +2071,7 @@ template("ios_xcuitest_test_runner_bundle") {
create_signed_bundle(_target_name) {
testonly = true
bundle_binary_target = "//build/config/ios:xctest_runner_without_arm64e"
bundle_binary_target = "//chromium/build/config/ios:xctest_runner_without_arm64e"
bundle_binary_output = "XCTRunner"
bundle_extension = ".app"
product_type = _ios_xcode_app_bundle_id

View File

@ -2,10 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/c++/c++.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/linux/pkg_config.gni")
import("//build/config/ui.gni")
import("//chromium/build/config/c++/c++.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/linux/pkg_config.gni")
import("//chromium/build/config/ui.gni")
group("linux") {
visibility = [ "//:optimize_gn_gen" ]
@ -16,7 +16,7 @@ group("linux") {
# Linux-only. This is not applied to Android, but is applied to ChromeOS.
config("compiler") {
if (target_cpu == "arm64") {
import("//build/config/arm.gni")
import("//chromium/build/config/arm.gni")
cflags = []
asmflags = []
if (arm_control_flow_integrity == "standard") {
@ -40,7 +40,7 @@ config("runtime_library") {
# Mozilla disable libatomic on linux builds
if (false) {
if ((!(is_chromeos_ash || is_chromeos_lacros) ||
default_toolchain != "//build/toolchain/cros:target") &&
default_toolchain != "//chromium/build/toolchain/cros:target") &&
(!use_custom_libcxx || target_cpu == "mipsel")) {
libs = [ "atomic" ]
}

View File

@ -2,10 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/features.gni")
import("//build/config/linux/pkg_config.gni")
import("//build/config/ui.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/features.gni")
import("//chromium/build/config/linux/pkg_config.gni")
import("//chromium/build/config/ui.gni")
# CrOS doesn't install GTK or any gnome packages.
assert(!is_chromeos)

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/linux/pkg_config.gni")
import("//build/config/ui.gni")
import("//chromium/build/config/linux/pkg_config.gni")
import("//chromium/build/config/ui.gni")
# These packages should _only_ be expected when building for a target.
assert(current_toolchain == default_toolchain)

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/features.gni")
import("//build/config/linux/pkg_config.gni")
import("//chromium/build/config/features.gni")
import("//chromium/build/config/linux/pkg_config.gni")
assert(use_dbus)

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/linux/pkg_config.gni")
import("//chromium/build/config/linux/pkg_config.gni")
assert(is_linux, "This file should only be referenced on Linux")

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/linux/gtk/gtk.gni")
import("//build/config/linux/pkg_config.gni")
import("//chromium/build/config/linux/gtk/gtk.gni")
import("//chromium/build/config/linux/pkg_config.gni")
assert(is_linux, "This file should only be referenced on Linux")

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/ui.gni")
import("//chromium/build/config/ui.gni")
declare_args() {
# Whether or not we should use libgtk.

View File

@ -1,9 +1,9 @@
# Copyright 2018 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.
import("//build/config/chromecast_build.gni")
import("//build/config/chromeos/args.gni")
import("//build/config/linux/pkg_config.gni")
import("//chromium/build/config/chromecast_build.gni")
import("//chromium/build/config/chromeos/args.gni")
import("//chromium/build/config/linux/pkg_config.gni")
assert(is_linux || is_chromeos)

View File

@ -2,9 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/linux/pkg_config.gni")
import("//chromium/build/config/linux/pkg_config.gni")
if (default_toolchain == "//build/toolchain/cros:target") {
if (default_toolchain == "//chromium/build/toolchain/cros:target") {
pkg_config("libffi") {
packages = [ "libffi" ]
}

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/linux/pkg_config.gni")
import("//chromium/build/config/linux/pkg_config.gni")
assert(is_linux || is_chromeos, "This file should only be referenced on Linux")

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/linux/pkg_config.gni")
import("//chromium/build/config/linux/pkg_config.gni")
if (is_linux || is_chromeos) {
# This is a dependency on NSS with no libssl. On Linux we use a built-in SSL

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/linux/pangocairo/pangocairo.gni")
import("//build/config/linux/pkg_config.gni")
import("//chromium/build/config/linux/pangocairo/pangocairo.gni")
import("//chromium/build/config/linux/pkg_config.gni")
if (use_pangocairo) {
pkg_config("pangocairo") {

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/ui.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/ui.gni")
declare_args() {
use_pangocairo = is_linux && !is_chromecast

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/sysroot.gni")
import("//chromium/build/config/sysroot.gni")
# Defines a config specifying the result of running pkg-config for the given
# packages. Put the package names you want to query in the "packages" variable
@ -47,7 +47,7 @@ declare_args() {
system_libdir = "lib"
}
pkg_config_script = "//build/config/linux/pkg-config.py"
pkg_config_script = "//chromium/build/config/linux/pkg-config.py"
# Define the args we pass to the pkg-config script for other build files that
# need to invoke it manually.

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
# This file creates the |locales| which is the set of current
# locales based on the current platform. Locales in this list are formated

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/dcheck_always_on.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
import("//chromium/build/config/dcheck_always_on.gni")
declare_args() {
# Use LogErrorNotReached() for NOTREACHED().

View File

@ -2,10 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/apple/symbols.gni")
import("//build/config/c++/c++.gni")
import("//build/config/mac/mac_sdk.gni")
import("//build/config/sysroot.gni")
import("//chromium/build/config/apple/symbols.gni")
import("//chromium/build/config/c++/c++.gni")
import("//chromium/build/config/mac/mac_sdk.gni")
import("//chromium/build/config/sysroot.gni")
# This is included by reference in the //build/config/compiler config that
# is applied to all targets. It is here to separate out the logic.
@ -120,7 +120,7 @@ config("strip_all") {
if (use_system_xcode && use_goma && target_os == "mac" &&
current_toolchain == default_toolchain) {
action("sdk_inputs") {
script = "//build/noop.py"
script = "//chromium/build/noop.py"
outputs = [
"$mac_sdk_path/usr/include/mach/exc.defs",
"$mac_sdk_path/usr/include/mach/mach_exc.defs",

View File

@ -2,11 +2,11 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chrome_build.gni")
import("//build/config/gclient_args.gni")
import("//build/config/mac/mac_sdk_overrides.gni")
import("//build/toolchain/goma.gni")
import("//build/toolchain/toolchain.gni")
import("//chromium/build/config/chrome_build.gni")
import("//chromium/build/config/gclient_args.gni")
import("//chromium/build/config/mac/mac_sdk_overrides.gni")
import("//chromium/build/toolchain/goma.gni")
import("//chromium/build/toolchain/toolchain.gni")
assert(current_os == "mac" || current_toolchain == default_toolchain)
@ -66,10 +66,10 @@ if (is_chrome_branded && is_official_build && target_os != "ios") {
# The path to the hermetic install of Xcode. Only relevant when
# use_system_xcode = false.
if (!use_system_xcode) {
_hermetic_xcode_path = "//build/mac_files/xcode_binaries"
_hermetic_xcode_path = "//chromium/build/mac_files/xcode_binaries"
}
script_name = "//build/config/apple/sdk_info.py"
script_name = "//chromium/build/config/apple/sdk_info.py"
sdk_info_args = []
if (!use_system_xcode) {
sdk_info_args += [
@ -105,7 +105,7 @@ if (use_system_xcode) {
mac_sdk_min,
]
find_sdk_lines =
exec_script("//build/mac/find_sdk.py", find_sdk_args, "list lines")
exec_script("//chromium/build/mac/find_sdk.py", find_sdk_args, "list lines")
mac_sdk_version = find_sdk_lines[2]
if (mac_sdk_path == "") {
mac_sdk_path = find_sdk_lines[0]

View File

@ -2,9 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/apple/apple_info_plist.gni")
import("//build/config/apple/symbols.gni")
import("//build/config/mac/mac_sdk.gni")
import("//chromium/build/apple/apple_info_plist.gni")
import("//chromium/build/config/apple/symbols.gni")
import("//chromium/build/config/mac/mac_sdk.gni")
# Generates Info.plist files for Mac apps and frameworks.
#
@ -53,7 +53,7 @@ template("mac_info_plist") {
"XCODE_VERSION=$xcode_version",
]
plist_templates = [
"//build/config/mac/BuildInfo.plist",
"//chromium/build/config/mac/BuildInfo.plist",
_info_plist,
]
if (defined(invoker.info_plist_target)) {
@ -230,7 +230,7 @@ template("mac_framework_bundle") {
# Clean the entire framework if the framework_version changes.
_version_file = "$target_out_dir/${target_name}_version"
exec_script("//build/config/mac/prepare_framework_version.py",
exec_script("//chromium/build/config/mac/prepare_framework_version.py",
[
rebase_path(_version_file),
rebase_path(_framework_base_dir),
@ -240,7 +240,7 @@ template("mac_framework_bundle") {
# Create the symlinks.
_framework_package_target = target_name + "_package"
action(_framework_package_target) {
script = "//build/config/mac/package_framework.py"
script = "//chromium/build/config/mac/package_framework.py"
# The TOC file never needs to be read, since its contents are the values
# of GN variables. It is only used to trigger this rule when the values
@ -467,8 +467,8 @@ template("mac_app_bundle") {
action(_pkg_info_target) {
forward_variables_from(invoker, [ "testonly" ])
script = "//build/apple/write_pkg_info.py"
inputs = [ "//build/apple/plist_util.py" ]
script = "//chromium/build/apple/write_pkg_info.py"
inputs = [ "//chromium/build/apple/plist_util.py" ]
sources = get_target_outputs(":$_info_plist_target")
outputs = [ "$target_gen_dir/$_pkg_info_target" ]
args = [ "--plist" ] + rebase_path(sources, root_build_dir) +

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/v8_target_cpu.gni")
import("//chromium/build/config/v8_target_cpu.gni")
# These are primarily relevant in target_cpu == "mips*" contexts, where
# MIPS code is being compiled. But they can also be relevant in the

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/nacl/config.gni")
import("//chromium/build/config/nacl/config.gni")
# Native Client Definitions
config("nacl_defines") {

View File

@ -52,10 +52,10 @@ nacl_toolchain_tooldir =
"${nacl_toolchain_dir}/${nacl_toolchain_package}/${_nacl_tuple}"
nacl_toolprefix = "${nacl_toolchain_bindir}/${_nacl_tuple}-"
nacl_irt_toolchain = "//build/toolchain/nacl:irt_" + target_cpu
nacl_irt_toolchain = "//chromium/build/toolchain/nacl:irt_" + target_cpu
is_nacl_irt = current_toolchain == nacl_irt_toolchain
# Non-SFI mode is a lightweight sandbox used by Chrome OS for running ARC
# applications.
nacl_nonsfi_toolchain = "//build/toolchain/nacl:newlib_pnacl_nonsfi"
nacl_nonsfi_toolchain = "//chromium/build/toolchain/nacl:newlib_pnacl_nonsfi"
is_nacl_nonsfi = current_toolchain == nacl_nonsfi_toolchain

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/nacl/config.gni")
import("//chromium/build/config/nacl/config.gni")
# Generate a nmf file
#
@ -101,7 +101,7 @@ template("generate_nmf") {
if (target_cpu == "x64" || target_os == "win") {
# For x86-64, the lib/ directory is called lib64/ instead
# when copied by create_nmf.py.
glibc_tc = "//build/toolchain/nacl:glibc"
glibc_tc = "//chromium/build/toolchain/nacl:glibc"
assert(current_toolchain == "${glibc_tc}_${target_cpu}")
if (target_cpu == "x64") {
x64_out_dir = root_out_dir

View File

@ -2,9 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromecast_build.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//build/toolchain/toolchain.gni")
import("//chromium/build/config/chromecast_build.gni")
import("//chromium/build/config/chromeos/ui_mode.gni")
import("//chromium/build/toolchain/toolchain.gni")
declare_args() {
# Indicates if Ozone is enabled. Ozone is a low-level library layer for Linux
@ -16,7 +16,7 @@ declare_args() {
declare_args() {
# Ozone extra platforms file path. Can be overridden to build out of
# tree ozone platforms.
ozone_extra_path = "//build/config/ozone_extra.gni"
ozone_extra_path = "//chromium/build/config/ozone_extra.gni"
# Select platforms automatically. Turn this off for manual control.
ozone_auto_platforms = use_ozone

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/toolchain/goma.gni")
import("//build/toolchain/rbe.gni")
import("//chromium/build/toolchain/goma.gni")
import("//chromium/build/toolchain/rbe.gni")
declare_args() {
# Precompiled header file support is by default available,

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/sysroot.gni")
import("//chromium/build/config/sysroot.gni")
# This build configuration is used by both Fuchsia and POSIX systems.
assert(is_posix || is_fuchsia)
@ -34,10 +34,10 @@ config("runtime_library") {
# line, and build system rebuilds things when their commandline
# changes). Nothing should ever read this define.
sysroot_hash =
exec_script("//build/linux/sysroot_scripts/install-sysroot.py",
exec_script("//chromium/build/linux/sysroot_scripts/install-sysroot.py",
[ "--print-hash=$target_cpu" ],
"trim string",
[ "//build/linux/sysroot_scripts/sysroots.json" ])
[ "//chromium/build/linux/sysroot_scripts/sysroots.json" ])
defines += [ "CR_SYSROOT_HASH=$sysroot_hash" ]
}
asmflags += sysroot_flags

View File

@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/compiler/pgo/pgo.gni")
import("//build/config/coverage/coverage.gni")
import("//chromium/build/config/compiler/pgo/pgo.gni")
import("//chromium/build/config/coverage/coverage.gni")
declare_args() {
use_clang_profiling =

View File

@ -67,8 +67,8 @@ template("python_library") {
# associated .pydeps file. In other words:
#
# - This is very similar to just an action(), except that |script| must point
# to a Python script (e.g. "//build/.../foo.py") that has a corresponding
# .pydeps file in the source tree (e.g. "//build/.../foo.pydeps").
# to a Python script (e.g. "//chromium/build/.../foo.py") that has a corresponding
# .pydeps file in the source tree (e.g. "//chromium/build/.../foo.pydeps").
#
# - The .pydeps file contains a list of python dependencies (imports really)
# and is generated _manually_ by using a command like:

Some files were not shown because too many files have changed in this diff Show More