2016-06-23 19:42:00 +02:00
|
|
|
diff --git .gn .gn
|
2022-01-25 21:26:51 +01:00
|
|
|
index 22070a9adc507..e55d32f80b438 100644
|
2016-06-23 19:42:00 +02:00
|
|
|
--- .gn
|
|
|
|
+++ .gn
|
2022-01-25 21:26:51 +01:00
|
|
|
@@ -156,6 +156,8 @@ exec_script_whitelist =
|
2019-09-04 17:13:32 +02:00
|
|
|
|
|
|
|
"//chrome/android/webapk/shell_apk/prepare_upload_dir/BUILD.gn",
|
2016-10-17 20:14:44 +02:00
|
|
|
|
2017-04-20 21:28:17 +02:00
|
|
|
+ "//cef/BUILD.gn",
|
|
|
|
+
|
2017-01-23 18:36:54 +01:00
|
|
|
# TODO(dgn): Layer violation but breaks the build otherwise, see
|
2017-04-20 21:28:17 +02:00
|
|
|
# https://crbug.com/474506.
|
|
|
|
"//clank/java/BUILD.gn",
|
2016-06-23 19:42:00 +02:00
|
|
|
diff --git BUILD.gn BUILD.gn
|
2022-01-25 21:26:51 +01:00
|
|
|
index df8b37fc8b0af..e46843b39d228 100644
|
2016-06-23 19:42:00 +02:00
|
|
|
--- BUILD.gn
|
|
|
|
+++ BUILD.gn
|
2021-02-27 00:41:34 +01:00
|
|
|
@@ -16,6 +16,7 @@ import("//build/config/sanitizers/sanitizers.gni")
|
|
|
|
import("//build/config/ui.gni")
|
|
|
|
import("//build/gn_logs.gni")
|
|
|
|
import("//build/util/generate_wrapper.gni")
|
|
|
|
+import("//cef/libcef/features/features.gni")
|
|
|
|
import("//chrome/browser/buildflags.gni")
|
|
|
|
import("//chrome/browser/media/router/features.gni")
|
|
|
|
import("//components/nacl/features.gni")
|
2021-10-19 00:17:16 +02:00
|
|
|
@@ -267,6 +268,9 @@ group("gn_all") {
|
2021-07-23 18:40:13 +02:00
|
|
|
deps += [ "//chrome/test:telemetry_perf_unittests${_target_suffix}" ]
|
|
|
|
}
|
|
|
|
}
|
2021-02-27 00:41:34 +01:00
|
|
|
+ if (enable_cef) {
|
|
|
|
+ deps += [ "//cef" ]
|
|
|
|
+ }
|
|
|
|
} else if (is_ios) {
|
2016-06-23 19:42:00 +02:00
|
|
|
deps += [
|
2021-02-27 00:41:34 +01:00
|
|
|
"//ios:all",
|
2016-06-23 19:42:00 +02:00
|
|
|
diff --git build/config/win/visual_studio_version.gni build/config/win/visual_studio_version.gni
|
2021-04-21 00:52:34 +02:00
|
|
|
index 982fbe8d3f0d0..e757be4688f10 100644
|
2016-06-23 19:42:00 +02:00
|
|
|
--- build/config/win/visual_studio_version.gni
|
|
|
|
+++ build/config/win/visual_studio_version.gni
|
|
|
|
@@ -12,9 +12,8 @@ declare_args() {
|
2016-11-23 21:54:29 +01:00
|
|
|
# Currently always "2015".
|
2016-06-23 19:42:00 +02:00
|
|
|
visual_studio_version = ""
|
|
|
|
|
|
|
|
- # Directory of the Windows driver kit. If visual_studio_path is empty, this
|
|
|
|
- # will be auto-filled.
|
|
|
|
- wdk_path = ""
|
|
|
|
+ # Path to Visual Studio runtime libraries.
|
|
|
|
+ visual_studio_runtime_dirs = ""
|
|
|
|
|
|
|
|
# Full path to the Windows SDK, not including a backslash at the end.
|
|
|
|
# This value is the default location, override if you have a different
|
2016-07-06 21:34:09 +02:00
|
|
|
@@ -28,12 +27,11 @@ if (visual_studio_path == "") {
|
2016-06-23 19:42:00 +02:00
|
|
|
visual_studio_path = toolchain_data.vs_path
|
|
|
|
windows_sdk_path = toolchain_data.sdk_path
|
|
|
|
visual_studio_version = toolchain_data.vs_version
|
|
|
|
- wdk_path = toolchain_data.wdk_dir
|
|
|
|
visual_studio_runtime_dirs = toolchain_data.runtime_dirs
|
|
|
|
} else {
|
|
|
|
assert(visual_studio_version != "",
|
|
|
|
"You must set the visual_studio_version if you set the path")
|
|
|
|
- assert(wdk_path != "",
|
|
|
|
- "You must set the wdk_path if you set the visual studio path")
|
|
|
|
- visual_studio_runtime_dirs = []
|
|
|
|
+ assert(visual_studio_runtime_dirs != "",
|
|
|
|
+ "You must set the visual_studio_runtime_dirs if you set the visual " +
|
|
|
|
+ "studio path")
|
|
|
|
}
|
2021-02-27 00:41:34 +01:00
|
|
|
diff --git chrome/app/framework.order chrome/app/framework.order
|
2022-01-25 21:26:51 +01:00
|
|
|
index 839144aa1e9bd..29c8ab32398a7 100644
|
2021-02-27 00:41:34 +01:00
|
|
|
--- chrome/app/framework.order
|
|
|
|
+++ chrome/app/framework.order
|
2022-01-25 21:26:51 +01:00
|
|
|
@@ -28,3 +28,8 @@ _ChromeMain
|
2021-02-27 00:41:34 +01:00
|
|
|
_lprofDirMode
|
|
|
|
___llvm_profile_filename
|
|
|
|
___llvm_profile_raw_version
|
|
|
|
+
|
|
|
|
+# Symbols exported for CEF.
|
|
|
|
+_OBJC_CLASS_$_UnderlayOpenGLHostingWindow
|
|
|
|
+_OBJC_METACLASS_$_UnderlayOpenGLHostingWindow
|
|
|
|
+
|
2016-10-21 21:52:29 +02:00
|
|
|
diff --git chrome/chrome_paks.gni chrome/chrome_paks.gni
|
2022-01-25 21:26:51 +01:00
|
|
|
index c540719a510ab..1107dfc9f2537 100644
|
2016-10-21 21:52:29 +02:00
|
|
|
--- chrome/chrome_paks.gni
|
|
|
|
+++ chrome/chrome_paks.gni
|
2022-01-25 21:26:51 +01:00
|
|
|
@@ -5,6 +5,7 @@
|
|
|
|
import("//ash/ambient/resources/resources.gni")
|
2021-01-28 00:13:12 +01:00
|
|
|
import("//build/config/chromeos/ui_mode.gni")
|
2020-07-06 20:14:57 +02:00
|
|
|
import("//build/config/locales.gni")
|
|
|
|
+import("//cef/libcef/features/features.gni")
|
|
|
|
import("//chrome/browser/buildflags.gni")
|
|
|
|
import("//chrome/common/features.gni")
|
2021-08-20 01:40:49 +02:00
|
|
|
import("//chromeos/components/chromebox_for_meetings/buildflags/buildflags.gni")
|
2022-01-25 21:26:51 +01:00
|
|
|
@@ -75,6 +76,10 @@ template("chrome_repack_percent") {
|
2021-07-23 18:40:13 +02:00
|
|
|
"//ui/chromeos/resources",
|
2021-02-28 21:23:42 +01:00
|
|
|
]
|
2017-07-27 01:19:27 +02:00
|
|
|
}
|
2021-02-28 21:23:42 +01:00
|
|
|
+ if (enable_cef) {
|
|
|
|
+ sources += [ "$root_gen_dir/cef/cef_resources.pak" ]
|
|
|
|
+ deps += [ "//cef:cef_resources" ]
|
|
|
|
+ }
|
|
|
|
if (enable_extensions) {
|
2021-07-23 18:40:13 +02:00
|
|
|
sources += [ "$root_gen_dir/extensions/extensions_browser_resources_${percent}_percent.pak" ]
|
|
|
|
deps += [ "//extensions:extensions_browser_resources" ]
|
2021-02-28 21:23:42 +01:00
|
|
|
diff --git chrome/chrome_repack_locales.gni chrome/chrome_repack_locales.gni
|
2022-01-25 21:26:51 +01:00
|
|
|
index d969da6550bcb..97a5d2b843af5 100644
|
2021-02-28 21:23:42 +01:00
|
|
|
--- chrome/chrome_repack_locales.gni
|
|
|
|
+++ chrome/chrome_repack_locales.gni
|
|
|
|
@@ -6,6 +6,7 @@ import("//build/config/chrome_build.gni")
|
|
|
|
import("//build/config/chromeos/ui_mode.gni")
|
|
|
|
import("//build/config/features.gni")
|
|
|
|
import("//build/config/ui.gni")
|
|
|
|
+import("//cef/libcef/features/features.gni")
|
|
|
|
import("//extensions/buildflags/buildflags.gni")
|
|
|
|
import("//tools/grit/repack.gni")
|
2017-07-27 01:19:27 +02:00
|
|
|
|
2022-01-25 21:26:51 +01:00
|
|
|
@@ -90,6 +91,10 @@ template("chrome_repack_locales") {
|
2021-08-20 01:40:49 +02:00
|
|
|
[ "${root_gen_dir}/chromeos/strings/chromeos_strings_" ]
|
|
|
|
deps += [ "//chromeos/strings" ]
|
2020-07-06 20:14:57 +02:00
|
|
|
}
|
2021-02-28 21:23:42 +01:00
|
|
|
+ if (enable_cef) {
|
|
|
|
+ source_patterns += [ "${root_gen_dir}/cef/cef_strings_" ]
|
|
|
|
+ deps += [ "//cef:cef_strings" ]
|
2020-07-06 20:14:57 +02:00
|
|
|
+ }
|
2021-02-28 21:23:42 +01:00
|
|
|
if (enable_extensions) {
|
|
|
|
source_patterns +=
|
|
|
|
[ "${root_gen_dir}/extensions/strings/extensions_strings_" ]
|
2016-06-23 19:42:00 +02:00
|
|
|
diff --git chrome/installer/mini_installer/BUILD.gn chrome/installer/mini_installer/BUILD.gn
|
2021-06-04 03:34:56 +02:00
|
|
|
index 51fa0d7f4cf77..2ede68e9377eb 100644
|
2016-06-23 19:42:00 +02:00
|
|
|
--- chrome/installer/mini_installer/BUILD.gn
|
|
|
|
+++ chrome/installer/mini_installer/BUILD.gn
|
2020-12-02 23:31:49 +01:00
|
|
|
@@ -6,6 +6,7 @@ import("//build/config/compiler/compiler.gni")
|
2020-07-06 20:14:57 +02:00
|
|
|
import("//build/config/features.gni")
|
2020-12-02 23:31:49 +01:00
|
|
|
import("//build/config/python.gni")
|
2020-07-06 20:14:57 +02:00
|
|
|
import("//build/config/ui.gni")
|
|
|
|
+import("//cef/libcef/features/features.gni")
|
|
|
|
import("//chrome/process_version_rc_template.gni")
|
|
|
|
import("//components/nacl/features.gni")
|
2020-08-29 00:39:23 +02:00
|
|
|
import("//third_party/ffmpeg/ffmpeg_options.gni")
|
2021-06-04 03:34:56 +02:00
|
|
|
@@ -121,11 +122,13 @@ action("mini_installer_archive") {
|
2021-01-28 00:13:12 +01:00
|
|
|
inputs = [
|
|
|
|
"$root_out_dir/chrome.dll",
|
|
|
|
"$root_out_dir/chrome.exe",
|
|
|
|
- "$root_out_dir/locales/en-US.pak",
|
|
|
|
"$root_out_dir/setup.exe",
|
|
|
|
"//chrome/tools/build/win/makecab.py",
|
|
|
|
release_file,
|
|
|
|
]
|
|
|
|
+ if (!enable_cef) {
|
|
|
|
+ inputs += [ "$root_out_dir/locales/en-US.pak" ]
|
|
|
|
+ }
|
2020-07-06 20:14:57 +02:00
|
|
|
|
2021-01-28 00:13:12 +01:00
|
|
|
outputs = [
|
|
|
|
# See also chrome.packed.7z conditionally added below.
|
2021-04-21 00:52:34 +02:00
|
|
|
diff --git tools/grit/grit_defines.gni tools/grit/grit_defines.gni
|
2022-01-25 21:26:51 +01:00
|
|
|
index 60022cbefac60..00f3bcd528ee0 100644
|
2021-04-21 00:52:34 +02:00
|
|
|
--- tools/grit/grit_defines.gni
|
|
|
|
+++ tools/grit/grit_defines.gni
|
2022-01-25 21:26:51 +01:00
|
|
|
@@ -5,6 +5,7 @@
|
|
|
|
import("//build/config/chrome_build.gni")
|
2021-04-21 00:52:34 +02:00
|
|
|
import("//build/config/chromeos/ui_mode.gni")
|
2021-09-20 11:06:23 +02:00
|
|
|
import("//build/config/devtools.gni")
|
2021-04-21 00:52:34 +02:00
|
|
|
+import("//build/config/locales.gni")
|
|
|
|
import("//build/config/ui.gni")
|
|
|
|
|
2021-09-20 11:06:23 +02:00
|
|
|
shared_intermediate_dir = rebase_path(root_gen_dir, root_build_dir)
|
2021-10-19 00:17:16 +02:00
|
|
|
@@ -112,6 +113,13 @@ if (is_android) {
|
2021-04-21 00:52:34 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
+if (enable_pseudolocales) {
|
|
|
|
+ grit_defines += [
|
|
|
|
+ "-D",
|
|
|
|
+ "enable_pseudolocales",
|
|
|
|
+ ]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
# When cross-compiling, explicitly pass the target system to grit.
|
|
|
|
if (current_toolchain != host_toolchain) {
|
|
|
|
if (is_android) {
|