Sha256: 2f64db6f4c7a642fd87e10c71bd395973e048bca99ed468c556ee82e9cffb196

Contents?: true

Size: 714 Bytes

Versions: 13

Compression:

Stored size: 714 Bytes

Contents

module Xcode
  
  #
  # PBXBuildFile are entries within the project that create a link between the
  # file and the PBXFileReference. One is created for each file added to a build
  # target.
  # 
  module BuildFile
    
    #
    # Create the properties hash for a build file with the given file reference
    # identifier.
    # 
    # @param [String] file_identifier the unique identifier for the file
    # @return [Hash] the properties hash for a default BuildFile.
    # 
    def self.buildfile(file_identifier,settings)
      properties = { 'isa' => "PBXBuildFile", 'fileRef' => file_identifier }
      properties.merge!('settings' => settings) unless settings.empty?
      properties
    end
    
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
xcoder-0.1.18 lib/xcode/build_file.rb
xcoder-0.1.15 lib/xcode/build_file.rb
xcoder-0.1.14 lib/xcode/build_file.rb
xcoder-0.1.13 lib/xcode/build_file.rb
xcoder-0.1.12 lib/xcode/build_file.rb
xcoder-0.1.11 lib/xcode/build_file.rb
xcoder-0.1.10 lib/xcode/build_file.rb
xcoder-0.1.9 lib/xcode/build_file.rb
xcoder-0.1.8 lib/xcode/build_file.rb
xcoder-0.1.7 lib/xcode/build_file.rb
xcoder-0.1.6 lib/xcode/build_file.rb
xcoder-0.1.4 lib/xcode/build_file.rb
xcoder-0.1.3 lib/xcode/build_file.rb