forked from hush/hush3
Joel Barker
8 years ago
13 changed files with 171 additions and 114 deletions
@ -0,0 +1,32 @@ |
|||
First off you need Apple's Xcode (at least version 7, preferably 8.x) and the Xcode Command Line Tools: |
|||
|
|||
https://itunes.apple.com/us/app/xcode/id497799835?mt=12 |
|||
|
|||
And Homebrew: |
|||
|
|||
http://brew.sh/ |
|||
|
|||
And this is the list of brew packages you'll need installed: |
|||
|
|||
```shell |
|||
brew tap discoteq/discoteq; brew install flock |
|||
brew install autoconf autogen automake |
|||
brew tap homebrew/versions; brew install homebrew/versions/gcc5 |
|||
brew install binutils |
|||
brew install protobuf |
|||
brew install coreutils |
|||
brew install wget |
|||
``` |
|||
|
|||
Get all that installed, then run: |
|||
|
|||
```shell |
|||
git clone https://github.com/j-cimb-barker/komodo.git |
|||
cd komodo |
|||
git checkout dev |
|||
./zcutil/build-mac.sh |
|||
``` |
|||
When you are done building, you need to do a few things in the [Configuration](https://github.com/zcash/zcash/wiki/1.0-User-Guide#configuration) section of the Zcash User Guide differently because we are on the Mac. All instances of `~/.zcash` need to be replaced by `~/Library/Application\ Support/Zcash` |
|||
The fetch-params.sh script, however, has already been altered to fetch the proving keys into the correct directory to conform to Mac specific naming conventions. |
|||
|
|||
Happy Building |
@ -1,20 +0,0 @@ |
|||
# url=https://github.com/google/googlemock/archive/release-1.7.0.tar.gz
|
|||
|
|||
package=googlemock |
|||
$(package)_version=1.7.0 |
|||
$(package)_dependencies=googletest |
|||
|
|||
$(package)_download_path=https://github.com/google/$(package)/archive/ |
|||
$(package)_file_name=$(package)-$($(package)_version).tar.gz |
|||
$(package)_download_file=release-$($(package)_version).tar.gz |
|||
$(package)_sha256_hash=3f20b6acb37e5a98e8c4518165711e3e35d47deb6cdb5a4dd4566563b5efd232 |
|||
|
|||
define $(package)_build_cmds |
|||
$(MAKE) -C make GTEST_DIR='$(host_prefix)' CXXFLAGS='-fPIC' gmock-all.o |
|||
endef |
|||
|
|||
|
|||
define $(package)_stage_cmds |
|||
install -D ./make/gmock-all.o $($(package)_staging_dir)$(host_prefix)/lib/libgmock.a && \
|
|||
cp -a ./include $($(package)_staging_dir)$(host_prefix)/include |
|||
endef |
@ -1,15 +0,0 @@ |
|||
package=googletest |
|||
$(package)_version=1.7.0 |
|||
$(package)_download_path=https://github.com/google/$(package)/archive/ |
|||
$(package)_file_name=$(package)-$($(package)_version).tar.gz |
|||
$(package)_download_file=release-$($(package)_version).tar.gz |
|||
$(package)_sha256_hash=f73a6546fdf9fce9ff93a5015e0333a8af3062a152a9ad6bcb772c96687016cc |
|||
|
|||
define $(package)_build_cmds |
|||
$(MAKE) -C make CXXFLAGS=-fPIC gtest.a |
|||
endef |
|||
|
|||
define $(package)_stage_cmds |
|||
install -D ./make/gtest.a $($(package)_staging_dir)$(host_prefix)/lib/libgtest.a && \
|
|||
cp -a ./include $($(package)_staging_dir)$(host_prefix)/include |
|||
endef |
@ -0,0 +1,16 @@ |
|||
#!/bin/bash |
|||
|
|||
tools=("gcc-5" "g++-5" "otool" "nm") |
|||
|
|||
echo "Platform: `uname -a`" |
|||
echo "-------------------------------------" |
|||
echo "Tool info:" |
|||
echo |
|||
for tool in "${tools[@]}" |
|||
do |
|||
echo "$tool location: `which $tool`" |
|||
echo "$tool version: `$tool --version`" |
|||
echo |
|||
echo "-------" |
|||
echo |
|||
done |
@ -0,0 +1,50 @@ |
|||
#!/bin/bash |
|||
export CC=gcc-5 |
|||
export CXX=g++-5 |
|||
export LIBTOOL=libtool |
|||
export AR=ar |
|||
export RANLIB=ranlib |
|||
export STRIP=strip |
|||
export OTOOL=otool |
|||
export NM=nm |
|||
|
|||
set -eu -o pipefail |
|||
|
|||
if [ "x$*" = 'x--help' ] |
|||
then |
|||
cat <<EOF |
|||
Usage: |
|||
|
|||
$0 --help |
|||
Show this help message and exit. |
|||
|
|||
$0 [ --enable-lcov ] [ MAKEARGS... ] |
|||
Build Zcash and most of its transitive dependencies from |
|||
source. MAKEARGS are applied to both dependencies and Zcash itself. If |
|||
--enable-lcov is passed, Zcash is configured to add coverage |
|||
instrumentation, thus enabling "make cov" to work. |
|||
EOF |
|||
exit 0 |
|||
fi |
|||
|
|||
# If --enable-lcov is the first argument, enable lcov coverage support: |
|||
LCOV_ARG='' |
|||
HARDENING_ARG='--disable-hardening' |
|||
if [ "x${1:-}" = 'x--enable-lcov' ] |
|||
then |
|||
LCOV_ARG='--enable-lcov' |
|||
HARDENING_ARG='--disable-hardening' |
|||
shift |
|||
fi |
|||
|
|||
TRIPLET=`./depends/config.guess` |
|||
PREFIX="$(pwd)/depends/$TRIPLET" |
|||
|
|||
make "$@" -C ./depends/ V=1 NO_QT=1 |
|||
|
|||
./autogen.sh |
|||
CPPFLAGS="-I$PREFIX/include -arch x86_64" LDFLAGS="-L$PREFIX/lib -arch x86_64 -Wl,-no_pie -fopenmp" \ |
|||
CXXFLAGS='-arch x86_64 -I/usr/local/Cellar/gcc5/5.4.0/include/c++/5.4.0 -I$PREFIX/include -fwrapv -fno-strict-aliasing -Werror -g -Wl,-undefined -Wl,dynamic_lookup' \ |
|||
./configure --prefix="${PREFIX}" --with-gui=no "$HARDENING_ARG" "$LCOV_ARG" |
|||
|
|||
make "$@" V=1 NO_GTEST=1 STATIC=1 |
Loading…
Reference in new issue