Skip to content

Instantly share code, notes, and snippets.

@MarkVillacampa
Created September 1, 2014 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarkVillacampa/eafdb0a81c0b9c953256 to your computer and use it in GitHub Desktop.
Save MarkVillacampa/eafdb0a81c0b9c953256 to your computer and use it in GitHub Desktop.
Motion-coderunner: use bridge support from an arbitrary header file
header_file = "mach-o/dyld.h"
bridgesupport_file = "#{header_file.tr('/', '_').chomp('.h')}.bridgesupport"
system("/usr/bin/gen_bridge_metadata --format complete --64-bit --cflags -I/usr/include #{header_file} > #{bridgesupport_file}")
bs_frameworks << " --uses-bs #{File.join(Dir.pwd, bridgesupport_file)}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment