source: EcnlProtoTool/trunk/mruby-1.3.0/tasks/toolchains/openwrt.rake@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby
File size: 1.3 KB
Line 
1# usage of environmental variables to set the
2# cross compiling toolchain proper
3MRuby::Toolchain.new(:openwrt) do |conf|
4 [conf.cc, conf.objc, conf.asm].each do |cc|
5 cc.command = ENV['TARGET_CC']
6 cc.flags = ENV['TARGET_CFLAGS']
7 cc.include_paths = ["#{MRUBY_ROOT}/include"]
8 cc.defines = %w(DISABLE_GEMS)
9 cc.option_include_path = '-I%s'
10 cc.option_define = '-D%s'
11 cc.compile_options = '%{flags} -MMD -o %{outfile} -c %{infile}'
12 end
13
14 [conf.cxx].each do |cxx|
15 cxx.command = ENV['TARGET_CXX']
16 cxx.flags = ENV['TARGET_CXXFLAGS']
17 cxx.include_paths = ["#{MRUBY_ROOT}/include"]
18 cxx.defines = %w(DISABLE_GEMS)
19 cxx.option_include_path = '-I%s'
20 cxx.option_define = '-D%s'
21 cxx.compile_options = '%{flags} -MMD -o %{outfile} -c %{infile}'
22 end
23
24 conf.linker do |linker|
25 linker.command = ENV['TARGET_CC']
26 linker.flags = ENV['TARGET_LDFLAGS']
27 linker.libraries = %w(m)
28 linker.library_paths = []
29 linker.option_library = '-l%s'
30 linker.option_library_path = '-L%s'
31 linker.link_options = '%{flags} -o %{outfile} %{objs} %{flags_before_libraries} %{libs} %{flags_after_libraries}'
32 end
33
34 conf.archiver do |archiver|
35 archiver.command = ENV['TARGET_AR']
36 archiver.archive_options = 'rs %{outfile} %{objs}'
37 end
38end
Note: See TracBrowser for help on using the repository browser.