summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-02-19 21:16:17 +0100
committerCarl Hetherington <cth@carlh.net>2022-02-19 21:16:17 +0100
commit1cc0b7e6d642909b492083e7d0db8dfe1e63f80b (patch)
tree2eadd6e2220b2a2dacf7c7f651bdce0f09ae547c /cscript
parent8b18a617a6422cdeec1f0d6d45d16a8d9eabd10d (diff)
Try to fix for further cdist adventures.
Diffstat (limited to 'cscript')
-rw-r--r--cscript8
1 files changed, 2 insertions, 6 deletions
diff --git a/cscript b/cscript
index 332d3b6d0..7fd635343 100644
--- a/cscript
+++ b/cscript
@@ -454,7 +454,7 @@ def configure_options(target, options):
return opt
-def build(target, options):
+def build(target, options, for_package):
if target.platform == 'flatpak':
target.checkout_dependencies()
prefix = 'https://dcpomatic.com/deps'
@@ -569,7 +569,7 @@ def build(target, options):
with open('build/com.dcpomatic.DCP-o-matic.json', 'w') as outfile:
json.dump(desc, outfile)
target.command('%s --repo=build/platform/repo build/platform/flatpak build/com.dcpomatic.DCP-o-matic.json' % target.flatpak_builder())
- else:
+ elif target.platform != 'linux' or target.detail == 'appimage' or not for_package:
target.command('./waf configure --prefix=%s %s' % (target.directory, configure_options(target, options)))
target.command('./waf')
target.command('./waf install')
@@ -711,10 +711,6 @@ def make_appimage(target, nice_name, internal_name, version):
def package(target, version, options):
"""version: DCP-o-matic version string"""
- if target.platform != 'linux' or target.detail == 'appimage':
- # In most cases we need to build ourselves before packaging, but on some Linux targets the packaging
- # tool wants to build DCP-o-matic so we don't bother here.
- build(target, options)
if target.platform == 'windows':
return package_windows(target)
elif target.platform == 'linux':