diff --git a/patches/ungoogled-chromium/windows/windows-fix-building-gn.patch b/patches/ungoogled-chromium/windows/windows-fix-building-gn.patch index ac87de70..8cfe97c9 100644 --- a/patches/ungoogled-chromium/windows/windows-fix-building-gn.patch +++ b/patches/ungoogled-chromium/windows/windows-fix-building-gn.patch @@ -1,6 +1,32 @@ # Fix building GN on Windows # Author: shiromichi on GitHub +--- a/tools/gn/bootstrap/bootstrap.py ++++ b/tools/gn/bootstrap/bootstrap.py +@@ -62,7 +62,7 @@ def main(argv): + else: + build_rel = os.path.join('out', 'Release') + out_dir = os.path.join(SRC_ROOT, build_rel) +- gn_path = options.output or os.path.join(out_dir, 'gn') ++ gn_path = options.output or os.path.join(out_dir, 'gn.exe') + gn_build_dir = os.path.join(out_dir, 'gn_build') + + cmd = [ +@@ -81,11 +81,11 @@ def main(argv): + os.path.join(BOOTSTRAP_DIR, 'last_commit_position.h'), gn_build_dir) + if options.jobs: + subprocess.check_call( +- ['ninja', '-C', gn_build_dir, 'gn', '-w', 'dupbuild=err', '-j'+str(options.jobs)]) ++ ['ninja', '-C', gn_build_dir, 'gn.exe', '-w', 'dupbuild=err', '-j'+str(options.jobs)]) + else: + subprocess.check_call( +- ['ninja', '-C', gn_build_dir, 'gn', '-w', 'dupbuild=err']) +- shutil.copy2(os.path.join(gn_build_dir, 'gn'), gn_path) ++ ['ninja', '-C', gn_build_dir, 'gn.exe', '-w', 'dupbuild=err']) ++ shutil.copy2(os.path.join(gn_build_dir, 'gn.exe'), gn_path) + + + if __name__ == '__main__': --- a/tools/gn/build/build_win.ninja.template +++ b/tools/gn/build/build_win.ninja.template @@ -1,12 +1,12 @@