test cases/swift/9 sdk path from dep/meson.build
raw| 1 | project('swift sdk include dir test', 'swift') |
| 2 | |
| 3 | bar_dep = declare_dependency( |
| 4 | # Simulates including 'libffi' from brew as a dep via pkg-config |
| 5 | # Without a workaround that replaces all SDK paths with the most recent one, |
| 6 | # a compile error will occur due to conflicting definitions of the FFI module. |
| 7 | compile_args: '-I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi', |
| 8 | ) |
| 9 | |
| 10 | foo = static_library('foo', 'foo.swift', |
| 11 | dependencies: [bar_dep], |
| 12 | ) |