diff options
| author | take_cheeze <[email protected]> | 2013-08-26 17:56:49 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2013-08-26 17:56:49 +0900 |
| commit | b6ab216f970757c6f7a8edd5f141b555c2eef157 (patch) | |
| tree | 68ce4cec1ccfa1fa55af6d53cb634d2317474488 /tasks | |
| parent | bc843ed9272d9733cafea7df130134264d15d6d9 (diff) | |
| download | mruby-b6ab216f970757c6f7a8edd5f141b555c2eef157.tar.gz mruby-b6ab216f970757c6f7a8edd5f141b555c2eef157.zip | |
support file extension .cpp/.cxx in mrbgem and tool
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/mrbgem_spec.rake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tasks/mrbgem_spec.rake b/tasks/mrbgem_spec.rake index 3363b4885..6ff4286ce 100644 --- a/tasks/mrbgem_spec.rake +++ b/tasks/mrbgem_spec.rake @@ -6,7 +6,7 @@ module MRuby class << self attr_accessor :current end - LinkerConfig = Struct.new(:libraries, :library_paths, :flags, :flags_before_libraries, :flags_after_libraries) + LinkerConfig = Struct.new(:libraries, :library_paths, :flags, :flags_before_libraries, :flags_after_libraries) class Specification include Rake::DSL @@ -53,13 +53,13 @@ module MRuby @linker = LinkerConfig.new([], [], [], []) @rbfiles = Dir.glob("#{dir}/mrblib/*.rb").sort - @objs = Dir.glob("#{dir}/src/*.{c,cpp,m,asm,S}").map do |f| + @objs = Dir.glob("#{dir}/src/*.{c,cpp,cxx,m,asm,S}").map do |f| objfile(f.relative_path_from(@dir).to_s.pathmap("#{build_dir}/%X")) end @objs << objfile("#{build_dir}/gem_init") @test_rbfiles = Dir.glob("#{dir}/test/*.rb") - @test_objs = Dir.glob("#{dir}/test/*.{c,cpp,m,asm,S}").map do |f| + @test_objs = Dir.glob("#{dir}/test/*.{c,cpp,cxx,m,asm,S}").map do |f| objfile(f.relative_path_from(dir).to_s.pathmap("#{build_dir}/%X")) end @test_preload = 'test/assert.rb' @@ -211,7 +211,7 @@ module MRuby end # ~> compare algorithm - # + # # Example: # ~> 2.2 means >= 2.2.0 and < 3.0.0 # ~> 2.2.0 means >= 2.2.0 and < 2.3.0 |
