mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-05 09:39:14 +08:00
move ctags to basic project rakefile so that it works with osx
This commit is contained in:
@@ -56,3 +56,15 @@ task :config do
|
||||
puts key.ljust(22) + " : #{map[key].inspect}"
|
||||
end
|
||||
end
|
||||
|
||||
desc "Generate ctags"
|
||||
task :ctags do
|
||||
tags_file = 'tags'
|
||||
config = App.config
|
||||
if !File.exist?(tags_file) or File.mtime(config.project_file) > File.mtime(tags_file)
|
||||
bs_files = config.bridgesupport_files + config.vendor_projects.map { |p| Dir.glob(File.join(p.path, '*.bridgesupport')) }.flatten
|
||||
ctags = File.join(config.bindir, 'ctags')
|
||||
config = File.join(config.motiondir, 'data', 'bridgesupport-ctags.cfg')
|
||||
sh "#{ctags} --options=\"#{config}\" #{bs_files.map { |x| '"' + x + '"' }.join(' ')}"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -139,18 +139,6 @@ task :device => :archive do
|
||||
sh "#{env} #{deploy} #{flags} \"#{device_id}\" \"#{App.config.archive}\""
|
||||
end
|
||||
|
||||
desc "Generate ctags"
|
||||
task :ctags do
|
||||
tags_file = 'tags'
|
||||
config = App.config
|
||||
if !File.exist?(tags_file) or File.mtime(config.project_file) > File.mtime(tags_file)
|
||||
bs_files = config.bridgesupport_files + config.vendor_projects.map { |p| Dir.glob(File.join(p.path, '*.bridgesupport')) }.flatten
|
||||
ctags = File.join(config.bindir, 'ctags')
|
||||
config = File.join(config.motiondir, 'data', 'bridgesupport-ctags.cfg')
|
||||
sh "#{ctags} --options=\"#{config}\" #{bs_files.map { |x| '"' + x + '"' }.join(' ')}"
|
||||
end
|
||||
end
|
||||
|
||||
desc "Create a .a static library"
|
||||
task :static do
|
||||
libs = %w{iPhoneSimulator iPhoneOS}.map do |platform|
|
||||
|
||||
Reference in New Issue
Block a user