lib/playersdk/compiler.rb in videojuicer-player-sdk-0.2 vs lib/playersdk/compiler.rb in videojuicer-player-sdk-0.3.5

- old
+ new

@@ -17,14 +17,10 @@ self.run_task(key, value) end puts "\n\n" puts "Completed #{tasks.length} tasks(s)" - - if self.config['player_src'] != '' - #self.compiler.compile_mxmlc(self.config['player_source'], 'src/Main.mxml', true, true, false, 'vj-player.swf', self.config['build_dir']) - end end def run_task(key, value) puts "Running task #{key} in #{value['src']}" @@ -34,10 +30,12 @@ when "engine" self.compiler.compile_compc(value['src'], value['sdk'], value['engine'], value['libs'], value['target'], self.config['build_dir'], self.config['deployment_url']) puts "Optimizing engine swf .." - self.compiler.optimize_swc(value['target'], self.config['build_dir']) + optimize_target = value['optimize_target'] != '' ? value['optimize_target'] : value['target'] + + self.compiler.optimize_swc(value['target'], optimize_target, self.config['build_dir']) when "addon" self.compiler.compile_mxmlc(value['src'], value['main'], value['sdk'], value['engine'], value['libs'], value['target'], self.config['build_dir'], self.config['deployment_url']) when "framework" puts "Moving Flex framework RSLs to #{config['build_dir']}" \ No newline at end of file