55 Commits

Author SHA1 Message Date
Uchio KONDO 38db5e550f Some adjustments 2017-04-04 12:16:53 +09:00
Tomasz Dabrowski bc721ec45d Gitlab tests for multiple configurations
Gitlab testing is introduced, using GitLab CI, to test many different configurations:
 - 32/64 bit architecture
 - float/double
 - 16/32/64 bit int size
 - none/NaN/word boxing
 - ASCII/UTF8

using various compilers:
 - gcc-4.7
 - gcc-4.8
 - gcc-4.9
 - gcc-5
 - gcc-6
 - clang-3.5
 - clang-3.6
 - clang-3.7
 - clang-3.8
 - clang-3.9
2017-02-16 13:50:27 +01:00
takahashim f377753b16 fix rake doc error
using mrbdoc
2015-10-09 11:48:51 +09:00
Tatsuhiro Tsujikawa 291265ec86 Customize installation directory using INSTALL_DIR environment variable
Previously, minirake installed several commands (e.g., mrbc) in
repository locally under bin directory.  But there was no knob for
users to change this directory.  It effectively made `make distcheck`
fail if mruby was embedded into project managed by autotools.

This change adds a way for the user to change installation directory
by setting INSTALL_DIR environment variable.
2015-09-11 00:15:01 +09:00
Zachary Scott bacb826868 Add build_mrbtest after config block is evaluated
This allows us to add `enable_test` anywhere in a build target,
without having to worry about the order in which they are included.

Previously, there was a bug that occured when adding 'mruby-test' gem
to dependencies before additional gems.

Instead of adding the 'mruby-test' gem dependency manually to a test build,
we now only need to call `enable_test` in the target. This also allows us to
call `test_enabled?` downstream when running mruby tests ourselves.

/cc #2924
2015-09-03 01:02:53 -04:00
Zachary Scott 133d57cb0d Add mruby-test build config and update :test task to use mrbgem binary
Removed old mrbgems_test.rake which was merged into mrbgem spec
2015-08-22 10:21:52 -04:00
Huei-Horng Yo be2c156876 Detect if ncurses' backend is terminfo or termcap. fixes #2662
Borrowed from @mattn's code at:
https://github.com/mruby/mruby/issues/2662#issuecomment-65535705

Signed-off-by: Huei-Horng Yo <hiroshi@ghostsinthelab.org>
2015-06-09 21:07:12 +08:00
take_cheeze 6460ef77bc Compile mruby compiler as mrbgem.
Compiler codes is moved to "mruby-compiler".
Executable `mrbc` is moved to "mruby-bin-mrbc".
2015-06-01 21:53:55 +09:00
furunkel a96b871c46 Add task for running and plotting benchmarks 2015-04-23 22:27:19 +02:00
Julian Aron Prenner 1aef549971 Set correct build dir for bins 2015-01-02 14:47:57 +01:00
mimaki e5bacc03f2 Add mruby debugger (mrdb) 2014-11-18 23:33:32 +09:00
take_cheeze c07feca570 Add :doc task to run document generator. 2014-06-13 17:28:40 +09:00
take_cheeze 9ac23ae214 Support extension '.cc' in globbing. 2014-05-20 22:52:08 +09:00
Daniel Bovensiepen d3195277ff Add Rake command 'deep_clean' which cleans everything including the mrbgems clone directories. 2014-04-20 05:35:47 +08:00
Yukihiro "Matz" Matsumoto 32818bd25e should build "all" before "test"; close #1774 2014-03-01 15:20:16 +09:00
cremno d1f474c239 Rakefile: make bin directory 2014-02-12 00:04:42 +01:00
take_cheeze 2e20232daf pass gem_flags_after_libraries 2014-02-05 14:22:19 +09:00
take_cheeze b6ab216f97 support file extension .cpp/.cxx in mrbgem and tool 2013-08-26 17:56:49 +09:00
Carson McDonald a075e0abce Don't ignore host when adding libmruby.a to deps. 2013-04-11 13:55:48 -04:00
Masaki Muranaka 9d8143f930 Move mirb and mruby to mrbgems. 2013-04-11 15:22:07 +09:00
Masaki Muranaka 9cf7d54b57 Move apps in gems to #{MRUBY_ROOT}/bin/ when apps is built for "host". 2013-04-11 12:53:54 +09:00
Masaki Muranaka 1b4ad941b4 Use not tool/ but tools/. This is for naming consistency. 2013-04-11 12:52:20 +09:00
Masaki Muranaka 9c9c3b411f Cosmetic changes. 2013-04-11 12:49:57 +09:00
Yukihiro "Matz" Matsumoto ad11d3144e Merge pull request #975 from crimsonwoods/modify_build_script
Improve Android platform support.
2013-03-14 08:15:40 -07:00
crimsonwoods ef23ae4e41 support 'Cygwin' as build platform. 2013-03-14 23:51:44 +09:00
Yuichiro MASUI ab8a5aa572 Change default gem path. 2013-03-10 14:51:59 +09:00
Masaki Muranaka cb2ad2c439 Add Support to build loadable modules defined in mrbgems. 2013-03-07 14:23:26 +09:00
Yukihiro Matz Matsumoto 494e133f61 remove installing executable first to avoid text-file-busy when investigating on debugger 2013-03-02 15:20:48 +09:00
Daniel Bovensiepen bdd908c92e Rake respects verbose flag also for test and clean target 2013-02-28 10:30:30 +00:00
Yuichiro MASUI 0970ca9572 Support to build on pwd != mruby source root 2013-02-23 19:03:59 +09:00
Yuichiro MASUI a74f92b46b Generate mrbtest.a file for sparete from driver.o 2013-02-03 13:38:18 +09:00
Yuichiro MASUI 5a152c82e6 load MRUBY_CONFIG script after 'build_config.rb' 2013-01-28 18:22:11 +09:00
Yukihiro Matz Matsumoto 0410bb7623 remove bin/command first to avoid text file busy 2013-01-28 00:50:22 +09:00
Carson McDonald 6e72fb4781 Add build summary at the end of a build. 2013-01-23 18:44:48 -05:00
Yuichiro MASUI ced80d2b4b Improved build scripts and config files 2013-01-20 22:48:42 +09:00
mattn d8dcee584e build gems if build_config.rb is modified. 2013-01-11 21:01:04 +09:00
Carson McDonald de33b1e131 Make conf.bins work for cross compiled deps as well as the host. 2013-01-09 15:27:32 -05:00
Yuichiro MASUI 33350251ae Added conf.bins for defining bulding binaries 2013-01-09 22:40:08 +09:00
Yuichiro MASUI 280bad605e Run mrbgems test run on isolate mrb_state each rb file.
Can access to current gem's name through GEMNAME from test.

Can change assert library each mrbgems. used spec.test_preload on mrbgem.rake.

assert library should set $ok_test, $ko_test, $kill_test, $asserts.
2013-01-07 02:58:36 +09:00
Yuichiro MASUI 7c469c0b9d Rebuild CRuby based building script without Makefile
Tested CRuby 1.8.6 and 1.9.3

You can see building configuration in build_config.rb
2013-01-03 02:24:15 +09:00
Yuichiro MASUI dee0b2283c Add MRUBY_CFLAGS / MRUBY_LDFLAGS to mrbgems 2012-12-22 01:38:06 +09:00
Yukihiro "Matz" Matsumoto 091367850d Merge pull request #660 from DAddYE/patch-2
Prettify Rakefile
2012-12-20 23:19:15 -08:00
Davide D'Agostino 706d77bf98 Reuse code for paths 2012-12-20 23:18:31 -08:00
Davide D'Agostino bd7cf2f251 Allow ACTIVE_GEMS to be changed from ENV 2012-12-20 23:16:31 -08:00
Davide D'Agostino 54092d0a16 Prettify Rakefile 2012-12-20 22:53:43 -08:00
Davide D'Agostino d34c4c45f5 Allow COMPILE_MODE to be changed from ENV 2012-12-20 22:51:07 -08:00
mattn ac79bd5886 possible to specify ENABLE_GEMS=true. 2012-12-20 10:51:39 +09:00
Xuejie Xiao b641c96f57 Derive DISABLE_GEMS macro according to build configuration 2012-12-18 20:34:07 -05:00
Akira Yumiyama 9e0366dfb9 add AR, YACC flags. 2012-12-19 08:19:57 +09:00
Yukihiro Matz Matsumoto 83c4ea8366 Rakefile: LIBS default to -lm 2012-12-18 22:29:24 +09:00