From 7b7f5d77e87351cb98b7932eaf8959feaf280215 Mon Sep 17 00:00:00 2001 From: Roger Zanoni Date: Mon, 24 Apr 2023 10:52:57 +0200 Subject: [PATCH 01/10] Add an option to use an output directory outside src --- tools/make_distrib.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/make_distrib.py b/tools/make_distrib.py index 7122fae19..045430ea3 100644 --- a/tools/make_distrib.py +++ b/tools/make_distrib.py @@ -457,6 +457,12 @@ This utility builds the CEF Binary Distribution. """ parser = OptionParser(description=disc) + +parser.add_option( + '--base-out-path', + dest='baseoutpath', + default='', + help="Use an anternative base path for the generated gn outputs instead of using chromium source dir") parser.add_option( '--output-dir', dest='outputdir', @@ -698,6 +704,8 @@ else: # Determine the build directory paths. out_dir = os.path.join(src_dir, 'out') +if options.baseoutpath != '': + out_dir = os.path.join(options.baseoutpath, 'out') build_dir_debug = os.path.join(out_dir, 'Debug' + build_dir_suffix) build_dir_release = os.path.join(out_dir, 'Release' + build_dir_suffix) -- 2.39.2