summaryrefslogtreecommitdiffstats
path: root/tools/genruby.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-04-09 13:59:12 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-04-09 13:59:12 +0200
commit5008bdf84e2abe072a6995886c2f8f5b3e4aa905 (patch)
treef76dbdfec11241ba1f5ed32ca4e1f7ee362fa131 /tools/genruby.rb
parent3135f8a9c5568125921925142735955216819611 (diff)
downloadffi-efl-5008bdf84e2abe072a6995886c2f8f5b3e4aa905.zip
ffi-efl-5008bdf84e2abe072a6995886c2f8f5b3e4aa905.tar.gz
add suffix .so.1 to ffi_lib calls so that dep to -dev .deb is removed
Diffstat (limited to 'tools/genruby.rb')
-rwxr-xr-xtools/genruby.rb86
1 files changed, 44 insertions, 42 deletions
diff --git a/tools/genruby.rb b/tools/genruby.rb
index a509b07..4404b89 100755
--- a/tools/genruby.rb
+++ b/tools/genruby.rb
@@ -280,50 +280,52 @@ def efl_h lib, header, modname, prefix=nil, outf=nil, reqs=nil, csts=nil
}
end
#
+SO_MAJ = '.so.1'
+#
libs = []
-libs << efl_h('eina','eina_types.h','Eina','eina')
-libs << efl_h('eina','eina_main.h','Eina','eina','eina.rb')
-libs << efl_h('eina','eina_xattr.h','EinaXattr')
-libs << efl_h('eina','eina_log.h','EinaLog')
-libs << efl_h('eina','eina_list.h','EinaList')
-libs << efl_h('eina','eina_hash.h','EinaHash')
-libs << efl_h('eina','eina_file.h','EinaFile')
-libs << efl_h('eet','Eet.h','Eet',nil,nil,["#{NATIVE}/eina_xattr","#{NATIVE}/eina_list"])
-libs << efl_h('evas','Evas.h','Evas',nil,nil,["#{NATIVE}/eina_list"],['EVAS_LAYER_MIN','EVAS_LAYER_MAX'])
-libs << efl_h('ecore','Ecore.h','Ecore')
-libs << efl_h('ecore_input','Ecore_Input.h','EcoreInput','ecore_event',nil,["#{NATIVE}/eina_list"])
-libs << efl_h('ecore','Ecore_Getopt.h','EcoreGetopt',nil,nil,["#{NATIVE}/eina_list"])
-libs << efl_h('ecore_evas','Ecore_Evas.h','EcoreEvas',nil,nil,["#{NATIVE}/ecore_getopt","#{NATIVE}/evas"])
-libs << efl_h('eio','Eio.h','Eio',nil,nil,["#{NATIVE}/eina_file","#{NATIVE}/eet"])
-libs << efl_h('embryo','Embryo.h','Embryo')
-libs << efl_h('edje','Edje.h','Edje',nil,nil,["#{NATIVE}/evas"])
-libs << efl_h('efreet','Efreet.h','Efreet')
-libs << efl_h('efreet','efreet_base.h','EfreetBase',nil,nil,["#{NATIVE}/eina_list"])
-libs << efl_h('efreet','efreet_icon.h','EfreetIcon','efreet_icon',nil,["#{NATIVE}/eina_list"])
-libs << efl_h('efreet','efreet_desktop.h','EfreetDesktop','efreet_desktop',nil,["#{NATIVE}/eina_list"])
-libs << efl_h('efreet','efreet_menu.h','EfreetMenu','efreet_menu',nil,["#{NATIVE}/efreet_desktop"])
-libs << efl_h('efreet','efreet_uri.h','EfreetUri','efreet_uri')
-libs << efl_h('efreet','efreet_ini.h','EfreetIni','efreet_ini')
-libs << efl_h('efreet','efreet_utils.h','EfreetUtils','efreet_utils',nil,["#{NATIVE}/efreet_desktop"])
-libs << efl_h('efreet_mime','Efreet_Mime.h','EfreetMime')
-libs << efl_h('efreet_trash','Efreet_Trash.h','EfreetTrash',nil,nil,["#{NATIVE}/eina_list","#{NATIVE}/efreet_uri"])
-libs << efl_h('edbus','E_DBus.h','Edbus',nil,'edbus.rb',["#{NATIVE}/eina_list"])
-libs << efl_h('enotify','E_Notify.h','Enotify','e_notification','enotify.rb',["#{NATIVE}/evas","#{NATIVE}/edbus"])
-libs << efl_h('enotify','E_Notification_Daemon.h','EnotificationDaemon','e_notification_daemon','enotification_daemon.rb',["#{NATIVE}/enotify"])
-libs << efl_h('ebluez','E_Bluez.h','Ebluez','e_bluez','ebluez.rb',["#{NATIVE}/edbus"])
-libs << efl_h('eofono','E_Ofono.h','Eofono','e_ofono','eofono.rb',["#{NATIVE}/edbus"])
-libs << efl_h('eukit','E_Ukit.h','Eukit','e_ukit','eukit.rb',["#{NATIVE}/edbus"])
-libs << efl_h('ehal','E_Hal.h','Ehal','e_hal','ehal.rb',["#{NATIVE}/edbus"])
-libs << efl_h('econnman0_7x','E_Connman.h','EConnman','e_connman','econnman.rb',["#{NATIVE}/edbus"])
-libs << efl_h('eeze','Eeze.h','Eeze',nil,nil,["#{NATIVE}/eina_list"])
-libs << efl_h('eeze','Eeze_Disk.h','EezeDisk')
-libs << efl_h('eeze','Eeze_Net.h','EezeNet',nil,nil,["#{NATIVE}/eina_list"])
-libs << efl_h('emotion','Emotion.h','Emotion',nil,nil,["#{NATIVE}/evas"])
-libs << efl_h('ethumb','Ethumb.h','Ethumb')
-libs << efl_h('ethumb_client','Ethumb_Client.h','EthumbClient',nil,nil,["#{NATIVE}/ethumb"])
-libs << efl_h('ethumb','Ethumb_Plugin.h','EthumbPlugin',nil,nil,["#{NATIVE}/evas","#{NATIVE}/ecore_evas","#{NATIVE}/ethumb"])
+libs << efl_h('eina'+SO_MAJ,'eina_types.h','Eina','eina')
+libs << efl_h('eina'+SO_MAJ,'eina_main.h','Eina','eina','eina.rb')
+libs << efl_h('eina'+SO_MAJ,'eina_xattr.h','EinaXattr')
+libs << efl_h('eina'+SO_MAJ,'eina_log.h','EinaLog')
+libs << efl_h('eina'+SO_MAJ,'eina_list.h','EinaList')
+libs << efl_h('eina'+SO_MAJ,'eina_hash.h','EinaHash')
+libs << efl_h('eina'+SO_MAJ,'eina_file.h','EinaFile')
+libs << efl_h('eet'+SO_MAJ,'Eet.h','Eet',nil,nil,["#{NATIVE}/eina_xattr","#{NATIVE}/eina_list"])
+libs << efl_h('evas'+SO_MAJ,'Evas.h','Evas',nil,nil,["#{NATIVE}/eina_list"],['EVAS_LAYER_MIN','EVAS_LAYER_MAX'])
+libs << efl_h('ecore'+SO_MAJ,'Ecore.h','Ecore')
+libs << efl_h('ecore_input'+SO_MAJ,'Ecore_Input.h','EcoreInput','ecore_event',nil,["#{NATIVE}/eina_list"])
+libs << efl_h('ecore'+SO_MAJ,'Ecore_Getopt.h','EcoreGetopt',nil,nil,["#{NATIVE}/eina_list"])
+libs << efl_h('ecore_evas'+SO_MAJ,'Ecore_Evas.h','EcoreEvas',nil,nil,["#{NATIVE}/ecore_getopt","#{NATIVE}/evas"])
+libs << efl_h('eio'+SO_MAJ,'Eio.h','Eio',nil,nil,["#{NATIVE}/eina_file","#{NATIVE}/eet"])
+libs << efl_h('embryo'+SO_MAJ,'Embryo.h','Embryo')
+libs << efl_h('edje'+SO_MAJ,'Edje.h','Edje',nil,nil,["#{NATIVE}/evas"])
+libs << efl_h('efreet'+SO_MAJ,'Efreet.h','Efreet')
+libs << efl_h('efreet'+SO_MAJ,'efreet_base.h','EfreetBase',nil,nil,["#{NATIVE}/eina_list"])
+libs << efl_h('efreet'+SO_MAJ,'efreet_icon.h','EfreetIcon','efreet_icon',nil,["#{NATIVE}/eina_list"])
+libs << efl_h('efreet'+SO_MAJ,'efreet_desktop.h','EfreetDesktop','efreet_desktop',nil,["#{NATIVE}/eina_list"])
+libs << efl_h('efreet'+SO_MAJ,'efreet_menu.h','EfreetMenu','efreet_menu',nil,["#{NATIVE}/efreet_desktop"])
+libs << efl_h('efreet'+SO_MAJ,'efreet_uri.h','EfreetUri','efreet_uri')
+libs << efl_h('efreet'+SO_MAJ,'efreet_ini.h','EfreetIni','efreet_ini')
+libs << efl_h('efreet'+SO_MAJ,'efreet_utils.h','EfreetUtils','efreet_utils',nil,["#{NATIVE}/efreet_desktop"])
+libs << efl_h('efreet_mime'+SO_MAJ,'Efreet_Mime.h','EfreetMime')
+libs << efl_h('efreet_trash'+SO_MAJ,'Efreet_Trash.h','EfreetTrash',nil,nil,["#{NATIVE}/eina_list","#{NATIVE}/efreet_uri"])
+libs << efl_h('edbus'+SO_MAJ,'E_DBus.h','Edbus',nil,'edbus.rb',["#{NATIVE}/eina_list"])
+libs << efl_h('enotify'+SO_MAJ,'E_Notify.h','Enotify','e_notification','enotify.rb',["#{NATIVE}/evas","#{NATIVE}/edbus"])
+libs << efl_h('enotify'+SO_MAJ,'E_Notification_Daemon.h','EnotificationDaemon','e_notification_daemon','enotification_daemon.rb',["#{NATIVE}/enotify"])
+libs << efl_h('ebluez'+SO_MAJ,'E_Bluez.h','Ebluez','e_bluez','ebluez.rb',["#{NATIVE}/edbus"])
+libs << efl_h('eofono'+SO_MAJ,'E_Ofono.h','Eofono','e_ofono','eofono.rb',["#{NATIVE}/edbus"])
+libs << efl_h('eukit'+SO_MAJ,'E_Ukit.h','Eukit','e_ukit','eukit.rb',["#{NATIVE}/edbus"])
+libs << efl_h('ehal'+SO_MAJ,'E_Hal.h','Ehal','e_hal','ehal.rb',["#{NATIVE}/edbus"])
+libs << efl_h('econnman0_7x'+SO_MAJ,'E_Connman.h','EConnman','e_connman','econnman.rb',["#{NATIVE}/edbus"])
+libs << efl_h('eeze'+SO_MAJ,'Eeze.h','Eeze',nil,nil,["#{NATIVE}/eina_list"])
+libs << efl_h('eeze'+SO_MAJ,'Eeze_Disk.h','EezeDisk')
+libs << efl_h('eeze'+SO_MAJ,'Eeze_Net.h','EezeNet',nil,nil,["#{NATIVE}/eina_list"])
+libs << efl_h('emotion'+SO_MAJ,'Emotion.h','Emotion',nil,nil,["#{NATIVE}/evas"])
+libs << efl_h('ethumb'+SO_MAJ,'Ethumb.h','Ethumb')
+libs << efl_h('ethumb_client'+SO_MAJ,'Ethumb_Client.h','EthumbClient',nil,nil,["#{NATIVE}/ethumb"])
+libs << efl_h('ethumb'+SO_MAJ,'Ethumb_Plugin.h','EthumbPlugin',nil,nil,["#{NATIVE}/evas","#{NATIVE}/ecore_evas","#{NATIVE}/ethumb"])
#
-ELM_LIB='elementary'
+ELM_LIB='elementary'+SO_MAJ
#
def elm_h header, modname, reqs=nil
{