summaryrefslogtreecommitdiffstats
path: root/ruby/ffi-k8055/tasks/ffi.rake
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-06 10:53:35 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-06 10:53:35 +0200
commit49e880da1dbab3850c4eb1682bafad6b57267817 (patch)
treef2bba3048b297189ef51fe304edbb4ec34736801 /ruby/ffi-k8055/tasks/ffi.rake
parent5e0aad9befe6214134a77cb267b8c89596945109 (diff)
downloadk8055-49e880da1dbab3850c4eb1682bafad6b57267817.zip
k8055-49e880da1dbab3850c4eb1682bafad6b57267817.tar.gz
add ruby/ffi-k8055
Diffstat (limited to 'ruby/ffi-k8055/tasks/ffi.rake')
-rw-r--r--ruby/ffi-k8055/tasks/ffi.rake22
1 files changed, 22 insertions, 0 deletions
diff --git a/ruby/ffi-k8055/tasks/ffi.rake b/ruby/ffi-k8055/tasks/ffi.rake
new file mode 100644
index 0000000..0ade669
--- /dev/null
+++ b/ruby/ffi-k8055/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 './tools/genruby.rb'
+ end
+end
+#
+desc 'Alias to ffi:run'
+task :ffi => 'ffi:run'
+#
+# EOF