Sha256: 32ea5d7f7b77b5b145f2710065f25c9aaa7360e71c8926b9a9d9c81729429766

Contents?: true

Size: 476 Bytes

Versions: 8

Compression:

Stored size: 476 Bytes

Contents

module Xcake
  class TargetLibraryGenerator < Generator
    def self.dependencies
      [TargetGenerator, ConfigurationGenerator]
    end

    def visit_target(target)

      system_libraries = target.system_libraries.to_a

      unless system_libraries.empty?
        EventHooks.run_hook :before_adding_system_library, target

        native_target = @context.native_object_for(target)
        native_target.add_system_libraries(system_libraries)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcake-0.8.13 lib/xcake/generator/target_library_generator.rb
xcake-0.8.12 lib/xcake/generator/target_library_generator.rb
xcake-0.8.10 lib/xcake/generator/target_library_generator.rb
xcake-0.8.9 lib/xcake/generator/target_library_generator.rb
xcake-0.8.8 lib/xcake/generator/target_library_generator.rb
xcake-0.8.7 lib/xcake/generator/target_library_generator.rb
xcake-0.8.6 lib/xcake/generator/target_library_generator.rb
xcake-0.8.3 lib/xcake/generator/target_library_generator.rb