add stuff

This commit is contained in:
Alexander Frick 2023-02-28 22:13:31 -06:00
parent 051203a91f
commit 372d02b341
3 changed files with 11 additions and 14 deletions

View file

@ -44,7 +44,7 @@ git checkout -f tags/$THOR_VER &&
git clean -ffd &&
cp thorium-libjxl/DEPS ~/chromium/src/
cp -v thorium-libjxl/DEPS ~/chromium/src/
gclient sync --with_branch_heads --with_tags -f -R -D &&

View file

@ -44,10 +44,15 @@ printf "\n" &&
printf "${YEL}Copying Thorium source files over the Chromium tree...\n" &&
tput sgr0 &&
# Copy libjxl src
cp -r -v thorium-libjxl/src/. $HOME/chromium/src/ &&
# Copy Thorium sources
cp -r -v src/BUILD.gn $HOME/chromium/src/ &&
cp -r -v src/ash/. $HOME/chromium/src/ash/ &&
cp -r -v src/build/. $HOME/chromium/src/build/ &&
cp -r -v src/chrome/. $HOME/chromium/src/chrome/ &&
cp -r -v src/chromeos/. $HOME/chromium/src/chromeos/ &&
cp -r -v src/components/. $HOME/chromium/src/components/ &&
cp -r -v src/extensions/. $HOME/chromium/src/extensions/ &&
cp -r -v src/content/. $HOME/chromium/src/content/ &&
@ -62,9 +67,6 @@ cp -r -v thorium_shell/. $HOME/chromium/src/out/thorium/ &&
cp -r -v pak_src/bin/pak $HOME/chromium/src/out/thorium/ &&
cp -r -v pak_src/bin/pak-win/. $HOME/chromium/src/out/thorium/ &&
# Copy libjxl src
cp -r -v thorium-libjxl/src/. $HOME/chromium/src/ &&
# Add default_apps dir for Google Docs Offline extension.
mkdir -v -p $HOME/chromium/src/out/thorium/default_apps &&
cp -r -v infra/default_apps/. $HOME/chromium/src/out/thorium/default_apps/ &&
@ -73,15 +75,6 @@ echo " # Workaround for DevTools" &&
mkdir -v -p $HOME/chromium/src/out/thorium/gen/third_party/devtools-frontend/src/front_end/Images/ &&
cp -r -v src/third_party/devtools-frontend/src/front_end/Images/src/chromeSelectDark.svg $HOME/chromium/src/out/thorium/gen/third_party/devtools-frontend/src/front_end/Images/ &&
printf "\n" &&
printf "${YEL}Making some scripts executable...\n" &&
tput sgr0 &&
chmod -v +x $HOME/chromium/src/tools/clang/scripts/build.py &&
chmod -v +x $HOME/chromium/src/tools/gn/bootstrap/bootstrap.py &&
chmod -v +x $HOME/chromium/src/chrome/installer/linux/debian/build.sh &&
# MacOS Widevine Workaround
copyMacOS () {
printf "\n" &&

View file

@ -1,4 +1,4 @@
// Copyright (c) 2022 Alex313031. All rights reserved.
// Copyright (c) 2023 Alex313031. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@ -81,6 +81,10 @@
"GTK Auto Dark Mode",
"Enables Thorium to automatically change to Dark Mode according to the system GTK Theme.",
kOsLinux, SINGLE_VALUE_TYPE("auto-dark-mode")},
{"enable-native-gpu-memory-buffers",
"Enable Native GPU Memory Buffers",
"Enables native CPU-mappable GPU memory buffer support on Linux.",
kOsLinux, SINGLE_VALUE_TYPE("enable-native-gpu-memory-buffers")},
#endif // BUILDFLAG(IS_LINUX)
#if BUILDFLAG(IS_WIN)