mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
zeromq: add libzmq as thirdparty module
This commit is contained in:
parent
ba3aec3d0e
commit
4316ecaf38
5 changed files with 18 additions and 4 deletions
|
@ -3,4 +3,5 @@
|
|||
!thirdparty/libxil/
|
||||
!thirdparty/criterion/
|
||||
!thirdparty/libwebsockets/
|
||||
!thirdparty/nanomsg/
|
||||
!thirdparty/nanomsg/
|
||||
!thirdparty/libzmq/
|
||||
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -28,3 +28,6 @@
|
|||
[submodule "thirdparty/nanomsg"]
|
||||
path = thirdparty/nanomsg
|
||||
url = https://github.com/nanomsg/nanomsg.git
|
||||
[submodule "thirdparty/libzmq"]
|
||||
path = thirdparty/libzmq
|
||||
url = https://github.com/zeromq/libzmq.git
|
||||
|
|
|
@ -45,7 +45,9 @@ RUN dnf -y install \
|
|||
libconfig-devel \
|
||||
libnl3-devel \
|
||||
libcurl-devel \
|
||||
jansson-devel
|
||||
jansson-devel \
|
||||
libsodium-devel \
|
||||
openpgm-devel
|
||||
|
||||
# Several tools only needed for developement and testing
|
||||
RUN dnf -y install \
|
||||
|
@ -85,6 +87,10 @@ RUN mkdir -p /tmp/libwebsockets/build && cd /tmp/libwebsockets/build && cmake -D
|
|||
COPY thirdparty/nanomsg /tmp/nanomsg
|
||||
RUN mkdir -p /tmp/nanomsg/build && cd /tmp/nanomsg/build && cmake .. && make install
|
||||
|
||||
# Build & Install libzmq
|
||||
COPY thirdparty/libzmq /tmp/libzmq
|
||||
RUN cd /tmp/libzmq && autoreconf -fi && ./configure --with-libsodium --with-pgm --enable-drafts && make install
|
||||
|
||||
# Cleanup intermediate files from builds
|
||||
RUN rm -rf /tmp/*
|
||||
|
||||
|
|
7
thirdparty/Makefile.inc
vendored
7
thirdparty/Makefile.inc
vendored
|
@ -21,7 +21,7 @@
|
|||
###################################################################################
|
||||
|
||||
DEPS_CMAKE = libxil libwebsockets criterion jansson nanomsg
|
||||
DEPS_AUTOCONF = libnl libconfig libcurl
|
||||
DEPS_AUTOCONF = libnl libconfig libcurl libzmq
|
||||
|
||||
DEPS = $(DEPS_CMAKE) $(DEPS_AUTOCONF)
|
||||
|
||||
|
@ -33,13 +33,15 @@ ifdef DEBUG
|
|||
AC_CXXFLAGS=-g -O0
|
||||
endif
|
||||
|
||||
CONFIGURE_OPTS = --prefix=$(PREFIX)
|
||||
|
||||
thirdparty:
|
||||
|
||||
# Install & compile autotools based projects
|
||||
$(DEPS_AUTOCONF): CPPFLAGS=$(AC_CPPFLAGS) CFLAGS=$(AC_CFLAGS) CXXFLAGS=$(AC_CXXFLAGS)
|
||||
$(DEPS_AUTOCONF): | $(BUILDDIR)/thirdparty/$$@/
|
||||
autoreconf -fi $(SRCDIR)/thirdparty/$@
|
||||
cd $(BUILDDIR)/thirdparty/$@ && $(SRCDIR)/thirdparty/$@/configure --prefix=$(PREFIX) && make
|
||||
cd $(BUILDDIR)/thirdparty/$@ && $(SRCDIR)/thirdparty/$@/configure $(CONFIGURE_OPTS) && make
|
||||
|
||||
# Install & compile CMake based projects
|
||||
$(DEPS_CMAKE): | $(BUILDDIR)/thirdparty/$$@/
|
||||
|
@ -68,5 +70,6 @@ libconfig-fix:
|
|||
rm -f $(SRCDIR)/thirdparty/libconfig/lib/scanner.[hc]
|
||||
|
||||
libwebsockets: CMAKE_OPTS += -DLWS_IPV6=1 -DLWS_WITH_STATIC=0 -DLWS_WITHOUT_TESTAPPS=1 -DLWS_WITH_HTTP2=1
|
||||
libzmq: CONFIGURE_OPTS += --with-libsodium --with-pgm --enable-drafts
|
||||
|
||||
.PHONY: $(DEPS) thirdparty clean-thirdparty install-thirdparty
|
1
thirdparty/libzmq
vendored
Submodule
1
thirdparty/libzmq
vendored
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit ec56eaaeb666960548375cc3746ac0b6927977e4
|
Loading…
Add table
Reference in a new issue