Method: Guard::Comet#compile_command

Defined in:
lib/guard/comet.rb

#compile_commandObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/guard/comet.rb', line 14

def compile_command
  gemspec  = Gem::Specification.find_all_by_name("comet-cpp").first
  compiler = "#{gemspec.bin_dir}/comet-make"
  command = "#{compiler}"
  command += " -c '#{@options[:cheerp_path]}'" unless @options[:cheerp_path].nil?
  command += " -i '#{@options[:cmakelists]}'"  unless @options[:cmakelists].nil?
  command += " -o '#{@options[:output]}'"      unless @options[:output].nil?
  command += " -g" if @options[:debug] == true
  command
end