1 From 97e9e8dd589d7d3467d762f6ab25ec4a4f30505f Mon Sep 17 00:00:00 2001
2 From: Roger Zanoni <rzanoni@igalia.com>
3 Date: Mon, 24 Apr 2023 10:52:57 +0200
4 Subject: [PATCH 1/9] Add an option to use an output directory outside src
7 tools/make_distrib.py | 8 ++++++++
8 1 file changed, 8 insertions(+)
10 diff --git a/tools/make_distrib.py b/tools/make_distrib.py
11 index c808ad7df..ea798b86f 100644
12 --- a/tools/make_distrib.py
13 +++ b/tools/make_distrib.py
14 @@ -459,6 +459,12 @@ This utility builds the CEF Binary Distribution.
17 parser = OptionParser(description=disc)
23 + help="Use an anternative base path for the generated gn outputs instead of using chromium source dir")
27 @@ -700,6 +706,8 @@ else:
29 # Determine the build directory paths.
30 out_dir = os.path.join(src_dir, 'out')
31 +if options.baseoutpath != '':
32 + out_dir = os.path.join(options.baseoutpath, 'out')
33 build_dir_debug = os.path.join(out_dir, 'Debug' + build_dir_suffix)
34 build_dir_release = os.path.join(out_dir, 'Release' + build_dir_suffix)