Skip to content

Instantly share code, notes, and snippets.

@shawn42
Created May 4, 2012 20:13
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 shawn42/2597428 to your computer and use it in GitHub Desktop.
Save shawn42/2597428 to your computer and use it in GitHub Desktop.
vendor_fix_ruby_motion
if !File.exist?(bs_file) or headers.any? { |h| File.mtime(h) > File.mtime(bs_file) }
includes = headers.map { |p| "-I" + File.dirname(p) }.uniq.join(' ')
# ! gen_bridge_metadata DOES NOT support --no-64-bit
#sh "/usr/bin/gen_bridge_metadata --format complete --no-64-bit --cflags \"-I. #{includes}\" #{headers.join(' ')} -o \"#{bs_file}\""
sh "/usr/bin/gen_bridge_metadata --format complete --cflags \"-I. #{includes}\" #{headers.join(' ')} -o \"#{bs_file}\""
end
bs_files << bs_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment