mirror of https://github.com/mpv-player/mpv
wscript_build: fixup swift include parameter to point to source root
Fixes compilation of the swift components with `--variant="random_string"`, in which case "." is not the source directory.
This commit is contained in:
parent
c75f98e3ab
commit
4bf9a78b36
|
@ -150,8 +150,8 @@ def build(ctx):
|
||||||
|
|
||||||
cmd = ('%s %s -module-name macOS_swift -emit-module-path %s '
|
cmd = ('%s %s -module-name macOS_swift -emit-module-path %s '
|
||||||
'-import-objc-header %s -emit-objc-header-path %s -o %s %s '
|
'-import-objc-header %s -emit-objc-header-path %s -o %s %s '
|
||||||
'-I. -I..') % (ctx.env.SWIFT, ctx.env.SWIFT_FLAGS, module,
|
'-I. -I%s') % (ctx.env.SWIFT, ctx.env.SWIFT_FLAGS, module,
|
||||||
bridge, header, tgt, src)
|
bridge, header, tgt, src, ctx.srcnode.abspath())
|
||||||
return task.exec_command(cmd)
|
return task.exec_command(cmd)
|
||||||
|
|
||||||
if ctx.dependency_satisfied('macos-cocoa-cb'):
|
if ctx.dependency_satisfied('macos-cocoa-cb'):
|
||||||
|
|
Loading…
Reference in New Issue