Class: SourceLib
- Inherits:
-
Object
- Object
- SourceLib
- Defined in:
- lib/rakepp/sourcelib.rb
Instance Attribute Summary collapse
-
#forceLib ⇒ Object
readonly
Returns the value of attribute forceLib.
-
#includes ⇒ Object
readonly
Returns the value of attribute includes.
-
#libs ⇒ Object
readonly
Returns the value of attribute libs.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#outFile ⇒ Object
Returns the value of attribute outFile.
-
#privateDefines ⇒ Object
Returns the value of attribute privateDefines.
-
#sources ⇒ Object
readonly
Returns the value of attribute sources.
Instance Method Summary collapse
-
#initialize(compiler, base, name, sources, libs, includes, privateDefines = [], forceLib = false) ⇒ SourceLib
constructor
A new instance of SourceLib.
- #tr_includes ⇒ Object
Constructor Details
#initialize(compiler, base, name, sources, libs, includes, privateDefines = [], forceLib = false) ⇒ SourceLib
Returns a new instance of SourceLib.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rakepp/sourcelib.rb', line 4 def initialize(compiler, base, name, sources, libs, includes, privateDefines=[], forceLib=false) @name = name @sources = sources @libs = libs @includes = includes.collect do |i| if (i[0].chr == '/') i else File.join(base, i) end end @privateDefines = privateDefines @forceLib = forceLib compiler.add_tasks(self) end |
Instance Attribute Details
#forceLib ⇒ Object (readonly)
Returns the value of attribute forceLib.
2 3 4 |
# File 'lib/rakepp/sourcelib.rb', line 2 def forceLib @forceLib end |
#includes ⇒ Object (readonly)
Returns the value of attribute includes.
2 3 4 |
# File 'lib/rakepp/sourcelib.rb', line 2 def includes @includes end |
#libs ⇒ Object (readonly)
Returns the value of attribute libs.
2 3 4 |
# File 'lib/rakepp/sourcelib.rb', line 2 def libs @libs end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/rakepp/sourcelib.rb', line 2 def name @name end |
#outFile ⇒ Object
Returns the value of attribute outFile.
2 3 4 |
# File 'lib/rakepp/sourcelib.rb', line 2 def outFile @outFile end |
#privateDefines ⇒ Object
Returns the value of attribute privateDefines.
2 3 4 |
# File 'lib/rakepp/sourcelib.rb', line 2 def privateDefines @privateDefines end |
#sources ⇒ Object (readonly)
Returns the value of attribute sources.
2 3 4 |
# File 'lib/rakepp/sourcelib.rb', line 2 def sources @sources end |