This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
forked from zeromq/czmq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a definitive czmq build for cygwin targets.
- Loading branch information
1 parent
702a00d
commit 2fedfe5
Showing
13 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
Cygwin users note: To do a complete build, you'll need to get iMatix' gsl and build | ||
it first; see https://github.com/imatix/gsl. | ||
|
||
After building and installing gsl, issue these commands in the czmq directory: | ||
|
||
cd ./model | ||
./generate | ||
cd .. | ||
./autogen.sh | ||
./configure | ||
cmake . | ||
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Known issues: | ||
|
||
czmq_selftest segfaults in zsock_test when sending a message with a binary picture type | ||
when it first calls zmsg_addmem which next invokes zframe_new, which invokes zmq_msg_data | ||
to get a pointer to the message content; zmq_msg_data returns a bad address and then | ||
memcpy segfaults. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
czmq-cygwin | ||
============= | ||
|
||
Implement a definitive build for cygwin targets. | ||
|
||
What's changed: | ||
./Makefile.am Add cygwin-specific target mostly the same as mingw | ||
./configure.ac Add cygwin-specific target mostly the same as mingw | ||
./model/build-autoconf.gsl Make changes for cygwin-specific targets | ||
./model/build-cmake.gsl Make changes for cygwin-specific targets | ||
./model/generate Make changes for cygwin-specific targets | ||
./model/generate.bat Make changes for cygwin-specific targets | ||
./model/project.gsl Make changes for cygwin-specific targets | ||
./model/Makemodule.am Make changes for cygwin-specific targets | ||
|
||
What's new: | ||
./README.cygwin This file | ||
./INSTALL.cygwin Notes on installing for cygwin | ||
./builds/cygwin Folder for cygwin-specific build files | ||
./builds/cygwin/Makefile.cygwin Makefile for cygwin targets | ||
./model/build-cygwin.gsl Add cygwin-specific target mostly the same as mingw | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
################################################################# | ||
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY # | ||
# Please read the README.txt file in the model directory. # | ||
################################################################# | ||
|
||
CC=gcc | ||
# replace the following with wherever you have installed libzmq | ||
PREFIX=/usr/local | ||
INCDIR=-I$(PREFIX)/include -I. | ||
LIBDIR=-L$(PREFIX)/lib | ||
CFLAGS=-Wall -Os -g -DLIBCZMQ_EXPORTS $(INCDIR) | ||
|
||
OBJS = zactor.o zauth.o zarmour.o zbeacon.o zcert.o zcertstore.o zchunk.o zclock.o zconfig.o zdigest.o zdir.o zdir_patch.o zfile.o zframe.o zgossip.o zhashx.o ziflist.o zlistx.o zloop.o zmonitor.o zmsg.o zpoller.o zproxy.o zrex.o zsock.o zsock_option.o zstr.o zsys.o zuuid.o zgossip_msg.o zauth_v2.o zbeacon_v2.o zctx.o zhash.o zlist.o zmonitor_v2.o zmutex.o zproxy_v2.o zsocket.o zsockopt.o zthread.o | ||
%.o: ../../src/%.c | ||
$(CC) -c -o $@ $< $(CFLAGS) | ||
|
||
all: libczmq.dll # czmq_selftest.exe | ||
|
||
libczmq.dll: $(OBJS) | ||
$(CC) -shared -o $@ $(OBJS) -Wl,--out-implib,[email protected] $(LIBDIR) -lzmq -luuid | ||
|
||
# the test functions are not exported into the DLL | ||
czmq_selftest.exe: czmq_selftest.o $(OBJS) | ||
$(CC) -o $@ $^ $(LIBDIR) -lzmq -luuid | ||
|
||
clean: | ||
del *.o *.a *.dll *.exe | ||
|
||
################################################################# | ||
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY # | ||
# Please read the README.txt file in the model directory. # | ||
################################################################# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.# Generate cygwin makefile for project | ||
.# | ||
.# This is a code generator built using the iMatix GSL code generation | ||
.# language. See https://github.com/imatix/gsl for details. This script | ||
.# is licensed under MIT/X11. | ||
.# | ||
.echo "Generating builds/cygwin/Makefile.cygwin..." | ||
.output "../builds/cygwin/Makefile.cygwin" | ||
################################################################# | ||
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY # | ||
# Please read the README.txt file in the model directory. # | ||
################################################################# | ||
|
||
CC=gcc | ||
# replace the following with wherever you have installed libzmq | ||
PREFIX=/usr/local | ||
INCDIR=-I$\(PREFIX)/include -I. | ||
LIBDIR=-L$\(PREFIX)/lib | ||
CFLAGS=-Wall -Os -g -DLIB$(PROJECT.NAME)_EXPORTS $\(INCDIR) | ||
|
||
OBJS =\ | ||
.for class | ||
$(name).o\ | ||
.endfor | ||
|
||
%.o: ../../src/%.c | ||
$\(CC) -c -o $@ $< $\(CFLAGS) | ||
|
||
all: lib$(project.name).dll # $(project.name)_selftest.exe | ||
|
||
lib$(project.name).dll: $\(OBJS) | ||
$\(CC) -shared -o $@ $\(OBJS) -Wl,--out-implib,[email protected] $\(LIBDIR) -lzmq -luuid | ||
|
||
# the test functions are not exported into the DLL | ||
$(project.name)_selftest.exe: $(project.name)_selftest.o $\(OBJS) | ||
$\(CC) -o $@ $^ $\(LIBDIR) -lzmq -luuid | ||
|
||
clean: | ||
del *.o *.a *.dll *.exe | ||
|
||
################################################################# | ||
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY # | ||
# Please read the README.txt file in the model directory. # | ||
################################################################# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters