Last active
August 21, 2018 10:19
-
-
Save justdanpo/c0d41b4173533324aba95bc1f58d063f to your computer and use it in GitHub Desktop.
build Vivaldi browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: copy Vivaldi\Application\{version}\resources\vivaldi into %targetdir%\resources | |
set sourcedir=%~dp0vivaldi-source | |
set targetdir=%sourcedir%\out\Release | |
set threads=2 | |
set "GYP_DEFINES=component=shared_library fastbuild=0" | |
cd %sourcedir% | |
if not exist third_party\_winsparkle_lib\Release\WinSparkle.dll ( | |
echo unpack include + Release + x64 into %~dp0third_party\_winsparkle_lib\ | |
exit /b | |
) | |
call git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
set path=%sourcedir%\depot_tools;%path% | |
call gclient --version | |
mkdir testdata | |
echo // Vivaldi Standalone > testdata\stp.viv | |
echo config("sparkle_config") { > %sourcedir%\third_party\BUILD.gn | |
echo visibility = [ ":*" ] >> %sourcedir%\third_party\BUILD.gn | |
echo include_dirs = [ "//vivaldi/third_party/_winsparkle_lib/include" ] >> %sourcedir%\third_party\BUILD.gn | |
echo if (current_cpu == "x64") { >> %sourcedir%\third_party\BUILD.gn | |
echo lib_dirs = [ "//vivaldi/third_party/_winsparkle_lib/x64/Release" ] >> %sourcedir%\third_party\BUILD.gn | |
echo } else { >> %sourcedir%\third_party\BUILD.gn | |
echo lib_dirs = [ "//vivaldi/third_party/_winsparkle_lib/Release" ] >> %sourcedir%\third_party\BUILD.gn | |
echo } >> %sourcedir%\third_party\BUILD.gn | |
echo libs = [ "WinSparkle.lib" ] >> %sourcedir%\third_party\BUILD.gn | |
echo } >> %sourcedir%\third_party\BUILD.gn | |
echo copy("copy_sparkle_dll") { >> %sourcedir%\third_party\BUILD.gn | |
echo visibility = [ ":*" ] >> %sourcedir%\third_party\BUILD.gn | |
echo if (current_cpu == "x64") { >> %sourcedir%\third_party\BUILD.gn | |
echo sources = [ "//vivaldi/third_party/_winsparkle_lib/x64/Release/WinSparkle.dll" ] >> %sourcedir%\third_party\BUILD.gn | |
echo } else { >> %sourcedir%\third_party\BUILD.gn | |
echo sources = [ "//vivaldi/third_party/_winsparkle_lib/Release/WinSparkle.dll" ] >> %sourcedir%\third_party\BUILD.gn | |
echo } >> %sourcedir%\third_party\BUILD.gn | |
echo outputs = [ "$root_out_dir/{{source_file_part}}" ] >> %sourcedir%\third_party\BUILD.gn | |
echo } >> %sourcedir%\third_party\BUILD.gn | |
echo group("sparkle") { >> %sourcedir%\third_party\BUILD.gn | |
echo public_deps = [ >> %sourcedir%\third_party\BUILD.gn | |
echo ":copy_sparkle_dll", >> %sourcedir%\third_party\BUILD.gn | |
echo ] >> %sourcedir%\third_party\BUILD.gn | |
echo public_configs = [ ":sparkle_config" ] >> %sourcedir%\third_party\BUILD.gn | |
echo } >> %sourcedir%\third_party\BUILD.gn | |
::::??? echo.> %sourcedir%\third_party\deps_updates.gni | |
call python.bat scripts/runhooks.py | |
ninja -j %threads% -C %targetdir% vivaldi |
@Menci
Sorry, I've missed your comment.
Vivaldi 1.7 folder after compilation takes ~32GB
how to unpack include + Release + x64 into %~dp0third_party_winsparkle_lib
from where i can unpack this?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How much disk space will it cost?