diff options
| author | realtradam <[email protected]> | 2022-01-15 05:24:18 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-01-15 05:24:18 -0500 |
| commit | fd640fbcbe227cb318498e2319b7856f5d3da711 (patch) | |
| tree | 1fb0a5ca6131bebddec122467eacc26a74a4dfc7 | |
| parent | 9907ca5891213fde40694f2ae1d47789ab45601e (diff) | |
| download | mruby-fd640fbcbe227cb318498e2319b7856f5d3da711.tar.gz mruby-fd640fbcbe227cb318498e2319b7856f5d3da711.zip | |
started work on raylib bindings
| -rw-r--r-- | build_config/felflame_linux.rb | 9 | ||||
| -rw-r--r-- | mrbgems/felflame.gembox | 85 |
2 files changed, 48 insertions, 46 deletions
diff --git a/build_config/felflame_linux.rb b/build_config/felflame_linux.rb index aeab04dfa..9bed644db 100644 --- a/build_config/felflame_linux.rb +++ b/build_config/felflame_linux.rb @@ -1,6 +1,7 @@ MRuby::Build.new do |conf| # load specific toolchain settings conf.toolchain :clang + #conf.toolchain disable_lock # disables being stuck on a single commit @@ -9,19 +10,19 @@ MRuby::Build.new do |conf| # C compiler settings conf.cc do |cc| - cc.command = 'zig cc -target native' + cc.command = 'zig cc -target native -O2' cc.include_paths = ["#{root}/include", '../vendor/include/raylib'] end # Linker settings conf.linker do |linker| - # linker.command = ENV['LD'] || 'gcc' - linker.command = 'zig cc -target native' + #linker.command = ENV['LD'] || 'gcc' + linker.command = 'zig cc -target native -O2' linker.flags = ['-lraylib -lGL -lm -lpthread -ldl -lrt -lX11'] linker.library_paths = ['../vendor/lib/tux/raylib'] end - conf.cxx.command = 'zig c++ -target native' + conf.cxx.command = 'zig c++ -target native -O2' # Turn on `enable_debug` for better debugging # conf.enable_debug diff --git a/mrbgems/felflame.gembox b/mrbgems/felflame.gembox index 6931b10d6..7f86486be 100644 --- a/mrbgems/felflame.gembox +++ b/mrbgems/felflame.gembox @@ -1,62 +1,63 @@ MRuby::GemBox.new do |conf| - # -- CORE GEMS -- +# -- CORE GEMS -- - conf.gembox "stdlib" - conf.gembox "stdlib-ext" - conf.gembox "math" - conf.gembox "metaprog" - #conf.gembox "stdlib-io" +conf.gembox "stdlib" +conf.gembox "stdlib-ext" +conf.gembox "math" +conf.gembox "metaprog" +#conf.gembox "stdlib-io" - # Use standard IO/File class - conf.gem :core => "mruby-io" +# Use standard IO/File class +conf.gem :core => "mruby-io" - # TODO: this gem doesnt current work - # with windows export - # Use standard IO/File class - #conf.gem :core => "mruby-socket" +# TODO: this gem doesnt current work +# with windows export +# Use standard IO/File class +#conf.gem :core => "mruby-socket" - # Use standard print/puts/p - conf.gem :core => "mruby-print" +# Use standard print/puts/p +conf.gem :core => "mruby-print" - # Generate mrbc command - conf.gem :core => "mruby-bin-mrbc" +# Generate mrbc command +conf.gem :core => "mruby-bin-mrbc" - # Generate mirb command - conf.gem :core => "mruby-bin-mirb" +# Generate mirb command +conf.gem :core => "mruby-bin-mirb" - # Generate mruby command - conf.gem :core => "mruby-bin-mruby" +# Generate mruby command +conf.gem :core => "mruby-bin-mruby" - # Generate mruby-strip command - conf.gem :core => "mruby-bin-strip" +# Generate mruby-strip command +conf.gem :core => "mruby-bin-strip" - # Generate mruby-config command - conf.gem :core => "mruby-bin-config" +# Generate mruby-config command +conf.gem :core => "mruby-bin-config" - # -- OTHER GEMS -- - # Test gem +# -- OTHER GEMS -- +# Test gem - conf.gem :git => '[email protected]:realtradam/sample-mruby-gem.git', :branch => 'test', :options => '-v' +conf.gem :git => '[email protected]:realtradam/sample-mruby-gem.git', :branch => 'test' +conf.gem :git => '[email protected]:realtradam/mruby-raylib.git' - # -- POTENTIAL GEMS -- - # gems that we may want incorperated - - # Simple Http - #conf.gem :git => 'https://github.com/matsumotory/mruby-simplehttp' +# -- POTENTIAL GEMS -- +# gems that we may want incorperated - # Memory Profiler - #conf.gem :git => 'https://github.com/iij/mruby-memprof' +# Simple Http +#conf.gem :git => 'https://github.com/matsumotory/mruby-simplehttp' - # Testing Framework - #conf.gem :git => 'https://github.com/iij/mruby-mtest' +# Memory Profiler +#conf.gem :git => 'https://github.com/iij/mruby-memprof' - # Regex - #conf.gem :git => 'https://github.com/iij/mruby-regexp-pcre' +# Testing Framework +#conf.gem :git => 'https://github.com/iij/mruby-mtest' - # JSON - #conf.gem :git => 'https://github.com/iij/mruby-iijson' +# Regex +#conf.gem :git => 'https://github.com/iij/mruby-regexp-pcre' - # Dir - #conf.gem :git => 'https://github.com/iij/mruby-dir' +# JSON +#conf.gem :git => 'https://github.com/iij/mruby-iijson' + +# Dir +#conf.gem :git => 'https://github.com/iij/mruby-dir' end |
