Sha256: 6eafcc8129f8c231ec7265cbfaadb031aa3b07209f959e6784dd407f30557fd8

Contents?: true

Size: 463 Bytes

Versions: 10

Compression:

Stored size: 463 Bytes

Contents

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

    def visit_target(target)
      system_libraries = target.system_libraries.to_a

      return if 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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
xcake-0.13.0 lib/xcake/generator/target_library_generator.rb
xcake-0.12.1 lib/xcake/generator/target_library_generator.rb
xcake-0.12.0 lib/xcake/generator/target_library_generator.rb
xcake-0.11.0 lib/xcake/generator/target_library_generator.rb
xcake-0.10.0 lib/xcake/generator/target_library_generator.rb
xcake-0.9.4 lib/xcake/generator/target_library_generator.rb
xcake-0.9.3 lib/xcake/generator/target_library_generator.rb
xcake-0.9.2 lib/xcake/generator/target_library_generator.rb
xcake-0.9.1 lib/xcake/generator/target_library_generator.rb
xcake-0.9.0 lib/xcake/generator/target_library_generator.rb