mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-05-16 09:59:39 +08:00
[vendor] Default to :cflags option for BS generation.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-388.
This commit is contained in:
2
NEWS
2
NEWS
@@ -21,6 +21,8 @@
|
||||
meant to be embedded inside the application.
|
||||
E.g. `/Library/Frameworks/iTunesLibrary.framework'.
|
||||
* Made `vendor_project' accept glob patterns for the `source_files' option.
|
||||
* Made BridgeSupport metadata generation for `vendor' projects by default use
|
||||
the `:cflags` option.
|
||||
|
||||
= RubyMotion 2.19 =
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ EOS
|
||||
unless headers.empty?
|
||||
bs_file = File.basename(@path) + '.bridgesupport'
|
||||
if !File.exist?(bs_file) or headers.any? { |h| File.mtime(h) > File.mtime(bs_file) }
|
||||
bs_cflags = (opts.delete(:bridgesupport_cflags) or '')
|
||||
bs_cflags = (opts.delete(:bridgesupport_cflags) or opts.delete(:cflags) or '')
|
||||
bs_exceptions = (opts.delete(:bridgesupport_exceptions) or [])
|
||||
@config.gen_bridge_metadata(platform, headers, bs_file, bs_cflags, bs_exceptions)
|
||||
end
|
||||
@@ -203,7 +203,7 @@ EOS
|
||||
project_dir = File.expand_path(@config.project_dir)
|
||||
headers = Dir.glob(File.join(project_dir, headers_dir, '**/*.h'))
|
||||
if !File.exist?(bs_file) or headers.any? { |x| File.mtime(x) > File.mtime(bs_file) }
|
||||
bs_cflags = (opts.delete(:bridgesupport_cflags) or '')
|
||||
bs_cflags = (opts.delete(:bridgesupport_cflags) or opts.delete(:cflags) or '')
|
||||
bs_exceptions = (opts.delete(:bridgesupport_exceptions) or [])
|
||||
@config.gen_bridge_metadata(platform, headers, bs_file, bs_cflags, bs_exceptions)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user