Class: Souyuz::BuildCommandGenerator
- Inherits:
-
Object
- Object
- Souyuz::BuildCommandGenerator
- Defined in:
- lib/souyuz/generators/build_command_generator.rb
Overview
Responsible for building the fully working build command
Class Method Summary collapse
- .build_targets ⇒ Object
- .compiler_bin ⇒ Object
- .generate ⇒ Object
- .options ⇒ Object
- .pipe ⇒ Object
- .prefix ⇒ Object
- .project ⇒ Object
- .targets ⇒ Object
Class Method Details
.build_targets ⇒ Object
40 41 42 |
# File 'lib/souyuz/generators/build_command_generator.rb', line 40 def build_targets Souyuz.config[:build_target].map! { |t| "-t:#{t}" } end |
.compiler_bin ⇒ Object
20 21 22 |
# File 'lib/souyuz/generators/build_command_generator.rb', line 20 def compiler_bin Souyuz.config[:compiler_bin] end |
.generate ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/souyuz/generators/build_command_generator.rb', line 5 def generate parts = prefix parts << compiler_bin parts += parts += targets parts += project parts += pipe parts end |
.options ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/souyuz/generators/build_command_generator.rb', line 24 def config = Souyuz.config = [] << config[:extra_build_options] if config[:extra_build_options] << "-p:Configuration=#{config[:build_configuration]}" if config[:build_configuration] << "-p:Platform=#{config[:build_platform]}" if Souyuz.project.ios? and config[:build_platform] << "-p:BuildIpa=true" if Souyuz.project.ios? if config[:solution_path] solution_dir = File.dirname(config[:solution_path]) << "-p:SolutionDir=\"#{solution_dir}/\"" end end |
.pipe ⇒ Object
61 62 63 64 65 |
# File 'lib/souyuz/generators/build_command_generator.rb', line 61 def pipe pipe = [] pipe end |
.prefix ⇒ Object
16 17 18 |
# File 'lib/souyuz/generators/build_command_generator.rb', line 16 def prefix [""] end |
.project ⇒ Object
52 53 54 55 56 57 58 59 |
# File 'lib/souyuz/generators/build_command_generator.rb', line 52 def project path = [] path << "\"#{Souyuz.config[:project_path]}\"" # if Souyuz.project.android? # path << Souyuz.config[:solution_path] if Souyuz.project.ios? or Souyuz.project.osx? path end |