mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-15 22:57:12 +02:00
Initial ZMQ bindings.
This commit is contained in:
49
vendor/ZMQ/builds/mingw32/Makefile.mingw32
vendored
Normal file
49
vendor/ZMQ/builds/mingw32/Makefile.mingw32
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
CC=gcc
|
||||
CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -I.
|
||||
LIBS=-lws2_32 -lIphlpapi -lsodium
|
||||
|
||||
OBJS = ctx.o reaper.o dist.o err.o \
|
||||
clock.o metadata.o random.o \
|
||||
object.o own.o \
|
||||
io_object.o io_thread.o \
|
||||
lb.o fq.o \
|
||||
address.o tcp_address.o ipc_address.o \
|
||||
ipc_connecter.o ipc_listener.o \
|
||||
tcp_connecter.o tcp_listener.o \
|
||||
mailbox.o msg.o mtrie.o \
|
||||
pipe.o precompiled.o proxy.o \
|
||||
signaler.o stream_engine.o \
|
||||
thread.o trie.o \
|
||||
ip.o tcp.o \
|
||||
pgm_socket.o pgm_receiver.o pgm_sender.o \
|
||||
raw_decoder.o raw_encoder.o \
|
||||
v1_decoder.o v1_encoder.o v2_decoder.o v2_encoder.o \
|
||||
udp_address.o udp_engine.o radio.o dish.o \
|
||||
socket_base.o session_base.o options.o \
|
||||
req.o rep.o push.o pull.o pub.o sub.o pair.o \
|
||||
dealer.o router.o xpub.o xsub.o stream.o \
|
||||
poller_base.o select.o poll.o epoll.o kqueue.o devpoll.o \
|
||||
curve_client.o curve_server.o \
|
||||
mechanism.o null_mechanism.o plain_client.o plain_server.o \
|
||||
socks.o server.o decoder_allocators.o socks_connecter.o \
|
||||
socket_poller.o mailbox_safe.o plain_server.o client.o timers.o \
|
||||
zmq.o zmq_utils.o gather.o scatter.o dgram.o
|
||||
|
||||
%.o: ../../src/%.cpp
|
||||
$(CC) -c -o $@ $< $(CFLAGS)
|
||||
|
||||
%.o: ../../perf/%.cpp
|
||||
$(CC) -c -o $@ $< $(CFLAGS)
|
||||
|
||||
all: libzmq.dll
|
||||
|
||||
perf: inproc_lat.exe inproc_thr.exe local_lat.exe local_thr.exe remote_lat.exe remote_thr.exe
|
||||
|
||||
libzmq.dll: $(OBJS)
|
||||
g++ -shared -static -O2 -s -o $@ $^ -Wl,--out-implib,$@.a $(LIBS)
|
||||
|
||||
%.exe: %.o libzmq.dll
|
||||
g++ -o -O2 $@ $^
|
||||
|
||||
clean:
|
||||
del *.o *.a *.dll *.exe
|
43
vendor/ZMQ/builds/mingw32/platform.hpp
vendored
Normal file
43
vendor/ZMQ/builds/mingw32/platform.hpp
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
/*
|
||||
Copyright (c) 2007-2016 Contributors as noted in the AUTHORS file
|
||||
|
||||
This file is part of libzmq, the ZeroMQ core engine in C++.
|
||||
|
||||
libzmq is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU Lesser General Public License (LGPL) as published
|
||||
by the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
As a special exception, the Contributors give you permission to link
|
||||
this library with independent modules to produce an executable,
|
||||
regardless of the license terms of these independent modules, and to
|
||||
copy and distribute the resulting executable under terms of your choice,
|
||||
provided that you also meet, for each linked independent module, the
|
||||
terms and conditions of the license of that module. An independent
|
||||
module is a module which is not derived from or based on this library.
|
||||
If you modify this library, you must extend this exception to your
|
||||
version of the library.
|
||||
|
||||
libzmq 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 GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __ZMQ_PLATFORM_HPP_INCLUDED__
|
||||
#define __ZMQ_PLATFORM_HPP_INCLUDED__
|
||||
|
||||
// This is the platform definition for the MSVC platform.
|
||||
// As a first step of the build process it is copied to
|
||||
// zmq directory to take place of platform.hpp generated from
|
||||
// platform.hpp.in on platforms supported by GNU autotools.
|
||||
// Place any MSVC-specific definitions here.
|
||||
|
||||
#define ZMQ_HAVE_WINDOWS
|
||||
|
||||
#define ZMQ_USE_LIBSODIUM
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user