mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
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
7 changed files with 40 additions and 0 deletions
19
config/mruby/build_config.rb
Normal file
19
config/mruby/build_config.rb
Normal 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
6
mrbgems/core/mrbgem.rake
Normal 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
|
||||
1
mrbgems/core/src/README.md
Normal file
1
mrbgems/core/src/README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
nothing here for now
|
||||
6
mrbgems/oneshot/mrbgem.rake
Normal file
6
mrbgems/oneshot/mrbgem.rake
Normal 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
|
||||
1
mrbgems/oneshot/src/README.md
Normal file
1
mrbgems/oneshot/src/README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
nothing here for now
|
||||
6
mrbgems/sunshine/mrbgem.rake
Normal file
6
mrbgems/sunshine/mrbgem.rake
Normal 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
|
||||
1
mrbgems/sunshine/src/README.md
Normal file
1
mrbgems/sunshine/src/README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
nothing here for now
|
||||
Loading…
Reference in a new issue