class Rmk::CXX

C++ compiler tool

Attributes

cxx[RW]

C++ compiler binary

Public Class Methods

new() click to toggle source
Calls superclass method Rmk::ClikeProcessor.new
# File tools/cxx.rb, line 23
def initialize
  super
  data = tool_params(:CXX, generator.configuration)
  @flags.add(data[:flags])
  @cxx = data[:cxx]
end

Public Instance Methods

command() click to toggle source
# File tools/cxx.rb, line 30
def command
  '$cxx -MMD -MT $out -MF $out.dep $cxxflags -o $out -c $in'
end
cxx=(cmd) click to toggle source
# File tools/cxx.rb, line 16
def cxx=(cmd)
  @cxx=cmd
  @vendor=nil
  ld.ld=@cxx.dup
  @cxx
end
ninja_variables(writer = generator.ninja) click to toggle source
# File tools/cxx.rb, line 34
def ninja_variables(writer = generator.ninja)
  writer.comment 'CXX'
  writer.variable('cxx', @cxx)
  writer.variable('cxxflags',
                  [flags.text, definitions_text, include_paths_text])
  writer.newline
end
source_pattern() click to toggle source
# File tools/cxx.rb, line 42
def source_pattern
  /\.(cc|cxx|cpp|C)$/
end