build: cocoa-application config target

I had to put it after video options because it depends on cocoa;
is there anywhere better to put it rather than making a new group?
This commit is contained in:
FRAU KOUJIRO 2014-04-15 18:08:50 -07:00 committed by Stefano Pigozzi
parent 0be25a8dbf
commit 022a43de8e
1 changed files with 23 additions and 11 deletions

34
wscript
View File

@ -73,17 +73,6 @@ build_options = [
'desc': 'zsh completion',
'func': check_true,
'default': 'disable',
}, {
'name': '--macosx-bundle',
'desc': 'compilation of a Mac OS X Application bundle',
'deps': [ 'os-darwin' ],
'default': 'disable',
'func': check_true
}, {
'name': 'win32-executable',
'desc': 'w32 executable',
'deps_any': [ 'os-win32', 'os-cygwin'],
'func': check_ctx_vars('WINDRES')
}, {
# does nothing - left for backward and forward compatibility
'name': '--asm',
@ -737,6 +726,27 @@ scripting_features = [
}
]
standalone_features = [
{
'name': 'win32-executable',
'desc': 'w32 executable',
'deps_any': [ 'os-win32', 'os-cygwin'],
'func': check_ctx_vars('WINDRES')
}, {
'name': 'cocoa-application',
'desc': 'standalone Cocoa application',
'deps': [ 'cocoa' ],
'deps_neg': [ 'libmpv-shared', 'libmpv-static' ],
'func': check_true
}, {
'name': '--macosx-bundle',
'desc': 'compilation of a Mac OS X Application bundle',
'deps': [ 'os-darwin' ],
'default': 'disable',
'func': check_true
}
]
_INSTALL_DIRS_LIST = [
('bindir', '${PREFIX}/bin', 'binary files'),
('libdir', '${PREFIX}/lib', 'library files'),
@ -771,6 +781,7 @@ def options(opt):
opt.parse_features('hwaccels', hwaccel_features)
opt.parse_features('tv features', radio_and_tv_features)
opt.parse_features('scripting', scripting_features)
opt.parse_features('standalone app', standalone_features)
group = opt.get_option_group("scripting")
group.add_option('--lua',
@ -829,6 +840,7 @@ def configure(ctx):
ctx.options.enable_lua = True
ctx.parse_dependencies(scripting_features)
ctx.parse_dependencies(standalone_features)
ctx.define('HAVE_SYS_SOUNDCARD_H',
'(HAVE_OSS_AUDIO_NATIVE || HAVE_OSS_AUDIO_4FRONT)',