Last change
on this file since 446 was 439, checked in by coas-nagasima, 4 years ago |
mrubyを2.1.1に更新
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-ruby;charset=UTF-8
|
File size:
1.0 KB
|
Rev | Line | |
---|
[270] | 1 | MRuby.each_target do
|
---|
[439] | 2 | file libmruby_static => libmruby_objs.flatten do |t|
|
---|
[270] | 3 | archiver.run t.name, t.prerequisites
|
---|
| 4 | end
|
---|
| 5 |
|
---|
[439] | 6 | file "#{build_dir}/lib/libmruby.flags.mak" => [__FILE__, libmruby_static] do |t|
|
---|
| 7 | mkdir_p File.dirname t.name
|
---|
[270] | 8 | open(t.name, 'w') do |f|
|
---|
[331] | 9 | f.puts "MRUBY_CFLAGS = #{cc.all_flags}"
|
---|
[270] | 10 |
|
---|
| 11 | gem_flags = gems.map { |g| g.linker.flags }
|
---|
| 12 | gem_library_paths = gems.map { |g| g.linker.library_paths }
|
---|
[331] | 13 | f.puts "MRUBY_LDFLAGS = #{linker.all_flags(gem_library_paths, gem_flags)} #{linker.option_library_path % "#{build_dir}/lib"}"
|
---|
[270] | 14 |
|
---|
| 15 | gem_flags_before_libraries = gems.map { |g| g.linker.flags_before_libraries }
|
---|
[331] | 16 | f.puts "MRUBY_LDFLAGS_BEFORE_LIBS = #{[linker.flags_before_libraries, gem_flags_before_libraries].flatten.join(' ')}"
|
---|
[270] | 17 |
|
---|
| 18 | gem_libraries = gems.map { |g| g.linker.libraries }
|
---|
[331] | 19 | f.puts "MRUBY_LIBS = #{linker.option_library % 'mruby'} #{linker.library_flags(gem_libraries)}"
|
---|
| 20 |
|
---|
[439] | 21 | f.puts "MRUBY_LIBMRUBY_PATH = #{libmruby_static}"
|
---|
[270] | 22 | end
|
---|
| 23 | end
|
---|
| 24 | task :all => "#{build_dir}/lib/libmruby.flags.mak"
|
---|
| 25 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.