Add some useful mgems
This commit is contained in:
@@ -2,3 +2,12 @@
|
||||
path = libs/mruby
|
||||
url = https://github.com/mruby/mruby.git
|
||||
ignore = dirty
|
||||
[submodule "libs/mgems/mruby-process"]
|
||||
path = libs/mgems/mruby-process
|
||||
url = https://github.com/katzer/mruby-process
|
||||
[submodule "libs/mgems/mruby-env"]
|
||||
path = libs/mgems/mruby-env
|
||||
url = https://github.com/iij/mruby-env.git
|
||||
[submodule "libs/mgems/mruby-marshal-c"]
|
||||
path = libs/mgems/mruby-marshal-c
|
||||
url = https://github.com/LanzaSchneider/mruby-marshal-c.git
|
||||
|
||||
@@ -20,6 +20,17 @@
|
||||
|
||||
# Use mrbgems
|
||||
# conf.gem 'examples/mrbgems/ruby_extension_example'
|
||||
@@ -16,6 +28,10 @@
|
||||
# include the GEM box
|
||||
conf.gembox 'default'
|
||||
|
||||
+ conf.gem '../mgems/mruby-env'
|
||||
+ conf.gem '../mgems/mruby-process'
|
||||
+ conf.gem '../mgems/mruby-marshal-c'
|
||||
+
|
||||
# C compiler settings
|
||||
# conf.cc do |cc|
|
||||
# cc.command = ENV['CC'] || 'gcc'
|
||||
@@ -79,5 +79,5 @@
|
||||
# Turn on `enable_debug` for better debugging
|
||||
# conf.enable_debug
|
||||
@@ -28,3 +39,15 @@
|
||||
+ # conf.enable_bintest
|
||||
+ # conf.enable_test
|
||||
end
|
||||
--- ./mgems/mruby-process/mrbgem.rake
|
||||
+++ ./mgems/mruby-process/mrbgem.rake
|
||||
@@ -54,4 +54,9 @@
|
||||
else
|
||||
spec.objs.delete objfile("#{build_dir}/src/win32")
|
||||
end
|
||||
+
|
||||
+ spec.objs.delete objfile("#{build_dir}/src/internal")
|
||||
+ spec.objs.delete objfile("#{build_dir}/src/dln")
|
||||
+ spec.objs.delete objfile("#{build_dir}/src/signal")
|
||||
+ spec.objs.delete objfile("#{build_dir}/src/status")
|
||||
end
|
||||
|
||||
Submodule
+1
Submodule libs/mgems/mruby-env added at 056ae32445
Submodule
+1
Submodule libs/mgems/mruby-marshal-c added at fc40e2ec0f
Submodule
+1
Submodule libs/mgems/mruby-process added at 715014b1d9
+1
-1
@@ -19,7 +19,7 @@ bg_image1_a = Animation.from(bg_image1)
|
||||
App.language = :en
|
||||
App.localize(:en, :btn_text, "Click %{name}!")
|
||||
|
||||
text = ElementText.new :btn_text, default_font, 0xFFFF00, {name: "Me"}, position: {x: 50, y: 50}, z: 1, click_mode: :block, alpha: 1
|
||||
text = ElementText.new :btn_text, default_font, 0xFFFF00, {name: ENV.fetch("name", "me")}, position: {x: 50, y: 50}, z: 1, click_mode: :block, alpha: 1
|
||||
|
||||
rect = ElementRect.new 100, 25, 0xFF0000, position: {x: 50, y: 50}, z: 0, rotation: 60, scale: { x: 1, y: 1 }, alpha: 0.8, click_mode: :block
|
||||
|
||||
|
||||
Reference in New Issue
Block a user