CRuby? • There was a guy who love rake. • mruby was using CMake when I first saw. • We don’t want to add the dependency in some cases. • Can GNU make replace it? • I’m using GNU make(don’t know nmake). • Don’t use file names with whitespaces in GNU make.
rake for building mruby • Can do what rake can do with single script. • How to build without CRuby 1. Build mruby only with Makefile. 2. Run mruby build with built mruby(and minirake).
• Run build and test with built minirake and mruby. • Make Makefile very fat. ※ There was a precedent to make minirake single binary: • https://github.com/gromnitsky/minirake
as usual. 2. Build mruby with built minirake. 3. Fix things that didn’t work well. • Add missing things: tsort, pathname, fileutils, … • Make mrbgem compatible with CRuby. • Reusing idea before mruby-cli: https://github.com/mruby/mruby/pull/1676
Do porting until you finish. • GNU make reference and stackoverflow was my friend. 3. Makefile more than 300 line is created. • I can do complex text generating with Makefile.
Carbon 5th / Windows 10 • RAM 16GB/Intel(R) Core(TM) i7-7500U CPU @2.70GHz 2.90GHz • Command used to run: time make test • About 10 minutes on Windows Subsystem for Linux • About 4 minutes on CentOS7 on VirtualBox
• Too many ways for process in Ruby (`,open3,spawn,system) • Need environment variables support to system method for cross build. • Thank all the developers of mrbgems I used. • Mainly port of Dir.glob (and the great idea): https://github.com/gromnitsky/mruby-dir-glob • IIJ for many stable mrbgems. • I want keyword arguments(because of FileUtils) • Actually I implemented it: https://github.com/mruby/mruby/pull/3629
• It’s too big to make a review. • How do we do with mrbgems minirake uses? • Is it really useful? • Does mruby really need to be independent from CRuby? • There is many CRuby rake code to build mruby.