diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-26 04:16:13 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-26 04:16:13 -0700 |
| commit | 975d670ab740c552f7f952c155aae90967d9d829 (patch) | |
| tree | fdf062b56a7f1e492965e597243c60559feb1129 /Rakefile | |
| parent | 26839b9c248ce7cceae6281f235e3a6e505b82f7 (diff) | |
| parent | b6ab216f970757c6f7a8edd5f141b555c2eef157 (diff) | |
| download | mruby-975d670ab740c552f7f952c155aae90967d9d829.tar.gz mruby-975d670ab740c552f7f952c155aae90967d9d829.zip | |
Merge pull request #1490 from take-cheeze/cxx_extension
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 } |
