Sha256: 37f7ede8d9a652e3f46a21c6b9869eeb5ea76a29d3b245f3fb205eb82e86f5ad

Contents?: true

Size: 486 Bytes

Versions: 6

Compression:

Stored size: 486 Bytes

Contents

module Xcake
  # This build phase generator detects source
  # files and adds them to the compile build phase.
  #
  class CompileSourceFileReferenceInstaller < FileReferenceInstaller
    def self.can_install_node(node)
      !File.directory?(node.path) &&
        %w(.c .m .mm .cpp .swift).include?(File.extname(node.path))
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

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