going to drop mri for mruby, added some files will be used soon. i'll try to modify our CMakeLists.txt tommorow for mruby building

This commit is contained in:
meowtech 2026-06-01 03:36:27 +00:00
parent 91e1617c04
commit a77834f66e
7 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,19 @@
# check for flags here:
# default configuration: https://github.com/mruby/mruby/blob/master/build_config/default.rb
# compilation guide: https://github.com/mruby/mruby/blob/master/doc/guides/compile.md
MRuby::Build.new do |conf|
conf.toolchain
# our gems
conf.gem '../../mrbgems/core'
conf.gem '../../mrbgems/oneshot'
conf.gem '../../mrbgems/sunshine' # :3
# core gems
conf.gem :core => 'mruby-bin-config' # mruby-config would be used in CMakeLists.txt
if ENV.include?('DEBUG')
conf.enable_debug
end
end

6
mrbgems/core/mrbgem.rake Normal file
View file

@ -0,0 +1,6 @@
MRuby::Gem::Specification.new('core') do |spec|
spec.license = 'GPLv2'
spec.summary = "Bindings for MKXP engine itself"
spec.objs = Dir.glob("#{dir}/src/*.{c,cpp,m,asm,S}").map { |f| objfile(f.relative_path_from(dir).pathmap("#{build_dir}/%X")) }
end

View file

@ -0,0 +1 @@
nothing here for now

View file

@ -0,0 +1,6 @@
MRuby::Gem::Specification.new('oneshot') do |spec|
spec.license = 'GPLv2'
spec.summary = "Bindings for OneShot"
spec.objs = Dir.glob("#{dir}/src/*.{c,cpp,m,asm,S}").map { |f| objfile(f.relative_path_from(dir).pathmap("#{build_dir}/%X")) }
end

View file

@ -0,0 +1 @@
nothing here for now

View file

@ -0,0 +1,6 @@
MRuby::Gem::Specification.new('sunshine') do |spec|
spec.license = 'GPLv2'
spec.summary = "Bindings for Oneshot: Sunshine"
spec.objs = Dir.glob("#{dir}/src/*.{c,cpp,m,asm,S}").map { |f| objfile(f.relative_path_from(dir).pathmap("#{build_dir}/%X")) }
end

View file

@ -0,0 +1 @@
nothing here for now