summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2018-07-08 17:05:13 +0200
committerJan Ekström <jeebjp@gmail.com>2018-09-30 23:37:57 +0300
commit5a9add1fb3370b086f2c32e4b996218ae898b529 (patch)
treedf7f2eebc502a18331d466127d9b0cb49ac4c921 /wscript
parent89e52a228cd796e72e4074d0de2e9293c6d7a0b5 (diff)
downloadmpv-5a9add1fb3370b086f2c32e4b996218ae898b529.tar.bz2
mpv-5a9add1fb3370b086f2c32e4b996218ae898b529.tar.xz
add swift as main dependency so all dependencies can be disabled easily
(cherry picked from commit 5c2056ad0a43b1d15baef6d289aff8cacadad053)
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/wscript b/wscript
index 73a891f28c..e9e0ab3672 100644
--- a/wscript
+++ b/wscript
@@ -169,6 +169,11 @@ main_dependencies = [
'fmsg': 'Unable to find either POSIX or MinGW-w64 environment, ' \
'or compiler does not work.',
}, {
+ 'name': '--swift',
+ 'desc': 'macOS Swift build tools',
+ 'deps': 'os-darwin',
+ 'func': check_swift,
+ }, {
'name': '--uwp',
'desc': 'Universal Windows Platform',
'default': 'disable',
@@ -912,8 +917,8 @@ standalone_features = [
}, {
'name': '--macos-cocoa-cb',
'desc': 'macOS opengl-cb backend',
- 'deps': 'cocoa',
- 'func': check_swift
+ 'deps': 'cocoa && swift',
+ 'func': check_true
}
]