class Xcake::HeadersBuildPhase
This class is used to represent a copy headers build phase
Attributes
private[RW]
project[RW]
public[RW]
Public Class Methods
new() { |self| ... }
click to toggle source
# File lib/xcake/dsl/build_phase/headers_build_phase.rb, line 12 def initialize @public = [] @private = [] @project = [] yield(self) if block_given? end
Public Instance Methods
build_phase_type()
click to toggle source
# File lib/xcake/dsl/build_phase/headers_build_phase.rb, line 20 def build_phase_type Xcodeproj::Project::Object::PBXHeadersBuildPhase end
configure_native_build_phase(native_build_phase, context)
click to toggle source
# File lib/xcake/dsl/build_phase/headers_build_phase.rb, line 24 def configure_native_build_phase(native_build_phase, context) @public.each do |file| file_reference = context.file_reference_for_path(file) build_file = native_build_phase.add_file_reference(file_reference) build_file.settings = PUBLIC_HEADER_ATTRIBUTE end @private.each do |file| file_reference = context.file_reference_for_path(file) build_file = native_build_phase.add_file_reference(file_reference) build_file.settings = PRIVATE_HEADER_ATTRIBUTE end @project.each do |file| file_reference = context.file_reference_for_path(file) native_build_phase.add_file_reference(file_reference) end end
to_s()
click to toggle source
# File lib/xcake/dsl/build_phase/headers_build_phase.rb, line 43 def to_s 'BuildPhase<Copy Headers>' end