X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=platform%2Flinux%2Fwscript;h=dad5778a6d51128f241f0338cfcf40ffc80bae8c;hb=5a3e836da9480bca0c3ef3384fa2010f358ccc7e;hp=3aab4f7fb349120fb85f96ec2f27f6b35581a941;hpb=cd4ad2186dba563db5b803963a86501f0b1e60f9;p=dcpomatic.git diff --git a/platform/linux/wscript b/platform/linux/wscript index 3aab4f7fb..dad5778a6 100644 --- a/platform/linux/wscript +++ b/platform/linux/wscript @@ -1,30 +1,61 @@ def build(bld): - obj = bld(features='subst') - obj.source = 'dcpomatic.desktop.in' - obj.target = 'dcpomatic.desktop' - obj.INSTALL_PREFIX = bld.env.INSTALL_PREFIX - obj.VERSION = bld.env.VERSION + desktops = [] + if bld.env.VARIANT != 'swaroop-theater': + obj = bld(features='subst') + obj.source = 'dcpomatic.desktop.in' + obj.target = 'dcpomatic2.desktop' + obj.INSTALL_PREFIX = bld.env.INSTALL_PREFIX + obj.VERSION = bld.env.VERSION + desktops.append(obj.target) + + obj = bld(features='subst') + obj.source = 'dcpomatic_batch.desktop.in' + obj.target = 'dcpomatic2_batch.desktop' + obj.INSTALL_PREFIX = bld.env.INSTALL_PREFIX + obj.VERSION = bld.env.VERSION + desktops.append(obj.target) + + obj = bld(features='subst') + obj.source = 'dcpomatic_server.desktop.in' + obj.target = 'dcpomatic2_server.desktop' + obj.INSTALL_PREFIX = bld.env.INSTALL_PREFIX + obj.VERSION = bld.env.VERSION + desktops.append(obj.target) + + obj = bld(features='subst') + obj.source = 'dcpomatic_kdm.desktop.in' + obj.target = 'dcpomatic2_kdm.desktop' + obj.INSTALL_PREFIX = bld.env.INSTALL_PREFIX + obj.VERSION = bld.env.VERSION + desktops.append(obj.target) + + if bld.env.ENABLE_DISK: + obj = bld(features='subst') + obj.source = 'dcpomatic_disk.desktop.in' + obj.target = 'dcpomatic2_disk.desktop' + obj.INSTALL_PREFIX = bld.env.INSTALL_PREFIX + obj.VERSION = bld.env.VERSION + desktops.append(obj.target) obj = bld(features='subst') - obj.source = 'dcpomatic_batch.desktop.in' - obj.target = 'dcpomatic_batch.desktop' + obj.source = 'dcpomatic_player.desktop.in' + obj.target = 'dcpomatic2_player.desktop' obj.INSTALL_PREFIX = bld.env.INSTALL_PREFIX obj.VERSION = bld.env.VERSION + desktops.append(obj.target) obj = bld(features='subst') - obj.source = 'dcpomatic_server.desktop.in' - obj.target = 'dcpomatic_server.desktop' + obj.source = 'dcpomatic_playlist.desktop.in' + obj.target = 'dcpomatic2_playlist.desktop' obj.INSTALL_PREFIX = bld.env.INSTALL_PREFIX obj.VERSION = bld.env.VERSION + desktops.append(obj.target) obj = bld(features='subst') - obj.source = 'dcpomatic.spec.in' - obj.target = 'dcpomatic.spec' + obj.source = 'dcpomatic_combiner.desktop.in' + obj.target = 'dcpomatic2_combiner.desktop' obj.INSTALL_PREFIX = bld.env.INSTALL_PREFIX obj.VERSION = bld.env.VERSION - if bld.env.TARGET_CENTOS_6: - obj.CENTOS_VERSION = '6' - elif bld.env.TARGET_CENTOS_7: - obj.CENTOS_VERSION = '7' + desktops.append(obj.target) - bld.install_files('${PREFIX}/share/applications', ['dcpomatic.desktop', 'dcpomatic_batch.desktop', 'dcpomatic_server.desktop']) + bld.install_files('${PREFIX}/share/applications', desktops)