mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-08 17:56:38 +08:00
fix bugs in the vendoring code
This commit is contained in:
@@ -8,7 +8,7 @@ module Motion; module Project;
|
||||
include Rake::DSL if Rake.const_defined?(:DSL)
|
||||
|
||||
def initialize(path, type, config, opts)
|
||||
@path = path
|
||||
@path = path.to_s
|
||||
@type = type
|
||||
@config = config
|
||||
@opts = opts
|
||||
@@ -74,7 +74,7 @@ EOS
|
||||
if File.exist?(build_dir)
|
||||
libname = 'lib' + File.basename(@path) + '.a'
|
||||
Dir.chdir(build_dir) do
|
||||
objs = Dir.glob('*/**/*.o')
|
||||
objs = Dir.glob('**/*.o')
|
||||
FileUtils.rm_rf libname
|
||||
unless objs.empty?
|
||||
sh "#{@config.locate_binary('ar')} cq #{libname} #{objs.join(' ')}"
|
||||
|
||||
Reference in New Issue
Block a user