X-Git-Url: http://git.code-monkey.de/?p=ruby-esmart.git;a=blobdiff_plain;f=Rakefile;fp=Rakefile;h=cc2f2f778cc91d322193900ece7226d144eedce9;hp=4dd7571d9d0d9f2eaf5a6769adbf09d428f51441;hb=b78c3f4641924c5c3446fc5ff127abe0fa7025f6;hpb=0ca950a97b7bdff5a7d13b318e3c896794cdf860 diff --git a/Rakefile b/Rakefile index 4dd7571..cc2f2f7 100644 --- a/Rakefile +++ b/Rakefile @@ -25,8 +25,9 @@ module_tasks = modules.map { |mod| "ext_#{mod}".to_sym } task :default => module_tasks config = Rake::ConfigureTask.new do |t| - t.tests << Rake::ConfigureTask:: - PkgConfigTest.new("esmart", :is_critical => true) + modules[1..-1].each do |mod| + t.tests << Rake::ConfigureTask::PkgConfigTest.new(mod.to_s) + end end module_tasks.each do |mt| @@ -45,12 +46,14 @@ modules.each_with_index do |mod, i| end task :pre_ext => [:configure] do - exts.values.each do |e| - e.link_libs << config.esmart.libs + exts.each do |(key, e)| + next if key == :esmart + + e.link_libs << config[key.to_s].libs cflags = [ e.env[:cflags], - config.esmart.cflags + config[key.to_s].cflags ] e.env.update(:cflags => cflags)