c3df4b24010da6acc17b346be77d1c5c2f9fdd8f
[AGL/meta-agl-demo.git] / recipes-wam / cef / files / cef / 0002-Add-an-option-to-override-the-default-distrib-direct.patch
1 From 1da1ed1f7035bdb0a4528962c048b7365369f8fd Mon Sep 17 00:00:00 2001
2 From: Roger Zanoni <rzanoni@igalia.com>
3 Date: Mon, 24 Apr 2023 13:56:10 +0200
4 Subject: [PATCH 02/10] Add an option to override the default distrib directory
5  name
6
7 ---
8  tools/make_distrib.py | 8 ++++++++
9  1 file changed, 8 insertions(+)
10
11 diff --git a/tools/make_distrib.py b/tools/make_distrib.py
12 index 045430ea3..a858e8ff6 100644
13 --- a/tools/make_distrib.py
14 +++ b/tools/make_distrib.py
15 @@ -463,6 +463,11 @@ parser.add_option(
16      dest='baseoutpath',
17      default='',
18      help="Use an anternative base path for the generated gn outputs instead of using chromium source dir")
19 +parser.add_option(
20 +    '--dist-path-name',
21 +    dest='distpathname',
22 +    default='',
23 +    help="Override the default name of the distribution output path.")
24  parser.add_option(
25      '--output-dir',
26      dest='outputdir',
27 @@ -675,6 +680,9 @@ else:
28  if options.ozone:
29    output_dir_name = output_dir_name + '_ozone'
30  
31 +if options.distpathname != '':
32 +  output_dir_name = options.distpathname + '_' + binary_arch
33 +
34  output_dir = create_output_dir(output_dir_name, options.outputdir)
35  
36  # create the README.TXT file
37 -- 
38 2.39.2
39