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, #excluded_resources, #excluded_sources, #excluded_support_files, #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:



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/phoenx/entities/target.rb', line 69

def initialize(name, type, platform, version)

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

end

Instance Attribute Details

#excluded_private_headersObject

Returns the value of attribute excluded_private_headers.



59
60
61
# File 'lib/phoenx/entities/target.rb', line 59

def excluded_private_headers
  @excluded_private_headers
end

#excluded_project_headersObject

Returns the value of attribute excluded_project_headers.



61
62
63
# File 'lib/phoenx/entities/target.rb', line 61

def excluded_project_headers
  @excluded_project_headers
end

#excluded_public_headersObject

Returns the value of attribute excluded_public_headers.



63
64
65
# File 'lib/phoenx/entities/target.rb', line 63

def excluded_public_headers
  @excluded_public_headers
end

#module_nameObject

Returns the value of attribute module_name.



65
66
67
# File 'lib/phoenx/entities/target.rb', line 65

def module_name
  @module_name
end

#platformObject

Returns the value of attribute platform.



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

def platform
  @platform
end

#private_headersObject

Returns the value of attribute private_headers.



58
59
60
# File 'lib/phoenx/entities/target.rb', line 58

def private_headers
  @private_headers
end

#project_headersObject

Returns the value of attribute project_headers.



60
61
62
# File 'lib/phoenx/entities/target.rb', line 60

def project_headers
  @project_headers
end

#public_headersObject

Returns the value of attribute public_headers.



62
63
64
# File 'lib/phoenx/entities/target.rb', line 62

def public_headers
  @public_headers
end

#schemesObject (readonly)

Returns the value of attribute schemes.



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

def schemes
  @schemes
end

#sub_projectsObject

Returns the value of attribute sub_projects.



57
58
59
# File 'lib/phoenx/entities/target.rb', line 57

def sub_projects
  @sub_projects
end

#target_typeObject (readonly)

Returns the value of attribute target_type.



56
57
58
# File 'lib/phoenx/entities/target.rb', line 56

def target_type
  @target_type
end

#test_targetsObject (readonly)

Returns the value of attribute test_targets.



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

def test_targets
  @test_targets
end

#umbrella_headerObject

Returns the value of attribute umbrella_header.



64
65
66
# File 'lib/phoenx/entities/target.rb', line 64

def umbrella_header
  @umbrella_header
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#scheme(name, &block) ⇒ Object



99
100
101
102
103
# File 'lib/phoenx/entities/target.rb', line 99

def scheme(name, &block)

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

end

#test_target(name, &block) ⇒ Object



90
91
92
93
94
95
96
97
# File 'lib/phoenx/entities/target.rb', line 90

def test_target(name, &block)

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

end