Sha256: 6b50f96192dff7f6a0b7b552fec9dfe338aa09797efab137597594be8ea01e07
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
# frozen_string_literal: true require_relative("./flags") mruby_engine_gembox_path = if ENV["MRUBY_ENGINE_GEMBOX_PATH"] && File.exist?(ENV["MRUBY_ENGINE_GEMBOX_PATH"]) unless ENV["MRUBY_ENGINE_GEMBOX_PATH"].end_with?(".gembox") raise "`#{ENV["MRUBY_ENGINE_GEMBOX_PATH"]}` require `.gembox` extension" end Pathname.new ENV["MRUBY_ENGINE_GEMBOX_PATH"][0..-8] else Pathname.new(__FILE__).dirname.join("mruby_engine") end MRuby::Build.new do |conf| toolchain(:gcc) enable_debug conf.gembox(mruby_engine_gembox_path) conf.gem(core: "mruby-bin-mirb") conf.gem(core: "mruby-bin-mruby") conf.bins = %w[mrbc mruby] conf.cc do |cc| cc.flags += %w[-fPIC] cc.flags += Flags.cflags cc.defines += Flags.io_safe_defines end end MRuby::CrossBuild.new("sandbox") do |conf| toolchain(:gcc) enable_debug conf.gembox(mruby_engine_gembox_path) conf.bins = [] conf.cc do |cc| cc.flags += %w[-fPIC] cc.flags += Flags.cflags cc.defines += Flags.defines end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
script_core-0.0.1 | ext/enterprise_script_service/mruby_config.rb |