From f7402ff466d1426bd99eaac546d53708cc14c8b3 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Mon, 27 Nov 2023 14:58:38 -0600 Subject: [PATCH] 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. --- osdep/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,