58 Commits

Author SHA1 Message Date
Seba Gamboa d6665fc402 Add optional params to toolchain configuration 2015-10-06 15:52:19 -03: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
take_cheeze 2e4bc2de88 Refactor Build#compile_as_cxx. 2015-07-15 14:46:56 +09:00
Terence Lee 0006a8cd4a add host_target/build_target options for CrossBuild'ng native extensions 2015-06-23 13:05:35 -04: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
Kouhei Sutou a88cda8ac6 Add more debug flags for GCC based compilers
We can use `#define`-ed macros in GDB with `-g3` flag.

We can run code step by step in GDB with `-O0` flag.
2015-02-10 19:00:30 +09:00
take_cheeze 380be0e829 Fix MSVC C++ ABI build. Close #2588. 2014-09-08 15:43:17 +09:00
take_cheeze ef57fd55fb Add method toolchains and primary_toolchain to MRuby::Build.
* To check imported toolchains for setting up toolchain specific things.
* `primary_toolchain` returns the main toolchain name of the build.
2014-06-29 20:32:12 +09:00
take_cheeze 39bbdd5f2f Add bintest for mrbc. 2014-06-06 21:46:58 +09:00
Nobuyoshi Nakada ab67c57f65 remove trailing spaces 2014-04-30 09:50:14 +09:00
take_cheeze 604134e57d Make bintest enabling like other enable_xxx methods. 2014-04-09 13:59:39 +09:00
take_cheeze 758cdd5b33 Add MRuby::Build#disable_cxx_exception to force C++ ABI disable. 2014-04-08 20:16:18 +09:00
Yukihiro "Matz" Matsumoto 5bcb119ed7 use File#directory? instead of File#exist?; ref c2d8b0 2014-03-21 09:24:28 +09:00
Yukihiro "Matz" Matsumoto c2d8b0303d avoid Dir.exist? that is not available in Ruby1.8 2014-03-21 03:23:26 +09:00
take_cheeze 624e34a6fe don't show version '0.0.0' in build summary since it's default version 2014-03-17 00:34:25 +09:00
take_cheeze 4bd623ba75 print gem summary in print_build_summary method 2014-03-17 00:34:24 +09:00
Tatsuya Matsumoto 7ac4a60cf0 fix indent. 2014-03-05 11:57:10 +09:00
take_cheeze cfa7889996 run enabled gem's bintest only 2014-03-03 16:53:26 +09:00
take_cheeze 6de1c22d99 use c++ compiler to link when c++ abi is enabled 2014-03-02 04:30:06 +09:00
take_cheeze 78915f9601 support c++ exception 2014-03-01 20:05:29 +09:00
take_cheeze 9059b9a354 support custom build_dir in CrossBuild 2014-02-23 20:50:51 +09:00
take_cheeze dd68ea9799 make mruby build directory customizable 2014-02-23 20:35:06 +09:00
Yukihiro "Matz" Matsumoto d7960bf2a9 resolve conflict in travis_config.rb 2014-02-10 09:50:32 +09:00
take_cheeze 9b4b2e7c52 use mrbc of current build in non cross build 2013-11-26 11:33:25 +09:00
take_cheeze f07ba44c69 add enable_debug method to MRuby::Build and build debug version in travis-ci 2013-11-24 20:38:47 +09:00
fleuria 06914f607c add conf.enable_bintest and run_bintest 2013-11-16 14:26:38 +08:00
Ryan Scott 981b408e01 Added support for custom gem clone directories when using git 2013-08-04 00:33:49 +10:00
Xuejie "Rafael" Xiao 122770d17f Allow programmers to specify build path manually 2013-07-15 11:43:19 +08:00
Daniel Bovensiepen 1eb2a4b6c8 Move GemList to MRuby::Gem::List. More logical location 2013-05-03 14:19:19 +08:00
Daniel Bovensiepen 822a71154f Use advanced GemList as list for GEMs 2013-05-03 14:08:10 +08:00
Masaki Muranaka 9d8143f930 Move mirb and mruby to mrbgems. 2013-04-11 15:22:07 +09:00
Masaki Muranaka 6e28c0eb28 Add "test runner" support for cross builds.
"test runner" means target simulator like QEmu, GDB sim, and so on. Also "test runner" might be debug agents for real targets.
If you do not setup test_runner, Rake will work same as before.
2013-04-07 01:06:50 +09:00
Carson McDonald 78f59c5b1e Add gem version to build summary if it exists. 2013-03-19 07:20:09 -04: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 d2f74c7c46 bug fix: fix wrong method name. 2013-03-14 23:54:50 +09:00
crimsonwoods ef23ae4e41 support 'Cygwin' as build platform. 2013-03-14 23:51:44 +09:00
Masaki Muranaka cb2ad2c439 Add Support to build loadable modules defined in mrbgems. 2013-03-07 14:23:26 +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
Yukihiro Matz Matsumoto 24679c6dd6 resolve conflict 2013-01-30 07:33:35 +09:00
Carson McDonald c32a16130f Change the way that the DISABLE_GEMS flag is set. 2013-01-28 08:54:27 -05:00
Yuichiro MASUI 5a152c82e6 load MRUBY_CONFIG script after 'build_config.rb' 2013-01-28 18:22:11 +09:00
Yuichiro MASUI 25f7a74e56 Fixed mrbc file ext on host 2013-01-27 03:13:56 +09:00
Davide D'Agostino b317259731 Let's use more ruby 2013-01-24 00:08:40 -08:00
mattn b7805a3e05 Listing gems vertically 2013-01-24 16:11:33 +09:00
Carson McDonald 6e72fb4781 Add build summary at the end of a build. 2013-01-23 18:44:48 -05:00
Yuichiro MASUI a9064dce15 Added "Unknown toolchain/gem" error message 2013-01-21 23:52:39 +09:00