From eefe51b9d6da91705ee5c63c8a6e16f32dacca65 Mon Sep 17 00:00:00 2001 From: "Jack Chen (chendo)" Date: Tue, 13 Aug 2013 16:34:02 +1000 Subject: [PATCH] Add ability to pass in :products option to vendored xcode projects --- lib/motion/project/vendor.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/motion/project/vendor.rb b/lib/motion/project/vendor.rb index 166e5873..e103cb10 100644 --- a/lib/motion/project/vendor.rb +++ b/lib/motion/project/vendor.rb @@ -202,7 +202,8 @@ def build_xcode(platform, opts) end @bs_files = Dir.glob('*.bridgesupport').map { |x| File.expand_path(x) } - @libs = Dir.glob("#{build_dir}/*.a").map { |x| File.expand_path(x) } + products = opts[:products] && opts[:products].map { |product| "#{build_dir}/#{product}" } + @libs = (products || Dir.glob("#{build_dir}/*.a")).map { |x| File.expand_path(x) } end end