Sha256: b4e30af5adc70e79a7b28d02fdfa3509f8d5ae9ea47aab68db91b96ee6220577

Contents?: true

Size: 506 Bytes

Versions: 12

Compression:

Stored size: 506 Bytes

Contents

module Xcake
  module Generator
    # This build phase generator detects source
    # files and adds them to the compile build phase.
    #
    class CompileSourceBuildPhase < BuildPhase

      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)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
xcake-0.5.3 lib/xcake/generator/build_phase/compile_source_build_phase.rb
xcake-0.5.2 lib/xcake/generator/build_phase/compile_source_build_phase.rb
xcake-0.5.1 lib/xcake/generator/build_phase/compile_source_build_phase.rb
xcake-0.5.0 lib/xcake/generator/build_phase/compile_source_build_phase.rb
xcake-0.4.8 lib/xcake/generator/build_phase/compile_source_build_phase.rb
xcake-0.4.7 lib/xcake/generator/build_phase/compile_source_build_phase.rb
xcake-0.4.6 lib/xcake/generator/build_phase/compile_source_build_phase.rb
xcake-0.4.5 lib/xcake/generator/build_phase/compile_source_build_phase.rb
xcake-0.4.4 lib/xcake/generator/build_phase/compile_source_build_phase.rb
xcake-0.4.3 lib/xcake/generator/build_phase/compile_source_build_phase.rb
xcake-0.4.2 lib/xcake/generator/build_phase/compile_source_build_phase.rb
xcake-0.4.1 lib/xcake/generator/build_phase/compile_source_build_phase.rb