Sha256: ded671d7ca62e801fb2c65b1a628f1fe6da8cf15743a395f36a2dddb565601ef

Contents?: true

Size: 987 Bytes

Versions: 3

Compression:

Stored size: 987 Bytes

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
    #
    # @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

3 entries across 3 versions & 1 rubygems

Version Path
xcake-0.8.6 lib/xcake/dsl/target/sugar.rb
xcake-0.8.3 lib/xcake/dsl/target/sugar.rb
xcake-0.8.1 lib/xcake/target/sugar.rb