Files
brave-core/patches/chrome-installer-linux-BUILD.gn.patch
T
Aleksei Khoroshilov e4cdfbe9a7 Enable SISO on Linux host with Brave-specific configuration (#30312)
Enable SISO by default for linux, mac, win targets built on host_os == "linux".
2025-08-01 18:28:16 +07:00

85 lines
3.2 KiB
Diff

diff --git a/chrome/installer/linux/BUILD.gn b/chrome/installer/linux/BUILD.gn
index ddfe9309107e57f50b4a62a918744a17769186c0..d3ef72d6bb67fc14c9ce4cc824966db87004aa6a 100644
--- a/chrome/installer/linux/BUILD.gn
+++ b/chrome/installer/linux/BUILD.gn
@@ -16,6 +16,7 @@ import("//third_party/angle/gni/angle.gni")
import("//third_party/widevine/cdm/widevine.gni")
import("//ui/gl/features.gni")
import("//ui/qt/qt.gni")
+import("//brave/build/config.gni")
if (bundle_widevine_cdm) {
import("//media/cdm/library_cdm/cdm_paths.gni")
@@ -63,6 +64,7 @@ if (build_with_internal_optimization_guide) {
[ "$root_out_dir/liboptimization_guide_internal.so" ]
}
+packaging_files_executables -= excluded_packaging_files_executables packaging_files_executables += brave_packaging_files_executables
packaging_files_binaries = packaging_files_executables + packaging_files_shlibs
# TODO(mmoss) Any convenient way to get all the relevant build files?
@@ -171,6 +173,7 @@ action("merge_rpm_dependencies") {
strip_binary("strip_chrome_binary") {
binary_input = "$root_out_dir/chrome"
deps = [ "//chrome" ]
+ binary_input = "$root_out_dir/brave" symbol_output = "$root_out_dir/brave.debug" stripped_binary_output = "$root_out_dir/brave.stripped" deps += strip_chrome_binary_deps
}
strip_binary("strip_chrome_crashpad_handler") {
@@ -186,6 +189,7 @@ strip_binary("strip_chrome_management_service") {
strip_binary("strip_chrome_sandbox") {
binary_input = "$root_out_dir/chrome_sandbox"
deps = [ "//sandbox/linux:chrome_sandbox" ]
+ binary_input = "$root_out_dir/brave_sandbox" symbol_output = "$root_out_dir/brave_sandbox.debug" stripped_binary_output = "$root_out_dir/brave_sandbox.stripped" deps += strip_chrome_sandbox_deps
}
strip_binary("strip_libEGL_shlib") {
@@ -275,6 +279,7 @@ copy("common_packaging_files") {
}
outputs = [ "$root_out_dir/installer/common/{{source_file_part}}" ]
+ sources -= common_packaging_files_excluded_sources sources += common_packaging_files_sources
}
copy("deb_packaging_files") {
@@ -381,6 +386,7 @@ group("installer_deps") {
"//components/privacy_sandbox/privacy_sandbox_attestations/preload:component",
"//sandbox/linux:chrome_sandbox",
]
+ public_deps += brave_installer_deps
if (bundle_widevine_cdm) {
public_deps += [ "//third_party/widevine/cdm" ]
}
@@ -435,11 +441,14 @@ group("installer_deps") {
template("linux_package") {
assert(defined(invoker.channel))
channel = invoker.channel
+ if (channel == "unstable" ) {
+ channel = "dev"
+ }
if (is_chrome_branded) {
package = "google-chrome"
} else {
- package = "chromium-browser"
+ package = "brave-browser" chrome_version_full = brave_version
}
deb_target_name = "${target_name}_deb"
@@ -468,7 +477,7 @@ template("linux_package") {
}
inputs = packaging_files
- outputs = [ "$root_out_dir/${package}-${channel}_${chrome_version_full}-1_${deb_arch}.deb" ]
+ outputs = [ "$root_out_dir/${package}-${channel}_${chrome_version_full}_${deb_arch}.deb" ]
args = [
rebase_path("$root_out_dir/installer/debian/build.sh", root_build_dir),
@@ -567,3 +576,6 @@ linux_package("unstable") {
linux_package("canary") {
channel = "canary"
}
+linux_package("nightly") {
+ channel = "nightly"
+}