5d3cdac62db2ec5f990f49000d412956dbaa6fbb
[AGL/meta-agl-demo.git] / recipes-wam / cef / files / cef / 0001-Add-an-option-to-use-an-output-directory-outside-src.patch
1 From 7b7f5d77e87351cb98b7932eaf8959feaf280215 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 01/10] Add an option to use an output directory outside src
5
6 ---
7  tools/make_distrib.py | 8 ++++++++
8  1 file changed, 8 insertions(+)
9
10 diff --git a/tools/make_distrib.py b/tools/make_distrib.py
11 index 7122fae19..045430ea3 100644
12 --- a/tools/make_distrib.py
13 +++ b/tools/make_distrib.py
14 @@ -457,6 +457,12 @@ This utility builds the CEF Binary Distribution.
15  """
16  
17  parser = OptionParser(description=disc)
18 +
19 +parser.add_option(
20 +    '--base-out-path',
21 +    dest='baseoutpath',
22 +    default='',
23 +    help="Use an anternative base path for the generated gn outputs instead of using chromium source dir")
24  parser.add_option(
25      '--output-dir',
26      dest='outputdir',
27 @@ -698,6 +704,8 @@ else:
28  
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)
35  
36 -- 
37 2.39.2
38