summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2020-05-18 18:17:02 +0200
committerTim-Philipp Müller <tim@centricular.com>2021-06-07 19:04:14 +0100
commitaccf5d2da1beb18122330f4fafe5661fc24c80c6 (patch)
treee187e4727b327a0c727bd2112de32076ab8f6302
parent89378d039dceec57d735ef9c7ea021f2d7a05792 (diff)
recipe: install licensing with config_src_dir as a base folder
In order to separate build folder from src folder, the license will be taken from config_src_dir. In the case of librtmp, the license is not in the config_src_dir where the CMakeLists.txt is located but one level up. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/707>
-rw-r--r--cerbero/build/recipe.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cerbero/build/recipe.py b/cerbero/build/recipe.py
index 3dfa8d76..a0020607 100644
--- a/cerbero/build/recipe.py
+++ b/cerbero/build/recipe.py
@@ -522,7 +522,8 @@ SOFTWARE LICENSE COMPLIANCE.\n\n'''
raise RuntimeError('{}.recipe: license file collision: {!r}'
.format(self.name, LICENSE_INFO_FILENAME))
dest = str(install_dir / fname)
- src = os.path.join(self.build_dir, f)
+
+ src = os.path.join(self.config_src_dir, f)
if shell.DRY_RUN:
print('Copying {!r} to {!r}'.format(src, dest))
else: