summaryrefslogtreecommitdiffstats
path: root/recipes-wam/cef/files/cef/0001-Add-an-option-to-use-an-output-directory-outside-src.patch
blob: af2ea0baa91bfe640dd012f717dbf862db8f460a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 97e9e8dd589d7d3467d762f6ab25ec4a4f30505f Mon Sep 17 00:00:00 2001
From: Roger Zanoni <rzanoni@igalia.com>
Date: Mon, 24 Apr 2023 10:52:57 +0200
Subject: [PATCH 1/9] 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 c808ad7df..ea798b86f 100644
--- a/tools/make_distrib.py
+++ b/tools/make_distrib.py
@@ -459,6 +459,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',
@@ -700,6 +706,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.42.0