Build freedesktop files if requested.
This commit is contained in:
parent
72556cdd7a
commit
0956708aa9
@ -668,6 +668,18 @@ def build(bld):
|
||||
obj.stdout = program + '.menus'
|
||||
bld.install_files (bld.env['CONFDIR'], program + '.menus')
|
||||
|
||||
# Freedesktop
|
||||
if bld.env['FREEDESKTOP']:
|
||||
obj = bld(features = 'subst')
|
||||
obj.source = 'ardour.desktop.in'
|
||||
obj.target = bld.env['PROGRAM_NAME'].lower() + str (bld.env['MAJOR']) + '.desktop'
|
||||
obj.chmod = Utils.O644
|
||||
|
||||
obj = bld(features = 'subst')
|
||||
obj.source = 'ardour-mime-info.xml'
|
||||
obj.target = bld.env['PROGRAM_NAME'].lower() + str (bld.env['MAJOR']) + '.xml'
|
||||
obj.chmod = Utils.O644
|
||||
|
||||
# Keybindings
|
||||
|
||||
# 'SAE-de-keypad', 'SAE-de-nokeypad', 'SAE-us-keypad',
|
||||
|
4
wscript
4
wscript
@ -643,7 +643,7 @@ def options(opt):
|
||||
opt.add_option('--no-fpu-optimization', action='store_false', dest='fpu_optimization')
|
||||
opt.add_option('--exports-hidden', action='store_true', default=False, dest='exports_hidden')
|
||||
opt.add_option('--freedesktop', action='store_true', default=False, dest='freedesktop',
|
||||
help='Install MIME type, icons and .desktop file as per freedesktop.org standards')
|
||||
help='Build MIME type and .desktop files as per freedesktop.org standards (will be placed in build/gtk2_ardour)')
|
||||
opt.add_option('--freebie', action='store_true', default=False, dest='freebie',
|
||||
help='Build a version suitable for distribution as a zero-cost binary')
|
||||
opt.add_option('--gprofile', action='store_true', default=False, dest='gprofile',
|
||||
@ -983,6 +983,8 @@ int main () { int x = SFC_AUTO_DOWNGRADE_RF64; return 0; }
|
||||
conf.env['PHONE_HOME'] = True
|
||||
if opts.fpu_optimization:
|
||||
conf.env['FPU_OPTIMIZATION'] = True
|
||||
if opts.freedesktop:
|
||||
conf.env['FREEDESKTOP'] = True
|
||||
if opts.nls:
|
||||
conf.define('ENABLE_NLS', 1)
|
||||
conf.env['ENABLE_NLS'] = True
|
||||
|
Loading…
Reference in New Issue
Block a user