summaryrefslogtreecommitdiffhomepage
path: root/core/mruby_build.rb
diff options
context:
space:
mode:
author_Tradam <[email protected]>2022-04-04 10:11:52 -0400
committer_Tradam <[email protected]>2022-04-04 10:11:52 -0400
commit96c340c867471ae11bae12d0dbd4f7308007dbe4 (patch)
tree75ff47db2b00fc32a8299ad34a6f57e75876e044 /core/mruby_build.rb
parentb34254cba4e8d950b2fc87d2dd2fef83fcf3b002 (diff)
downloadFelFlameEngine-96c340c867471ae11bae12d0dbd4f7308007dbe4.tar.gz
FelFlameEngine-96c340c867471ae11bae12d0dbd4f7308007dbe4.zip
working mruby+gem building
Diffstat (limited to 'core/mruby_build.rb')
-rw-r--r--core/mruby_build.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/mruby_build.rb b/core/mruby_build.rb
index e295f87..2bd5a6e 100644
--- a/core/mruby_build.rb
+++ b/core/mruby_build.rb
@@ -1,5 +1,5 @@
-configure_project_root = '..'
-configure_mrbgem_dir = "#{configure_project_root}/mrbgems"
+configure_project_root = File.expand_path('../..')
+configure_mrbgem_dir = File.expand_path("#{configure_project_root}/mrbgems")
MRuby::Build.new do |conf|
@@ -65,8 +65,9 @@ MRuby::Build.new do |conf|
# -- YOUR GAMES --
# gems added into the mrbgems directory
+ puts "HERE: #{File.expand_path(configure_mrbgem_dir)}"
Dir.each_child(configure_mrbgem_dir) do |mrb_gem|
- conf.gem mrb_gem
+ conf.gem "#{configure_mrbgem_dir}/#{mrb_gem}"
end
# ---