[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/bencode/mruby/master/src/mruby_core.rake [Back]  [Original]

MRuby.each_target do
  current_dir = File.dirname(__FILE__).relative_path_from(Dir.pwd)
  relative_from_root = File.dirname(__FILE__).relative_path_from(MRUBY_ROOT)
  current_build_dir = "#{build_dir}/#{relative_from_root}"

  lex_def = "#{current_dir}/lex.def"
  objs = Dir.glob("#{current_dir}/*.c").map { |f|
    next nil if cxx_abi_enabled? and f =~ /(codegen|error|vm).c$/
    objfile(f.pathmap("#{current_build_dir}/%n"))
  }.compact

  if cxx_abi_enabled?
    cxx_abi_dependency = %w(codegen error vm)
    cxx_abi_objs = cxx_abi_dependency.map { |v|
      src = "#{current_build_dir}/#{v}.cxx"
      file src => ["#{current_dir}/#{v}.c", __FILE__] do |t|
        File.open(t.name, 'w') do |f|
          f.write  ["#{current_dir}/parse.y"] do |t|
    yacc.run t.name, t.prerequisites.first
  end

  # Lexical analyzer
  file lex_def => "#{current_dir}/keywords" do |t|
    gperf.run t.name, t.prerequisites.first
  end
end

Web Proxy Viewer  |  New URL  |  Original Page