diff options
author | FRAU KOUJIRO <frau@doushio.com> | 2014-04-15 18:08:50 -0700 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-08-06 09:31:59 +0200 |
commit | 022a43de8e5c102b73f5d141e3ff7e8773a5d61b (patch) | |
tree | 85c59c250ba76c3cf98ef6d1cc5f30f5e98cadfc /wscript | |
parent | 0be25a8dbf5447e1fb543b3096464a24a81d863a (diff) | |
download | mpv-022a43de8e5c102b73f5d141e3ff7e8773a5d61b.tar.bz2 mpv-022a43de8e5c102b73f5d141e3ff7e8773a5d61b.tar.xz |
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?
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 34 |
1 files changed, 23 insertions, 11 deletions
@@ -74,17 +74,6 @@ build_options = [ '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', 'desc': 'inline assembly (currently without effect)', @@ -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)', |