Sha256: bc747edebead8bc6e9f1cb0d7162cd112df8350b4b5e92b585813ffa30c9c9d9

Contents?: true

Size: 574 Bytes

Versions: 6

Compression:

Stored size: 574 Bytes

Contents

module Xcake
  # This build phase generator detects library
  # files and adds them to the frameworks build phase.
  #
  class LinkLibraryFileReferenceInstaller < FileReferenceInstaller
    def self.can_install_node(node)
      %w(.a .dylib .so .framework).include?(File.extname(node.path))
    end

    def add_file_reference_to_target(file_reference, target)
      target.frameworks_build_phases.add_file_reference(file_reference, true)
    end

    def visit_node(node)
      super

      # Ignore all files inside of libraries
      node.children = []
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
xcake-0.6.25 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.24 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.23 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.22 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.21 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.20 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb