Skip to content

Commit d6d2b1c

Browse files
authored
Merge pull request #9 from brave/linux_build_output_name_cr63
cr63 rebased patch for linux output name
2 parents a86e13a + 78cee0d commit d6d2b1c

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

browser/net/brave_httpse_network_delegate.cc

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "brave/browser/net/url_context.h"
1010
#include "brave/components/brave_shields/browser/brave_shields_util.h"
1111
#include "brave/components/brave_shields/browser/https_everywhere_service.h"
12+
#include "content/public/browser/browser_thread.h"
1213
#include "net/url_request/url_request.h"
1314

1415
using content::BrowserThread;

patches/master_patch.patch

+50-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,18 @@ index c649018a7a0aeb20caeb2bf37c60d57c48630f1b..9a320d8b5f46f2c7f2d269b7a1cc3b2c
1010
+ branding_path_component = "brave"
1111
}
1212
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
13-
index 5d0274b0424ecfd527962c5116370a7593d10d15..1328c557c15354b0505e294b6142b83354a53ddc 100644
13+
index 5d0274b0424ecfd527962c5116370a7593d10d15..7ac0fbca6097048f8011a60fed753740c427de3e 100644
1414
--- a/chrome/BUILD.gn
1515
+++ b/chrome/BUILD.gn
16+
@@ -54,7 +54,7 @@ if (is_win) {
17+
"$root_out_dir/initialexe/chrome.exe",
18+
]
19+
outputs = [
20+
- "$root_out_dir/chrome.exe",
21+
+ "$root_out_dir/brave.exe",
22+
]
23+
if (symbol_level != 0) {
24+
outputs += [ "$root_out_dir/chrome.exe.pdb" ]
1625
@@ -238,6 +238,8 @@ if (!is_android && !is_mac) {
1726
"app/chrome_main.cc",
1827
"app/chrome_main_delegate.cc",
@@ -22,6 +31,15 @@ index 5d0274b0424ecfd527962c5116370a7593d10d15..1328c557c15354b0505e294b6142b833
2231
]
2332

2433
deps += [
34+
@@ -308,7 +310,7 @@ if (!is_android && !is_mac) {
35+
if (is_win) {
36+
output_name = "initialexe/chrome"
37+
} else {
38+
- output_name = "chrome"
39+
+ output_name = "brave"
40+
}
41+
42+
sources = []
2543
@@ -357,6 +359,8 @@ if (is_win) {
2644
"app/chrome_main.cc",
2745
"app/chrome_main_delegate.cc",
@@ -94,6 +112,15 @@ index 5d0274b0424ecfd527962c5116370a7593d10d15..1328c557c15354b0505e294b6142b833
94112
]
95113

96114
include_dirs = [ android_ndk_include_dir ]
115+
@@ -1770,7 +1784,7 @@ if (is_linux) {
116+
dump_syms_binary =
117+
get_label_info(dump_syms_label, "root_out_dir") + "/" + "dump_syms"
118+
119+
- chrome_binary = "$root_out_dir/chrome"
120+
+ chrome_binary = "$root_out_dir/brave"
121+
if (current_cpu == "x86") {
122+
# GYP used "ia32" so keep that naming for back-compat.
123+
symbol_file = "$root_out_dir/chrome.breakpad.ia32"
97124
diff --git a/chrome/app/BUILD.gn b/chrome/app/BUILD.gn
98125
index 8896752d5b9faacff253afa54ae264417dbe3372..18c4df2427bb3ed0dffdf20faeeb71322200ed7c 100644
99126
--- a/chrome/app/BUILD.gn
@@ -426,6 +453,28 @@ index 816c6d90b3f8da1a6fe8b515be2bec0e76e99b8e..e2067d6d42bd85f40c7a1487d09feda5
426453

427454
const size_t kProductPathNameLength = _countof(kProductPathName) - 1;
428455

456+
diff --git a/chrome/installer/linux/BUILD.gn b/chrome/installer/linux/BUILD.gn
457+
index 615f286e96f7adef5e713c31ed6abd26cf643bc7..e97ccd6744c2985e93badf50924addbe3d0d87a3 100644
458+
--- a/chrome/installer/linux/BUILD.gn
459+
+++ b/chrome/installer/linux/BUILD.gn
460+
@@ -19,7 +19,7 @@ if (current_cpu == "x86" || current_cpu == "x64") {
461+
assert(is_linux)
462+
463+
packaging_files_executables = [
464+
- "$root_out_dir/chrome",
465+
+ "$root_out_dir/brave",
466+
"$root_out_dir/chrome_sandbox",
467+
]
468+
packaging_files_shlibs = []
469+
@@ -153,7 +153,7 @@ action("merge_rpm_dependencies") {
470+
}
471+
472+
action("strip_chrome_binary") {
473+
- prog_name = "$root_out_dir/chrome"
474+
+ prog_name = "$root_out_dir/brave"
475+
debug_file = prog_name + ".debug"
476+
stripped_file = prog_name + ".stripped"
477+
deps = [
429478
diff --git a/chrome/installer/util/prebuild/create_string_rc.py b/chrome/installer/util/prebuild/create_string_rc.py
430479
index d7734d8883c3e438ece3d509b7bb331931831178..6e6cdda19c271de7e5429db02b3e17b2d676b46f 100755
431480
--- a/chrome/installer/util/prebuild/create_string_rc.py

0 commit comments

Comments
 (0)