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 /Rakefile | |
| parent | bc843ed9272d9733cafea7df130134264d15d6d9 (diff) | |
| download | mruby-b6ab216f970757c6f7a8edd5f141b555c2eef157.tar.gz mruby-b6ab216f970757c6f7a8edd5f141b555c2eef157.zip | |
support file extension .cpp/.cxx in mrbgem and tool
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -41,7 +41,7 @@ depfiles = MRuby.targets['host'].bins.map do |bin| FileUtils.rm_f t.name, { :verbose => $verbose } FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose } end - + install_path end @@ -53,7 +53,7 @@ MRuby.each_target do |target| gem.bins.each do |bin| exec = exefile("#{build_dir}/bin/#{bin}") - objs = Dir.glob("#{current_dir}/tools/#{bin}/*.c").map { |f| objfile(f.pathmap("#{current_build_dir}/tools/#{bin}/%n")) } + objs = Dir.glob("#{current_dir}/tools/#{bin}/*.{c,cpp,cxx}").map { |f| objfile(f.pathmap("#{current_build_dir}/tools/#{bin}/%n")) } file exec => objs + [libfile("#{build_dir}/lib/libmruby")] do |t| gem_flags = gems.map { |g| g.linker.flags } |
