diff options
Diffstat (limited to 'tools/genruby.rb')
-rwxr-xr-x | tools/genruby.rb | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/tools/genruby.rb b/tools/genruby.rb index 4404b89..3cfa2f1 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -7,16 +7,16 @@ WRAP_LEN=150 # def set_type t, sym return ETYPES['Eina_Bool'] if t=='Eina_Bool' +# v = ( ETYPES[sym].nil? ? ( TYPES[sym].nil? ? ':'+sym.downcase : TYPES[sym] ) : ETYPES[sym] ) + v = ( TYPES[sym].nil? ? ':'+sym.downcase : TYPES[sym] ) if ETYPES[t].nil? -# v = ( ETYPES[sym].nil? ? ( TYPES[sym].nil? ? ':'+sym.downcase : TYPES[sym] ) : ETYPES[sym] ) - v = ( TYPES[sym].nil? ? ':'+sym.downcase : TYPES[sym] ) ETYPES[t] = v printf "\033[0;35m%40s\033[0m => \033[0;36m%s\033[0m\n",t,v - return v else printf "\033[0;31mERROR type #{t} => #{sym} already exists!\033[0m\n" - # exit 1 + exit 1 if ETYPES[t] != v end + return v end # def get_type t @@ -128,6 +128,12 @@ def gen_typedefs path, indent next end tsym = set_type t, sym + if tsym.nil? + puts l + puts t + puts sym + exit 1 + end r << indent+"# #{l}" r << indent+"typedef #{tsym}, :#{t.downcase}" end @@ -291,10 +297,12 @@ 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_Loader.h','Evas_Loader',nil,nil) 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_Types.h','EcoreEvasTypes',nil,nil) 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') @@ -309,21 +317,12 @@ 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'+SO_MAJ # |