2016-06-23 19:42:00 +02:00
|
|
|
diff --git .gn .gn
|
2024-06-14 19:01:45 +02:00
|
|
|
index 44a11ec90ec9b..4c35b35a97f28 100644
|
2016-06-23 19:42:00 +02:00
|
|
|
--- .gn
|
|
|
|
+++ .gn
|
2024-06-14 19:01:45 +02:00
|
|
|
@@ -158,6 +158,8 @@ exec_script_whitelist =
|
2019-09-04 17:13:32 +02:00
|
|
|
"//chrome/android/webapk/shell_apk/prepare_upload_dir/BUILD.gn",
|
2022-08-23 03:37:40 +02:00
|
|
|
"//chrome/version.gni",
|
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
|
2024-11-14 23:07:03 +01:00
|
|
|
index d91ef0419d702..f9b612ba8ac7a 100644
|
2016-06-23 19:42:00 +02:00
|
|
|
--- BUILD.gn
|
|
|
|
+++ BUILD.gn
|
2024-04-23 22:06:00 +02:00
|
|
|
@@ -20,6 +20,7 @@ import("//build/config/sanitizers/sanitizers.gni")
|
2021-02-27 00:41:34 +01:00
|
|
|
import("//build/config/ui.gni")
|
|
|
|
import("//build/gn_logs.gni")
|
|
|
|
import("//build/util/generate_wrapper.gni")
|
|
|
|
+import("//cef/libcef/features/features.gni")
|
2024-06-14 19:01:45 +02:00
|
|
|
import("//chrome/enterprise_companion/buildflags.gni")
|
2024-01-26 03:12:43 +01:00
|
|
|
import("//components/enterprise/buildflags/buildflags.gni")
|
2021-02-27 00:41:34 +01:00
|
|
|
import("//components/nacl/features.gni")
|
2024-11-14 23:07:03 +01:00
|
|
|
@@ -288,6 +289,10 @@ group("gn_all") {
|
2023-01-30 18:43:54 +01:00
|
|
|
|
2023-04-26 21:55:59 +02:00
|
|
|
deps += root_extra_deps
|
2022-04-21 20:58:48 +02:00
|
|
|
|
2023-04-26 21:55:59 +02:00
|
|
|
+ if (enable_cef) {
|
|
|
|
+ deps += [ "//cef" ]
|
|
|
|
+ }
|
2022-04-21 20:58:48 +02:00
|
|
|
+
|
2023-12-06 21:16:15 +01:00
|
|
|
if (enable_printing || enable_printing_tests) {
|
2023-04-26 21:55:59 +02:00
|
|
|
deps += [ "//printing:printing_unittests" ]
|
|
|
|
}
|
2016-06-23 19:42:00 +02:00
|
|
|
diff --git build/config/win/visual_studio_version.gni build/config/win/visual_studio_version.gni
|
2024-11-14 23:07:03 +01:00
|
|
|
index bd41166938952..fba7843d79796 100644
|
2016-06-23 19:42:00 +02:00
|
|
|
--- build/config/win/visual_studio_version.gni
|
|
|
|
+++ build/config/win/visual_studio_version.gni
|
2023-04-04 20:00:13 +02:00
|
|
|
@@ -5,15 +5,14 @@
|
2023-03-02 18:12:02 +01:00
|
|
|
declare_args() {
|
|
|
|
# Path to Visual Studio. If empty, the default is used which is to use the
|
|
|
|
# automatic toolchain in depot_tools. If set, you must also set the
|
2023-04-04 20:00:13 +02:00
|
|
|
- # visual_studio_version, wdk_path and windows_sdk_version.
|
|
|
|
+ # visual_studio_version, visual_studio_runtime_dirs and windows_sdk_version.
|
2023-03-02 18:12:02 +01:00
|
|
|
visual_studio_path = ""
|
|
|
|
|
|
|
|
# Version of Visual Studio pointed to by the visual_studio_path.
|
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
|
2024-11-14 23:07:03 +01:00
|
|
|
@@ -31,16 +30,15 @@ if (visual_studio_path == "") {
|
2023-02-27 19:52:38 +01:00
|
|
|
windows_sdk_version = toolchain_data.sdk_version
|
2016-06-23 19:42:00 +02:00
|
|
|
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(visual_studio_runtime_dirs != "",
|
|
|
|
+ "You must set the visual_studio_runtime_dirs if you set the visual " +
|
|
|
|
+ "studio path")
|
2023-04-04 20:00:13 +02:00
|
|
|
assert(windows_sdk_version != "",
|
|
|
|
"You must set the windows_sdk_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 = []
|
2016-06-23 19:42:00 +02:00
|
|
|
}
|
2024-11-14 23:07:03 +01:00
|
|
|
|
|
|
|
visual_studio_version_logs = [ "windows_sdk_version=${windows_sdk_version}" ]
|
2016-10-21 21:52:29 +02:00
|
|
|
diff --git chrome/chrome_paks.gni chrome/chrome_paks.gni
|
2024-11-14 23:07:03 +01:00
|
|
|
index ca413e1286916..70379761ebd59 100644
|
2016-10-21 21:52:29 +02:00
|
|
|
--- chrome/chrome_paks.gni
|
|
|
|
+++ chrome/chrome_paks.gni
|
2024-06-14 19:01:45 +02:00
|
|
|
@@ -6,6 +6,7 @@ import("//ash/ambient/resources/resources.gni")
|
|
|
|
import("//build/config/chrome_build.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")
|
2023-11-21 20:17:55 +01:00
|
|
|
import("//components/compose/features.gni")
|
2024-11-14 23:07:03 +01:00
|
|
|
@@ -479,6 +480,10 @@ template("chrome_extra_paks") {
|
2024-09-27 16:15:44 +02:00
|
|
|
]
|
|
|
|
deps += [ "//extensions:extensions_resources" ]
|
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) {
|
2024-10-24 17:05:31 +02:00
|
|
|
sources += [ "$root_gen_dir/chrome/extensions_resources.pak" ]
|
|
|
|
deps += [ "//chrome/browser/resources/extensions:resources" ]
|
2021-02-28 21:23:42 +01:00
|
|
|
diff --git chrome/chrome_repack_locales.gni chrome/chrome_repack_locales.gni
|
2024-10-24 17:53:43 +02:00
|
|
|
index 0ec0aa2c8efb3..be510257b243c 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
|
|
|
|
2024-10-24 17:53:43 +02:00
|
|
|
@@ -109,6 +110,10 @@ template("chrome_repack_locales") {
|
2023-12-06 21:16:15 +01:00
|
|
|
source_patterns += [ "${root_gen_dir}/components/strings/search_engine_descriptions_strings_" ]
|
|
|
|
deps += [ "//components/strings:search_engine_descriptions_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
|
|
|
+ }
|
2024-10-24 17:05:31 +02:00
|
|
|
if (enable_extensions_core) {
|
2021-02-28 21:23:42 +01:00
|
|
|
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
|
2024-10-24 17:53:43 +02:00
|
|
|
index c490d199bf51e..4c0de0d7a0822 100644
|
2016-06-23 19:42:00 +02:00
|
|
|
--- chrome/installer/mini_installer/BUILD.gn
|
|
|
|
+++ chrome/installer/mini_installer/BUILD.gn
|
2023-11-21 20:17:55 +01:00
|
|
|
@@ -7,6 +7,7 @@ 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")
|
2023-11-21 20:17:55 +01:00
|
|
|
import("//build/timestamp.gni")
|
2020-07-06 20:14:57 +02:00
|
|
|
+import("//cef/libcef/features/features.gni")
|
|
|
|
import("//chrome/process_version_rc_template.gni")
|
2023-09-15 21:51:43 +02:00
|
|
|
import("//third_party/dawn/scripts/dawn_features.gni")
|
2023-11-21 20:17:55 +01:00
|
|
|
import("//third_party/ffmpeg/ffmpeg_options.gni")
|
2024-02-22 19:36:15 +01:00
|
|
|
@@ -145,11 +146,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 = [
|
2023-01-30 18:43:54 +01:00
|
|
|
"$root_out_dir/chrome.7z",
|
2022-05-19 12:28:44 +02:00
|
|
|
diff --git tools/grit/grit_args.gni tools/grit/grit_args.gni
|
2024-07-03 19:07:46 +02:00
|
|
|
index 79d613489bac2..869b682d453ee 100644
|
2022-05-19 12:28:44 +02:00
|
|
|
--- tools/grit/grit_args.gni
|
|
|
|
+++ tools/grit/grit_args.gni
|
2024-07-03 19:07:46 +02:00
|
|
|
@@ -5,7 +5,9 @@
|
2022-01-25 21:26:51 +01:00
|
|
|
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")
|
2024-07-03 19:07:46 +02:00
|
|
|
+import("//cef/libcef/features/features.gni")
|
2021-04-21 00:52:34 +02:00
|
|
|
|
2021-09-20 11:06:23 +02:00
|
|
|
shared_intermediate_dir = rebase_path(root_gen_dir, root_build_dir)
|
2024-07-03 19:07:46 +02:00
|
|
|
devtools_grd_path = "$shared_intermediate_dir/$devtools_grd_location"
|
|
|
|
@@ -36,6 +38,9 @@ _grit_defines = [
|
2021-04-21 00:52:34 +02:00
|
|
|
|
2022-05-19 12:28:44 +02:00
|
|
|
# Mac and iOS want Title Case strings.
|
|
|
|
"use_titlecase=${is_apple}",
|
2021-04-21 00:52:34 +02:00
|
|
|
+
|
2024-07-03 19:07:46 +02:00
|
|
|
+ "enable_cef=${enable_cef}",
|
2022-05-19 12:28:44 +02:00
|
|
|
+ "enable_pseudolocales=${enable_pseudolocales}",
|
|
|
|
]
|
|
|
|
|
|
|
|
# Must match `enable_hidpi` in ui/base/ui_features.gni.
|