diff --git a/.gitignore b/.gitignore
index 190e5b3a..8d5b0d2d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,7 +6,10 @@ API_KEYS.txt
*.AppImage
*.zip
*.apk
+mini_installer.exe
thorium_mini_installer.exe
+thorium_SSE2_mini_installer.exe
+thorium_SSE3_mini_installer.exe
thorium_AVX2_mini_installer.exe
thorium_mini_installer_SSE2.exe
thorium_mini_installer_SSE3.exe
diff --git a/arm/build/config/compiler/BUILD.gn b/arm/build/config/compiler/BUILD.gn
index 3dec7b2c..b546921c 100644
--- a/arm/build/config/compiler/BUILD.gn
+++ b/arm/build/config/compiler/BUILD.gn
@@ -1846,6 +1846,12 @@ config("no_chromium_code") {
cflags_cc = []
defines = []
+ if (is_win) {
+ cflags += [ "/O2" ]
+ } else {
+ cflags += [ "-O3" ]
+ }
+
if (is_win) {
if (is_clang) {
cflags += [ "/W3" ] # Warning level 3.
diff --git a/arm/raspi/build/config/compiler/BUILD.gn b/arm/raspi/build/config/compiler/BUILD.gn
index c2cc30cd..47d52b7e 100644
--- a/arm/raspi/build/config/compiler/BUILD.gn
+++ b/arm/raspi/build/config/compiler/BUILD.gn
@@ -1821,6 +1821,12 @@ config("no_chromium_code") {
cflags_cc = []
defines = []
+ if (is_win) {
+ cflags += [ "/O2" ]
+ } else {
+ cflags += [ "-O3" ]
+ }
+
if (is_win) {
if (is_clang) {
cflags += [ "/W3" ] # Warning level 3.
diff --git a/build.sh b/build.sh
index f482cc7d..1dd6e1ec 100755
--- a/build.sh
+++ b/build.sh
@@ -32,6 +32,7 @@ printf "${CYA}\n" &&
# Build Thorium
export NINJA_SUMMARIZE_BUILD=1 &&
+export NINJA_STATUS="[%r processes, %f/%t @ %o/s | %e sec. ] " &&
./depot_tools/autoninja -C ${CR_SRC_DIR}/out/thorium chrome chrome_sandbox chromedriver clear_key_cdm thorium_shell -j$@ &&
diff --git a/build_android.sh b/build_android.sh
index 5c1c7136..d0923493 100644
--- a/build_android.sh
+++ b/build_android.sh
@@ -62,6 +62,7 @@ esac
# Build Thorium for ARM64
export NINJA_SUMMARIZE_BUILD=1 &&
+export NINJA_STATUS="[%r processes, %f/%t @ %o/s | %e sec. ] " &&
# ADD # thorium_shell_apk
./depot_tools/autoninja -C ${CR_SRC_DIR}/out/thorium content_shell_apk chrome_public_apk -j$@ &&
diff --git a/build_mac.sh b/build_mac.sh
index e684f680..c85cfd09 100755
--- a/build_mac.sh
+++ b/build_mac.sh
@@ -62,6 +62,7 @@ printf "${CYA}\n" &&
# Build Thorium
export NINJA_SUMMARIZE_BUILD=1 &&
+export NINJA_STATUS="[%r processes, %f/%t @ %o/s | %e sec. ] " &&
./depot_tools/autoninja -C ${CR_SRC_DIR}/out/thorium chrome chromedriver -j$@ &&
diff --git a/build_win.sh b/build_win.sh
index 91eb6748..0e3c0360 100755
--- a/build_win.sh
+++ b/build_win.sh
@@ -32,6 +32,7 @@ printf "${GRE}\n" &&
# Build Thorium and mini_installer
export NINJA_SUMMARIZE_BUILD=1 &&
+export NINJA_STATUS="[%r processes, %f/%t @ %o/s | %e sec. ] " &&
./depot_tools/autoninja -C ~/chromium/src/out/thorium chrome chromedriver clear_key_cdm thorium_shell setup mini_installer -j$@ &&
diff --git a/infra/PATCHES.md b/infra/PATCHES.md
index 12a6e3d7..f55e5d3f 100644
--- a/infra/PATCHES.md
+++ b/infra/PATCHES.md
@@ -1,6 +1,6 @@
-
+
-## List of patches/changes/features included in Thorium
+## List of patches/changes/features included in Thorium
Compiler modifications include SSE4.2, AVX, AES, and CFLAGS, LTO flags, and import_instr_limit flags set to /03, 3, and 30, respectively. \
NEW > Added some LLVM LOOP optimizations as -mllvm flags. See here > https://github.com/RobRich999/Chromium_Clang/issues/26#issuecomment-976883814
@@ -101,7 +101,7 @@ Always Show Component Extensions Patch > https://github.com/iridium-browser/irid
Increase default key length for newly-generated RSA keys from 1024 to 2048 Patch > https://github.com/iridium-browser/iridium-browser/commit/d016769081706d591188b5b2929c5fc2efd8ef20
-Enable UI Features: Side Search, Side Panel Journeys, Chrome Labs, Extensions Access Menu, Tab Hover Cards, WebUI Tab Strip, Drag and Drop Tabs on Wayland, Tab Groups Saving > https://github.com/Alex313031/Thorium/blob/main/chrome/browser/ui/ui_features.cc
+Enable UI Features: Side Search, Side Panel Journeys, Chrome Labs, Extensions Access Menu, Tab Hover Cards, WebUI Tab Strip, Drag and Drop Tabs on Wayland, Tab Groups Saving > https://github.com/Alex313031/thorium/blob/main/chrome/browser/ui/ui_features.cc
- Made by me.
Tab Outlines in Low Contrast Themes, More Prominent Active Tab Title in Dark Mode: Restore after they removed it in M113 >
@@ -163,7 +163,7 @@ Enable HEVC/H.265 Decoding Patch - https://github.com/StaZhu/enable-chromium-hev
Allow all HEVC Video Profiles to Play Patch - https://github.com/StaZhu/enable-chromium-hevc-hardware-decoding/blob/main/remove-main-main10-profile-limit.patch
Enable AC3 and EAC3 for HEVC Patch - https://github.com/Muril-o/electron-chromium-codecs
- - https://github.com/Alex313031/Thorium/commit/46893f326c42b08a56769f3de6743aec049b2091#diff-09b3d55a8198fc42186bfd6bf5869fe78b8edad6f67e75b78228446f1d7cf66f
+ - https://github.com/Alex313031/thorium/commit/46893f326c42b08a56769f3de6743aec049b2091#diff-09b3d55a8198fc42186bfd6bf5869fe78b8edad6f67e75b78228446f1d7cf66f
Show the Apps button in Bookmarks Bar by Default Patch - Made by me.
@@ -198,6 +198,9 @@ Installer patches to include unstripped and RPATH binaries, with chrome_sandbox
Patches for mini_installer and abseil when using AVX on Windows. Credit goes to @RobRich999
+"Ctrl+Shift+Q" to close all windows (exit) "Ctrl+Shift+K" to open a new tab to the right "Ctrl+Shift+D" to duplicate the current tab "Ctrl+Shift+P" to pop out the current tab into a new window
+ - https://github.com/Alex313031/thorium/blob/main/src/chrome/browser/ui/views/accelerator_table.cc
+
The Thorium .desktop file and content-shell .desktop file have flags added for experimental and useful features, namely: Disabling the Default Browser check and InfoBar, Experimental web platform features, and Experimental Canvas2D.
- Modified by me.
diff --git a/other/AVX2/build/config/compiler/BUILD.gn b/other/AVX2/build/config/compiler/BUILD.gn
index 8b272e77..a3003013 100644
--- a/other/AVX2/build/config/compiler/BUILD.gn
+++ b/other/AVX2/build/config/compiler/BUILD.gn
@@ -1838,6 +1838,12 @@ config("no_chromium_code") {
cflags_cc = []
defines = []
+ if (is_win) {
+ cflags += [ "/O2" ]
+ } else {
+ cflags += [ "-O3" ]
+ }
+
if (is_win) {
if (is_clang) {
cflags += [ "/W3" ] # Warning level 3.
diff --git a/other/CrOS/build/config/compiler/BUILD.gn b/other/CrOS/build/config/compiler/BUILD.gn
index 33f08cd4..de00b2e8 100644
--- a/other/CrOS/build/config/compiler/BUILD.gn
+++ b/other/CrOS/build/config/compiler/BUILD.gn
@@ -1821,6 +1821,12 @@ config("no_chromium_code") {
cflags_cc = []
defines = []
+ if (is_win) {
+ cflags += [ "/O2" ]
+ } else {
+ cflags += [ "-O3" ]
+ }
+
if (is_win) {
if (is_clang) {
cflags += [ "/W3" ] # Warning level 3.
diff --git a/other/SSE2/build/config/compiler/BUILD.gn b/other/SSE2/build/config/compiler/BUILD.gn
index 69e9991b..d5ec6f19 100644
--- a/other/SSE2/build/config/compiler/BUILD.gn
+++ b/other/SSE2/build/config/compiler/BUILD.gn
@@ -1839,6 +1839,12 @@ config("no_chromium_code") {
cflags_cc = []
defines = []
+ if (is_win) {
+ cflags += [ "/O2" ]
+ } else {
+ cflags += [ "-O3" ]
+ }
+
if (is_win) {
if (is_clang) {
cflags += [ "/W3" ] # Warning level 3.
diff --git a/other/SSE3/build/config/compiler/BUILD.gn b/other/SSE3/build/config/compiler/BUILD.gn
index 3ba5e608..92d6cb8f 100644
--- a/other/SSE3/build/config/compiler/BUILD.gn
+++ b/other/SSE3/build/config/compiler/BUILD.gn
@@ -1835,6 +1835,12 @@ config("no_chromium_code") {
cflags_cc = []
defines = []
+ if (is_win) {
+ cflags += [ "/O2" ]
+ } else {
+ cflags += [ "-O3" ]
+ }
+
if (is_win) {
if (is_clang) {
cflags += [ "/W3" ] # Warning level 3.
diff --git a/package.sh b/package.sh
index 0db5d063..84776f09 100755
--- a/package.sh
+++ b/package.sh
@@ -41,6 +41,7 @@ printf "${CYA}\n" &&
# Build debian package
export NINJA_SUMMARIZE_BUILD=1 &&
+export NINJA_STATUS="[%r processes, %f/%t @ %o/s | %e sec. ] " &&
./depot_tools/autoninja -C ${CR_SRC_DIR}/out/thorium "chrome/installer/linux:stable_deb" "chrome/installer/linux:stable_rpm" -j$@ &&
diff --git a/setup.sh b/setup.sh
index 19d48e34..346dc16e 100755
--- a/setup.sh
+++ b/setup.sh
@@ -200,6 +200,7 @@ printf "\n" &&
printf "${YEL}Exporting variables and setting handy aliases...\n" &&
export NINJA_SUMMARIZE_BUILD=1 &&
+export NINJA_STATUS="[%r processes, %f/%t @ %o/s | %e sec. ] " &&
export EDITOR=nano &&
diff --git a/src/build/config/compiler/BUILD.gn b/src/build/config/compiler/BUILD.gn
index 3b6b105e..1310a2d2 100644
--- a/src/build/config/compiler/BUILD.gn
+++ b/src/build/config/compiler/BUILD.gn
@@ -1830,6 +1830,12 @@ config("no_chromium_code") {
cflags_cc = []
defines = []
+ if (is_win) {
+ cflags += [ "/O2" ]
+ } else {
+ cflags += [ "-O3" ]
+ }
+
if (is_win) {
if (is_clang) {
cflags += [ "/W3" ] # Warning level 3.