summaryrefslogtreecommitdiff
path: root/graphics/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-08-02 00:05:37 +0200
committerCarl Hetherington <cth@carlh.net>2021-09-13 01:22:00 +0200
commite7f7bf3a63c801a215d4b9832f01b8b27ee8944a (patch)
treedc65088e8ab2d74cb714dafcb2986ecea2d2d249 /graphics/wscript
parent0c0eeadf18add7e9165c0a0946ea0a52aac9990f (diff)
Support building of cli-only .deb packages (#2066).
Diffstat (limited to 'graphics/wscript')
-rw-r--r--graphics/wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/wscript b/graphics/wscript
index 157b2c77e..68435ea23 100644
--- a/graphics/wscript
+++ b/graphics/wscript
@@ -21,13 +21,13 @@ import os
def build(bld):
# Linux application icons
- if bld.env.TARGET_LINUX:
+ if bld.env.TARGET_LINUX and not bld.env.DISABLE_GUI:
for r in [16, 22, 32, 48, 64, 128, 256, 512]:
for p in ['dcpomatic2', 'dcpomatic2_kdm', 'dcpomatic2_server', 'dcpomatic2_batch', 'dcpomatic2_player', 'dcpomatic2_playlist', 'dcpomatic2_disk', 'dcpomatic2_combiner']:
bld.install_files('${PREFIX}/share/icons/hicolor/%dx%d/apps' % (r, r), 'linux/%d/%s.png' % (r, p))
# Install stuff for POSIX systems
- if not bld.env.TARGET_WINDOWS:
+ if not bld.env.TARGET_WINDOWS and not bld.env.DISABLE_GUI:
bld.install_as('${PREFIX}/share/dcpomatic2/dcpomatic2_server_small.png', 'linux/16/dcpomatic2.png')
bld.install_files('${PREFIX}/share/dcpomatic2', 'splash.png')
bld.install_files('${PREFIX}/share/dcpomatic2', 'zoom.png')