Sha256: 153012a13fa88d651118dd40ab6c40aa20440b1d5337fed4b9cb565f86fdb7ae

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

MRuby.each_target do
  file libmruby_static => libmruby_objs.flatten do |t|
    archiver.run t.name, t.prerequisites
  end

  file "#{build_dir}/lib/libmruby.flags.mak" => [__FILE__, libmruby_static] do |t|
    FileUtils.mkdir_p File.dirname t.name
    open(t.name, 'w') do |f|
      f.puts "MRUBY_CFLAGS = #{cc.all_flags}"

      gem_flags = gems.map { |g| g.linker.flags }
      gem_library_paths = gems.map { |g| g.linker.library_paths }
      f.puts "MRUBY_LDFLAGS = #{linker.all_flags(gem_library_paths, gem_flags)} #{linker.option_library_path % "#{build_dir}/lib"}"

      gem_flags_before_libraries = gems.map { |g| g.linker.flags_before_libraries }
      f.puts "MRUBY_LDFLAGS_BEFORE_LIBS = #{[linker.flags_before_libraries, gem_flags_before_libraries].flatten.join(' ')}"

      gem_libraries = gems.map { |g| g.linker.libraries }
      f.puts "MRUBY_LIBS = #{linker.option_library % 'mruby'} #{linker.library_flags(gem_libraries)}"

      f.puts "MRUBY_LIBMRUBY_PATH = #{libmruby_static}"
    end
  end
  task :all => "#{build_dir}/lib/libmruby.flags.mak"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
script_core-0.2.1 ext/enterprise_script_service/mruby/tasks/libmruby.rake
script_core-0.2.0 ext/enterprise_script_service/mruby/tasks/libmruby.rake
script_core-0.1.1 ext/enterprise_script_service/mruby/tasks/libmruby.rake
script_core-0.1.0 ext/enterprise_script_service/mruby/tasks/libmruby.rake