[cef][wam] Make the recipe work with official chromium release tarballs
[AGL/meta-agl-demo.git] / recipes-wam / cef / files / cef / 0002-Add-an-option-to-override-the-default-distrib-direct.patch
1 From d0ab00e0a22cab8f00d2b1b8c6904c68ff3fa09a 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 2/9] 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 ea798b86f..6ed748fe7 100644
13 --- a/tools/make_distrib.py
14 +++ b/tools/make_distrib.py
15 @@ -465,6 +465,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 @@ -677,6 +682,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.42.0
39