summaryrefslogtreecommitdiffhomepage
path: root/tasks/mrbgem_spec.rake
AgeCommit message (Collapse)Author
2017-04-04Move class/module definitions to normal .rb filesUchio KONDO
2017-02-13Separate compilers setup from config setuppalkan
Fixes #3418.
2017-01-09Put package's libs flag after %{objs}Sorah Fukumori
In case LDFLAG contains "-Wl,--as-needed" or "--as-needed" is enabled by default, "-l" flags should appear after objs specifiction.
2016-12-11Support pkg-config in mrbgem.rakeKouhei Sutou
Example usage: MRuby::Gem::Specification.new('mruby-onig-regexp') do |spec| # ... if spec.search_package('onigmo') # Use onigmo.h when onigmo.pc exist. spec.cc.defines += ["HAVE_ONIGMO_H"] elsif spec.search_package('oniguruma') # Use oniguruma.h when oniguruma.pc exist. spec.cc.defines += ["HAVE_ONIGURUMA_H"] else # Use bundled Onigmo otherwise. # ... end end
2016-09-28Removed trailing spacesNobuyoshi Nakada
2016-09-02In mrbgem_spec.rake, added support for @mrblib_dir @objs_dir, so that a gem ↵Paolo Bosetti
can have custom source directory names
2016-03-13Reduce compiler include_pathswanabe
2015-11-27include changed from by quotes ("") to by brackets (<>); close #3032Yukihiro "Matz" Matsumoto
2015-10-03Merge pull request #2946 from sagmor/test-dependenciesYukihiro "Matz" Matsumoto
Add gem test dependencies
2015-09-25LinkerConfig is a struct with five paramsTerence Lee
2015-09-09Add test dependenciesSeba Gamboa
2015-09-04Allow rbfiles in mrblib and test to have subdirsZachary Scott
2015-07-27mrbgem compile should be depend on mrbgem.rakexuejianqing
2015-06-25add_dependency doesn't workmattn
2015-06-22Load missing dependencies from core or mgem-list.take_cheeze
2014-09-05Fix default gem loading in `generate_gem_table`.take_cheeze
2014-08-20Fix error handlings for mrb_open_core().Tatsuhiko Kubo
2014-08-04don't always generate gem functionscremno
If the src and mrblib directories of a mrbgem don't exist or don't include "usable" files (for tools like mirb), then functions for gem initialization and finalization don't have to be generated.
2014-07-12Fix rake failure since `mrbtest_objs` isn't flattened.take_cheeze
Append generated test object to `@test_objs` of mrbgem spec. Add method `custom_test_init?` to check whether mrbgem has custom test init function.
2014-07-12Run mrbgem and core tests on minimum dependencies.take_cheeze
Solves #2355. In test drivers: * Uses `mrb_t_pass_result` to check and pass test result to main `mrb_state`. * Adds `mrb_init_test_driver` to init test `mrb_state`.
2014-06-13remove add_conflicts now; use add_conflict; ref #2390Yukihiro "Matz" Matsumoto
2014-06-13Implement `add_conflict`. Usage is similar to `add_dependency`.take_cheeze
2014-06-12Implement `add_conflicts`. Solve #2383.take_cheeze
2014-06-10Add include_paths in dependency gems.Masaki Muranaka
2014-06-10Merge pull request #2377 from monaka/pr-add-dot-s-extensionYukihiro "Matz" Matsumoto
Add ".s" to source extensions.
2014-06-09Do not export include/ dirs in mrbgems to core build.Masaki Muranaka
In the current behavior, include/ dirs in mrbgems are set to core's compiler.include_paths. And they are never set to mrbgem's include_paths. It may cause some dangerous issues because it can change mruby core's macros by mrbgems. After this fix, include/ in a gem is used in the gem itself only.
2014-06-09Add ".s" to source extensions.Masaki Muranaka
It uses ".s" as the source for assembler on some toolchains including GCC.
2014-06-04Add generator script to dependency so that it will regenerate C codes when ↵take_cheeze
it's modified.
2014-06-03Fix mgem test args passingCarson McDonald
2014-05-20Support extension '.cc' in globbing.take_cheeze
2014-04-23Implement default gem info to use when there is no depending gem is defined.take_cheeze
2014-04-07Fix C++ files detection for automatic C++ ABI enabling.take_cheeze
2014-04-06Merge pull request #2019 from monaka/pr-add-macro-for-mrbgem-versionYukihiro "Matz" Matsumoto
Pass gem's version information to compilers.
2014-04-06Pass gem's version information to compilers.Masaki Muranaka
2014-04-04Refactor MRuby::Gem::List#check.take_cheeze
* Create mrbgem table before dependencies check. * Topoligical sort gem list. * Check circular mrbgem dependency.
2014-03-21use File#directory? instead of File#exist?; ref c2d8b0Yukihiro "Matz" Matsumoto
2014-03-21avoid Dir.exist? that is not available in Ruby1.8Yukihiro "Matz" Matsumoto
2014-03-10reduce mrb_open calls in mrbgem testtake_cheeze
2014-03-05add existing include/ directory onlytake_cheeze
2014-03-01support c++ exceptiontake_cheeze
2014-02-26compile assert.rb oncetake_cheeze
2014-01-07remove superfluous includescremno
- reduce compile time by a little bit (full-core: ~0.7s for me) - thanks to 'include-what-you-use' for some help - include Standard C header files before any other (coding style)
2013-10-01Implement gembox-relative gemdir pathsWilliam Light
In the case where a relative path is specified to a gembox from build_config.rb, it was previously tricky to specify relative gem paths from inside that gembox. For example, consider a project in which mruby is checked out as a submodule in the project root: +- project_root | +- mruby/ | | | +- build_config.rb | | | +- ... | +- my_gembox/ | +- my_gembox.gembox | +- my_gem/ | +- mrbgem.rake | +- ... If build_config.rb refers to my_gembox with a relative path, it's difficult for my_gembox to then refer to my_gem. With this proposed change, my_gembox.gembox can look like this: MRuby::GemBox.new do |conf| conf.gem "my_gem" end
2013-08-26Merge pull request #1490 from take-cheeze/cxx_extensionYukihiro "Matz" Matsumoto
support file extension .cpp/.cxx in mrbgem and tool
2013-08-26support file extension .cpp/.cxx in mrbgem and tooltake_cheeze
2013-07-20Fail if dependency isn't foundCarson McDonald
2013-06-15Remove extra separator in compile commandkyab
2013-05-26mruby error messages should be directed to stderrYukihiro "Matz" Matsumoto
2013-05-13show a backtrace when when an error occurs on gem load; close #1243Yukihiro "Matz" Matsumoto
2013-05-11Change alghorithm to algorithmCarson McDonald