summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-11-27 14:58:38 -0600
committerDudemanguy <random342@airmail.cc>2023-11-27 15:00:35 -0600
commitf7402ff466d1426bd99eaac546d53708cc14c8b3 (patch)
tree2114f4658da28b23b88f049f9611c1ae0b6e4611 /osdep
parentb9d392ecd9543aecdfd6e6a06aa2f9585950ac27 (diff)
downloadmpv-f7402ff466d1426bd99eaac546d53708cc14c8b3.tar.bz2
mpv-f7402ff466d1426bd99eaac546d53708cc14c8b3.tar.xz
Reapply "osdep/meson: add libplacebo include dir to swift compile"
It's not actually related to libplacebo wrap stuff and the swift compile command needs this to get the right libplacebo include path. This reverts commit b9d392ecd9543aecdfd6e6a06aa2f9585950ac27.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/osdep/meson.build b/osdep/meson.build
index 711f7bc8c3..21baafccdd 100644
--- a/osdep/meson.build
+++ b/osdep/meson.build
@@ -25,7 +25,9 @@ swift_flags += extra_flags
swift_compile = [swift_prog, swift_flags, '-module-name', 'macOS_swift',
'-emit-module-path', '@OUTPUT0@', '-import-objc-header', bridge,
'-emit-objc-header-path', '@OUTPUT1@', '-o', '@OUTPUT2@',
- '@INPUT@', '-I.', '-I' + source_root]
+ '@INPUT@', '-I.', '-I' + source_root,
+ '-I' + libplacebo.get_variable('includedir',
+ default_value: source_root / 'subprojects' / 'libplacebo' / 'src' / 'include')]
swift_targets = custom_target('swift_targets',
input: swift_sources,