Sha256: 423cf1debe540e7f991f16ef88cc7026ef988a65bd4c88bc56b54f282fdfce3c

Contents?: true

Size: 479 Bytes

Versions: 15

Compression:

Stored size: 479 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)
      !File.directory?(node.path) &&
        %w(.a .dylib .so).include?(File.extname(node.path))
    end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
xcake-0.6.19 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.18 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.17 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.16 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.14 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.13 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.12 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.11 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.10 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.9 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.8 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.7 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.6 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.5 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb
xcake-0.6.4 lib/xcake/file_reference_installer/link_library_file_reference_installer.rb