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:



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

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.



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

def excluded_private_headers
  @excluded_private_headers
end

#excluded_project_headersObject

Returns the value of attribute excluded_project_headers.



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

def excluded_project_headers
  @excluded_project_headers
end

#excluded_public_headersObject

Returns the value of attribute excluded_public_headers.



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

def excluded_public_headers
  @excluded_public_headers
end

#module_nameObject

Returns the value of attribute module_name.



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

def module_name
  @module_name
end

#platformObject

Returns the value of attribute platform.



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

def platform
  @platform
end

#private_headersObject

Returns the value of attribute private_headers.



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

def private_headers
  @private_headers
end

#project_headersObject

Returns the value of attribute project_headers.



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

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.



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

def schemes
  @schemes
end

#sub_projectsObject

Returns the value of attribute sub_projects.



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

def sub_projects
  @sub_projects
end

#target_typeObject (readonly)

Returns the value of attribute target_type.



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

def target_type
  @target_type
end

#test_targetsObject (readonly)

Returns the value of attribute test_targets.



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

def test_targets
  @test_targets
end

#umbrella_headerObject

Returns the value of attribute umbrella_header.



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

def umbrella_header
  @umbrella_header
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#scheme(name, &block) ⇒ Object



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

def scheme(name, &block)
	@schemes << Phoenx::Scheme.new(name, block)
end

#test_target(name, &block) ⇒ Object



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

def test_target(name, &block)
	target = Phoenx::TestTarget.new &block
	target.name = name
	@test_targets << target
end