Class: Phoenx::TestableTarget

Inherits:
AbstractTarget show all
Defined in:
lib/phoenx/entities/target.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractTarget

#config_files, #dependencies, #frameworks, #libraries, #name, #post_build_scripts, #pre_build_scripts, #resources, #sources, #support_files, #system_frameworks, #system_libraries

Instance Method Summary collapse

Methods inherited from AbstractTarget

#dependency

Constructor Details

#initialize(name, type, platform, version) {|_self| ... } ⇒ TestableTarget

Returns a new instance of TestableTarget.

Yields:

  • (_self)

Yield Parameters:



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/phoenx/entities/target.rb', line 58

def initialize(name, type, platform, version)

  super()
  @test_targets = []
  @schemes = []
  @name = name
  @target_type = type
  @platform = platform
  @version = version
  @sub_projects = []
  @private_headers = []
  @project_headers = []
  @public_headers = []
  
  yield(self)

end

Instance Attribute Details

#platformObject

Returns the value of attribute platform.



49
50
51
# File 'lib/phoenx/entities/target.rb', line 49

def platform
  @platform
end

#private_headersObject

Returns the value of attribute private_headers.



52
53
54
# File 'lib/phoenx/entities/target.rb', line 52

def private_headers
  @private_headers
end

#project_headersObject

Returns the value of attribute project_headers.



53
54
55
# File 'lib/phoenx/entities/target.rb', line 53

def project_headers
  @project_headers
end

#public_headersObject

Returns the value of attribute public_headers.



54
55
56
# File 'lib/phoenx/entities/target.rb', line 54

def public_headers
  @public_headers
end

#schemesObject (readonly)

Returns the value of attribute schemes.



46
47
48
# File 'lib/phoenx/entities/target.rb', line 46

def schemes
  @schemes
end

#sub_projectsObject

Returns the value of attribute sub_projects.



51
52
53
# File 'lib/phoenx/entities/target.rb', line 51

def sub_projects
  @sub_projects
end

#target_typeObject (readonly)

Returns the value of attribute target_type.



50
51
52
# File 'lib/phoenx/entities/target.rb', line 50

def target_type
  @target_type
end

#test_targetsObject (readonly)

Returns the value of attribute test_targets.



45
46
47
# File 'lib/phoenx/entities/target.rb', line 45

def test_targets
  @test_targets
end

#versionObject

Returns the value of attribute version.



47
48
49
# File 'lib/phoenx/entities/target.rb', line 47

def version
  @version
end

Instance Method Details

#scheme(name, &block) ⇒ Object



85
86
87
88
89
# File 'lib/phoenx/entities/target.rb', line 85

def scheme(name, &block)

  @schemes << Phoenx::Scheme.new(name, block)

end

#test_target(name, &block) ⇒ Object



76
77
78
79
80
81
82
83
# File 'lib/phoenx/entities/target.rb', line 76

def test_target(name, &block)

  target = Phoenx::TestTarget.new &block
  target.name = name
  
  @test_targets << target

end