+modules = [:esmart, :esmart_container, :esmart_draggies,
+ #:esmart_file_dialog,
+ :esmart_trans_x11]
+module_objects = {
+ :esmart => [:rb_esmart],
+ :esmart_container => [:rb_esmart_container],
+ :esmart_draggies => [:rb_esmart_draggies],
+ :esmart_file_dialog => [:rb_esmart_file_dialog],
+ :esmart_trans_x11 => [:rb_esmart_trans_x11]
+}
+
+module_tasks = modules.map { |mod| "ext_#{mod}".to_sym }
+
+task :default => module_tasks
+
+config = Rake::ConfigureTask.new do |t|
+ modules[1..-1].each do |mod|
+ t.tests << Rake::ConfigureTask::PkgConfigTest.new(mod.to_s)
+ end
+end