Class: ObjectFile

Inherits:
Object
  • Object
show all
Defined in:
lib/rakepp/objectfile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(compiler, source, targetDir, includes, privateDefines = []) ⇒ ObjectFile

Returns a new instance of ObjectFile.



4
5
6
7
8
9
10
# File 'lib/rakepp/objectfile.rb', line 4

def initialize(compiler, source, targetDir, includes, privateDefines=[])
  @source = source
  @targetDir = targetDir
  @includes = includes
  @privateDefines = privateDefines
  compiler.add_tasks(self)
end

Instance Attribute Details

#includesObject (readonly)

Returns the value of attribute includes.



2
3
4
# File 'lib/rakepp/objectfile.rb', line 2

def includes
  @includes
end

#outFileObject

Returns the value of attribute outFile.



2
3
4
# File 'lib/rakepp/objectfile.rb', line 2

def outFile
  @outFile
end

#privateDefinesObject (readonly)

Returns the value of attribute privateDefines.



2
3
4
# File 'lib/rakepp/objectfile.rb', line 2

def privateDefines
  @privateDefines
end

#sourceObject (readonly)

Returns the value of attribute source.



2
3
4
# File 'lib/rakepp/objectfile.rb', line 2

def source
  @source
end

#targetDirObject (readonly)

Returns the value of attribute targetDir.



2
3
4
# File 'lib/rakepp/objectfile.rb', line 2

def targetDir
  @targetDir
end

Instance Method Details

#dep_fileObject



12
13
14
# File 'lib/rakepp/objectfile.rb', line 12

def dep_file()
  return "#{outFile}.dependencies"
end