Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
1d650934
Commit
1d650934
authored
Aug 29, 2009
by
tamara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ruby bidning added
parent
3666a490
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
98 additions
and
3 deletions
+98
-3
Makefile.am
Makefile.am
+6
-2
configure.in
configure.in
+54
-1
Makefile.am
ruby/Makefile.am
+11
-0
extconf.rb
ruby/extconf.rb
+24
-0
zmq.cpp
ruby/zmq.cpp
+0
-0
platform.hpp.in
src/platform.hpp.in
+3
-0
No files found.
Makefile.am
View file @
1d650934
...
...
@@ -5,5 +5,9 @@ if BUILD_PYTHON
DIR_P
=
python
endif
SUBDIRS
=
src examples
$(DIR_P)
DIST_SUBDIRS
=
src examples
$(DIR_P)
if
BUILD_RUBY
DIR_R
=
ruby
endif
SUBDIRS
=
src examples
$(DIR_P)
$(DIR_R)
DIST_SUBDIRS
=
src examples
$(DIR_P)
$(DIR_R)
configure.in
View file @
1d650934
...
...
@@ -6,6 +6,10 @@ AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(src/platform.hpp)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
# librbzmq -version-info
RBLTVER="1:0:0"
AC_SUBST(RBLTVER)
AM_PROG_CC_C_O
# Checks for programs.
...
...
@@ -200,6 +204,49 @@ if test "x$with_python" != "xno"; then
pyzmq="yes"
fi
# RUBY
rbzmq="no"
AC_ARG_WITH(ruby_headersdir,
AC_HELP_STRING([--with-ruby-headersdir], [ruby.h header file location]),
[ruby_headersdir="$withval"], [ruby_headersdir="no"])
if test "x$ruby_headersdir" != "xno"; then
CPPFLAGS="${CPPFLAGS} -I${ruby_headersdir}"
fi
AC_ARG_WITH(ruby_libdir,
AC_HELP_STRING([--with-ruby-libdir],[libruby library file location]),
[ruby_libdir="$withval"], [ruby_libdir="no"])
if test "x$ruby_libdir" != "xno"; then
LDFLAGS="${LDFLAGS} -L${ruby_libdir}"
fi
AC_ARG_WITH([ruby], [AS_HELP_STRING([--with-ruby], [build ruby language binding [default=no]])], [with_ruby=yes], [with_ruby=no])
if test "x$with_ruby" != "xno"; then
AC_CHECK_HEADERS([ruby.h], [],
[AC_MSG_ERROR([Could not find Ruby header files, Please specify their location with --with-ruby-headersdir.])])
AC_SEARCH_LIBS(ruby_init,[ruby ruby1.8 ruby18],,
[AC_MSG_ERROR([Could not link with Ruby library. Please specify their location with --with-ruby-libdir.])])
rbzmq="yes"
fi
AC_ARG_WITH([rubydir], [AS_HELP_STRING([--with-rubydir],
[librbzmq install dir [default=EPREFIX/lib]])],
[rubydir="$withval"], [rubydir="_default_"])
if test "$rubydir" = "_default_"; then
rubydir=${libdir}
else
rubydir=${rubydir}
fi
RUBYDIR="$rubydir"
AC_SUBST([RUBYDIR])
if test "x$pyzmq" != "xyes"; then
AC_CHECK_PROG(have_python, python, yes, no)
if test "x$have_python" != "xyes"; then
...
...
@@ -220,6 +267,8 @@ AC_SUBST(inttypes)
# Subst ZMQ_EXTRA_CXXFLAGS
AC_SUBST(ZMQ_EXTRA_CXXFLAGS)
AM_CONDITIONAL(BUILD_PYTHON, test "x$pyzmq" = "xyes")
AM_CONDITIONAL(BUILD_RUBY, test "x$rbzmq" = "xyes")
# Checks for library functions.
AC_FUNC_MALLOC
...
...
@@ -227,7 +276,7 @@ AC_TYPE_SIGNAL
AC_CHECK_FUNCS(perror gettimeofday memset socket getifaddrs freeifaddrs)
AC_OUTPUT(Makefile src/Makefile examples/Makefile examples/chat/Makefile python/Makefile \
python/setup.py)
python/setup.py
ruby/Makefile
)
AC_MSG_RESULT([])
AC_MSG_RESULT([ ******************************************************** ])
...
...
@@ -241,5 +290,9 @@ AC_MSG_RESULT([ ******************************************************** ])
AC_MSG_RESULT([])
AC_MSG_RESULT([ 0MQ install dir: $prefix])
AC_MSG_RESULT([ Python language binding: $pyzmq])
AC_MSG_RESULT([ Ruby language binding: $rbzmq])
if test "x$rbzmq" = "xyes"; then
AC_MSG_RESULT([ Ruby library install dir: $rubydir])
fi
AC_MSG_RESULT([])
ruby/Makefile.am
0 → 100644
View file @
1d650934
INCLUDES
=
-I
$(top_builddir)
-I
$(top_srcdir)
/include
-I
$(top_builddir)
/include
rblib_LTLIBRARIES
=
librbzmq.la
rblibdir
=
@RUBYDIR@
librbzmq_la_SOURCES
=
zmq.cpp
librbzmq_la_LDFLAGS
=
-version-info
@RBLTVER@
librbzmq_la_CXXFLAGS
=
-Wall
-pedantic
-Werror
-Wno-long-long
librbzmq_la_LIBADD
=
$(top_builddir)
/src/libzmq.la
ruby/extconf.rb
0 → 100644
View file @
1d650934
#
# Copyright (c) 2007-2009 FastMQ Inc.
#
# This file is part of 0MQ.
#
# 0MQ is free software; you can redistribute it and/or modify it under
# the terms of the Lesser GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# 0MQ is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# Lesser GNU General Public License for more details.
#
# You should have received a copy of the Lesser GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
require
'mkmf'
dir_config
(
'libzmq'
)
have_library
(
'libzmq'
)
create_makefile
(
"ruby"
)
ruby/zmq.cpp
0 → 100644
View file @
1d650934
This diff is collapsed.
Click to expand it.
src/platform.hpp.in
View file @
1d650934
...
...
@@ -61,6 +61,9 @@
/* Define to 1 if you have the `perror' function. */
#undef HAVE_PERROR
/* Define to 1 if you have the <ruby.h> header file. */
#undef HAVE_RUBY_H
/* Define to 1 if you have the `socket' function. */
#undef HAVE_SOCKET
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment