Permalink
Browse files

Ruby bindings for HyperDex

  • Loading branch information...
1 parent 6827892 commit 3cb4e2a038d963ca7352ce3498e046ee32604754 @rescrv committed Feb 10, 2013
Showing with 1,809 additions and 6 deletions.
  1. +13 −2 Makefile.am
  2. +873 −0 client/ruby/hyperclient.c
  3. +680 −0 client/ruby/type_conversion.cc
  4. +71 −0 client/ruby/type_conversion.h
  5. +5 −0 common/macros.h
  6. +8 −0 configure.ac
  7. +0 −4 datatypes/coercion.cc
  8. +4 −0 datatypes/coercion.h
  9. +9 −0 hyperdex.h
  10. +146 −0 m4/ax_ruby_ext.m4
View
@@ -396,8 +396,7 @@ endif
################################ Python Bindings ###############################
if ENABLE_PYTHON_BINDINGS
-pyexec_LTLIBRARIES += \
- client/python/hyperclient.la
+pyexec_LTLIBRARIES += client/python/hyperclient.la
endif
pyx_verbose = $(pyx_verbose_$(V))
@@ -412,6 +411,18 @@ client_python_hyperclient_la_CPPFLAGS = $(PYTHON_CPPFLAGS) $(CPPFLAGS)
client_python_hyperclient_la_LIBADD = libhyperclient.la $(PYTHON_LDFLAGS)
client_python_hyperclient_la_LDFLAGS = -module -avoid-version -export-symbols-regex inithyperclient
+################################# Ruby Bindings ################################
+
+if ENABLE_RUBY_BINDINGS
+rubydir = $(RUBY_EXT_LIB)
+ruby_LTLIBRARIES = client/ruby/hyperclient.la
+endif
+
+client_ruby_hyperclient_la_SOURCES = client/ruby/hyperclient.c client/ruby/type_conversion.cc
+client_ruby_hyperclient_la_CPPFLAGS = -I$(RUBY_EXT_INC) $(RUBY_EXT_CPPFLAGS) $(CPPFLAGS)
+client_ruby_hyperclient_la_LIBADD = libhyperclient.la $(RUBY_EXT_LDFLAGS)
+client_ruby_hyperclient_la_LDFLAGS = -module -avoid-version
+
################################ C/C++ Bindings ################################
client_c_testcompile_SOURCES = client/c/testcompile.c
Oops, something went wrong.

0 comments on commit 3cb4e2a

Please sign in to comment.