Skip to content

Commit

Permalink
Add a depends description for googletest.
Browse files Browse the repository at this point in the history
  • Loading branch information
nejucomo committed Apr 18, 2016
1 parent 94f0dcd commit 0ee1d5d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions depends/packages/googletest.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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
2 changes: 1 addition & 1 deletion depends/packages/packages.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
zerocash_packages := libsnark crypto++ libgmp libsodium
packages:=boost openssl $(zerocash_packages)
packages := boost openssl $(zerocash_packages) googletest
native_packages := native_ccache native_comparisontool

qt_native_packages = native_protobuf
Expand Down

0 comments on commit 0ee1d5d

Please sign in to comment.