Sha256: 28ead8a528d1ca9c1f5a59c4b4c4a0292c68cf0e394f2950515153fa22eb6361
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
require 'xcodeproj' module Xcake class Target # Creates a new Copy Headers build phase for the # target # # @param [Proc] block # an optional block that configures the build phase through the DSL. # # @return [HeadersBuildPhase] the new xcode build phase # def headers_build_phase(&block) phase = HeadersBuildPhase.new(&block) build_phases << phase phase end # Creates a new Shell Script build phase for the # target before all of the other build phases # # @param [String] name # the name to use for the build phase # # @param [Proc] block # an optional block that configures the build phase through the DSL. # # @return [ShellScriptBuildPhase] the new xcode build phase # def pre_shell_script_build_phase(name, script, &block) phase = ShellScriptBuildPhase.new(&block) phase.name = name phase.script = script pinned_build_phases << phase phase end # Creates a new Shell Script build phase for the # target # # @param [String] name # the name to use for the build phase # # @param [Proc] block # an optional block that configures the build phase through the DSL. # # @return [ShellScriptBuildPhase] the new xcode build phase # def shell_script_build_phase(name, script, &block) phase = ShellScriptBuildPhase.new(&block) phase.name = name phase.script = script build_phases << phase phase end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xcake-0.8.7 | lib/xcake/dsl/target/sugar.rb |