This repository has been archived by the owner on Feb 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 267
noodling with libzmq linking #824
Merged
Merged
Changes from 60 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
a8ae07c
noodling with libzmq linking
thedavidmeister 0a29bef
use zmq-sys from upstream
thedavidmeister c509f3d
try dropping LIBZMQ_PREFIX from travis
thedavidmeister 53cc2b9
lint
thedavidmeister 1da024a
Merge branch 'develop' into 2019-01-07-static-libzmq
thedavidmeister 0b1c87f
better path handling for zmq
thedavidmeister 508be35
Merge branch '2019-01-07-static-libzmq' of github.com:holochain/holoc…
thedavidmeister 5bad844
debug windows zmq
thedavidmeister b0a2d38
remove old zmq path from path
thedavidmeister 0c8dc22
put correct zmq path back in path for windows
thedavidmeister 9b0a1d1
add bin to search directory in zmq-sys
thedavidmeister cbd0992
remove zmq path again for windows
thedavidmeister 43ea1ca
debug windows paths for zmq
thedavidmeister af3748d
set environment path for windows for zmq
thedavidmeister 1e9dca9
remove zmq from makefile
thedavidmeister 494a116
Merge branch 'develop' of github.com:holochain/holochain-rust into 20…
thedavidmeister fc90f19
remove LIBZMQ_PREFIX keep PATH for zmq
thedavidmeister fac20ab
lint zmq-sys .gitignore
thedavidmeister 7f309be
cleanup zmq-sys libs
thedavidmeister d315d0c
cleanup zmq-sys build.rs
thedavidmeister 81df5f1
add windows installation instructions to readme
thedavidmeister d2bc2e0
updated readme instructions
thedavidmeister 2c1f70a
make working
thedavidmeister 0cd62de
messing with ubuntu install to try and get a full build
thedavidmeister 39f1081
testing 0.0.3 install instructions
thedavidmeister ea79db4
Merge branch 'release-0.0.3' of github.com:holochain/holochain-rust i…
thedavidmeister 07b01b6
install node in ubuntu
thedavidmeister ff5d891
add cold ubuntu on circle
thedavidmeister 94788af
run cold.ubuntu on circle
thedavidmeister 6191029
fix circle yml
thedavidmeister c096bfa
fix circle yml
thedavidmeister 094e610
add cold nixos to circle
thedavidmeister 78b3027
set NIX_PATH for cold nixos run
thedavidmeister 15b816d
remove libzmq from nix shell
thedavidmeister f417c39
bump node in nix
thedavidmeister fb638cc
updating shell.nix for new node js
thedavidmeister 247ee23
tweak circle for nix cold
thedavidmeister a16199b
rollback to node 8 on nix
thedavidmeister 9177bd0
drop cold ubuntu job
thedavidmeister b2b1be4
don't add PATH in travis for zmq
thedavidmeister f6cddfa
write zmq dll to cargo dir
thedavidmeister 8300161
better cargo dll copying logic
thedavidmeister 3e0ed2a
debug dll copying
thedavidmeister 461177c
only copy dll on windows
thedavidmeister 93c8c52
better windows handling for dll copying for zmq
thedavidmeister c996d15
move test cmd to circle
thedavidmeister 45e4599
remove PATH instructions for windows
thedavidmeister 1da2657
create path to libzmq bin on windows
thedavidmeister b37e3c3
lint
thedavidmeister eb5d1c7
lint
thedavidmeister 1319cf5
fix zmq copying on windows
thedavidmeister 56aec14
use --release to try and shrink cache size on travis
thedavidmeister 8f030fa
lint
thedavidmeister 82fbdec
Merge branch 'develop' into 2019-01-07-static-libzmq
thedavidmeister 6146f96
Merge branch '2019-01-07-static-libzmq' of github.com:holochain/holoc…
thedavidmeister 76df8bc
add cargo rerun logic for minifest and cargo dirs in zmq
thedavidmeister 30e4877
Merge branch 'develop' into 2019-01-07-static-libzmq
thedavidmeister f64c5ca
cold ubuntu on develop only
thedavidmeister 8f6e752
lint readme
thedavidmeister a84fb63
lint shell nix
thedavidmeister bb45e09
Merge branch 'develop' into 2019-01-07-static-libzmq
thedavidmeister File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
# basics | ||
apt-get update | ||
apt-get install -y cmake curl sudo | ||
|
||
# sodium deps | ||
apt-get install -y \ | ||
libssl-dev \ | ||
pkg-config \ | ||
python2.7 | ||
|
||
# libzmq | ||
apt-get install -y \ | ||
libzmq3-dev | ||
|
||
# hc deps | ||
apt-get install -y qt5-default; | ||
|
||
# nodejs_container deps | ||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | ||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | ||
curl -sL https://deb.nodesource.com/setup_11.x | bash | ||
apt-get update && apt-get install -y nodejs yarn |
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 @@ | ||
target |
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,22 @@ | ||
[package] | ||
name = "zmq-sys" | ||
version = "0.9.0" | ||
authors = [ | ||
"a.rottmann@gmx.at", | ||
"erick.tryzelaar@gmail.com", | ||
] | ||
license = "MIT/Apache-2.0" | ||
description = "Low-level bindings to the zeromq library" | ||
keywords = ["ffi", "bindings"] | ||
repository = "https://github.com/erickt/rust-zmq" | ||
build = "build.rs" | ||
links = "zmq" | ||
|
||
[dependencies] | ||
libc = "0.2.15" | ||
|
||
[build-dependencies] | ||
metadeps = "1" | ||
|
||
[package.metadata.pkg-config] | ||
libzmq = "4.1" |
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 @@ | ||
../LICENSE-APACHE |
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 @@ | ||
../LICENSE-MIT |
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,34 @@ | ||
extern crate metadeps; | ||
|
||
use std::env; | ||
#[cfg(windows)] | ||
use std::fs; | ||
use std::path::Path; | ||
|
||
fn prefix_dir(dir: &str) -> Option<String> { | ||
env::var("CARGO_MANIFEST_DIR").ok() | ||
.map(|prefix| Path::new(&prefix).join("vendor").join("zmq").join(dir)) | ||
.and_then(|path| path.to_str().map(|p| p.to_owned())) | ||
} | ||
|
||
fn main() { | ||
println!("cargo:rerun-if-env-changed=CARGO_MANIFEST_DIR"); | ||
|
||
#[cfg(windows)] | ||
// hack to get the libzmq dll on the PATH | ||
// copies it next to cargo | ||
// kind of messy, is less than 1MB | ||
{ | ||
println!("cargo:rerun-if-env-changed=CARGO"); | ||
let dll_name = "libzmq-v140-mt-4_2_0.dll"; | ||
let cargo_path = &env::var("CARGO").unwrap(); | ||
let path_on_path = Path::new(cargo_path).parent().unwrap(); | ||
fs::copy( | ||
Path::new(&prefix_dir("bin").unwrap()).join(dll_name), | ||
path_on_path.join(dll_name), | ||
).unwrap(); | ||
} | ||
|
||
println!("cargo:rustc-link-search=native={}", &prefix_dir("lib").unwrap()); | ||
println!("cargo:include={}", &prefix_dir("include").unwrap()); | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I like this as an interim solution until we get static linking working... since this is where cargo install will put the binaries in any case.