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|
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)