summaryrefslogtreecommitdiffstats
path: root/tools/genruby.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-27 06:18:35 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-27 06:18:35 +0200
commitdbab4c802acbcd62262efd44f5415285a39de011 (patch)
tree63629dfaf821397da8ff1884311f3a6ee4a9ec25 /tools/genruby.rb
parent7c63402a0087554395b97f6edc6c4cb7f10f6320 (diff)
downloadffi-efl-dbab4c802acbcd62262efd44f5415285a39de011.zip
ffi-efl-dbab4c802acbcd62262efd44f5415285a39de011.tar.gz
move generated ffi files into lib/efl/ffi
Diffstat (limited to 'tools/genruby.rb')
-rwxr-xr-xtools/genruby.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/genruby.rb b/tools/genruby.rb
index 6acf55b..e327265 100755
--- a/tools/genruby.rb
+++ b/tools/genruby.rb
@@ -2,7 +2,7 @@
# -*- coding: UTF-8 -*-
#
path = File.dirname __FILE__
-lib_path = File.join path, '..', 'lib', 'efl'
+lib_path = File.join path, '..', 'lib', 'efl', 'ffi'
#
# header, module name, lfct prefix, lib
libraries = [
@@ -10,7 +10,7 @@ libraries = [
[ 'Eet.h', 'Eet', 'eet', 'eet'],
[ 'Evas.h', 'Evas', 'evas', 'evas'],
# [ 'Evas_GL.h', 'EvasGl', 'evas_gl', 'evas'],
-# [ 'Edje.h', 'Edje', 'edje', 'edje'],
+ [ 'Edje.h', 'Edje', 'edje', 'edje'],
[ 'Ecore.h', 'Ecore', 'ecore', 'ecore'],
# [ 'Ecore_Con.h', 'EcoreCon', 'ecore_con', 'ecore'],
[ 'Ecore_Input.h', 'EcoreInput', 'ecore', 'ecore'],
@@ -237,11 +237,11 @@ def gen_functions path, indent
r
end
#
+Dir.mkdir lib_path unless Dir.exists? lib_path
+#
libraries.collect do |header,module_name,module_base,lib|
base = File.join path, 'api', header
- dir = File.join lib_path, header[0..-3].split('_').first.downcase
- Dir.mkdir dir unless Dir.exists? dir
- output = File.join dir, "#{header[0..-3].downcase}-ffi.rb"
+ output = File.join lib_path, "#{header[0..-3].downcase}.rb"
puts "parse #{base}-*"
r = [lib, output, module_name, module_base ]
r << gen_enums(base, INDENT)