summaryrefslogtreecommitdiffstats
path: root/tasks/ffi.rake
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-20 19:46:25 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-20 19:46:25 +0200
commit5cabdfc72546899dae1fe4a8fef4d441e5113a5d (patch)
tree3f1125b502e9fb9fd1466d41c386ad7c7034b974 /tasks/ffi.rake
parent6865df2bd776a80afc485e23b223ac1dac289b86 (diff)
downloadffi-efl-5cabdfc72546899dae1fe4a8fef4d441e5113a5d.zip
ffi-efl-5cabdfc72546899dae1fe4a8fef4d441e5113a5d.tar.gz
add ffi.rake
Diffstat (limited to 'tasks/ffi.rake')
-rw-r--r--tasks/ffi.rake22
1 files changed, 22 insertions, 0 deletions
diff --git a/tasks/ffi.rake b/tasks/ffi.rake
new file mode 100644
index 0000000..7ab3ffb
--- /dev/null
+++ b/tasks/ffi.rake
@@ -0,0 +1,22 @@
+# -*- coding: UTF-8 -*-
+#
+namespace :ffi do
+ #
+ desc "extract api out of enlightenment headers, then generate bindings"
+ task :run => [ :api, :ruby ]
+ #
+ desc "extract api out of enlightenment headers"
+ task :api do
+ sh './tools/extract-api.sh'
+ end
+ #
+ desc "generate ffi bindings"
+ task :ruby do
+ sh 'ruby ./tools/genruby.rb'
+ end
+end
+#
+desc 'Alias to ffi:run'
+task :ffi => 'ffi:run'
+#
+# EOF