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:
parent
91e1617c04
commit
a77834f66e
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
nothing here for now
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
nothing here for now
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
nothing here for now
|
||||||
Loading…
Reference in New Issue