summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2022-11-07 18:02:22 -0600
committerDudemanguy <random342@airmail.cc>2023-05-09 20:37:17 +0000
commitbaa9d56481fe0f7633c77d0e7ee6ffd33b3a3783 (patch)
tree083f4629e6c51342edcccf7523e8d645b259fab3 /wscript
parenta1580b6424df95741452d3eff87d24a76305a0a8 (diff)
downloadmpv-baa9d56481fe0f7633c77d0e7ee6ffd33b3a3783.tar.bz2
mpv-baa9d56481fe0f7633c77d0e7ee6ffd33b3a3783.tar.xz
osdep: separate out macos paths from path-unix.c
macOS really has completely different path conventions that mpv doesn't take into account and it treats it just like any other old unix-like system. This means mpv enforces certain conventions on it (like all the XDG stuff) that doesn't really apply. Since we'd like to use more of this but at the same time not distrupt mac users even more, let's just copy and paste the current code to a new file, update the build and call it a day. This way, the paths of these two platforms can more freely diverge.
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/wscript b/wscript
index 2f97bb660a..25578e7235 100644
--- a/wscript
+++ b/wscript
@@ -156,6 +156,11 @@ main_dependencies = [
'desc': 'POSIX environment',
'func': check_statement(['unistd.h'], 'long x = _POSIX_VERSION'),
}, {
+ 'name': 'darwin',
+ 'desc': 'Darwin environment',
+ 'deps': 'os-darwin',
+ 'func': check_true,
+ }, {
'name': '--android',
'desc': 'Android environment',
'func': check_statement('android/api-level.h', '(void)__ANDROID__'), # arbitrary android-specific header