1 # url=https://github.com/google/googlemock/archive/release-1.7.0.tar.gz
4 $(package)_version=1.7.0
5 $(package)_dependencies=googletest
7 $(package)_download_path=https://github.com/google/$(package)/archive/
8 $(package)_file_name=$(package)-$($(package)_version).tar.gz
9 $(package)_download_file=release-$($(package)_version).tar.gz
10 $(package)_sha256_hash=3f20b6acb37e5a98e8c4518165711e3e35d47deb6cdb5a4dd4566563b5efd232
12 define $(package)_build_cmds
13 $(MAKE) -C make GTEST_DIR='$(host_prefix)' CXXFLAGS='-fPIC' gmock-all.o
17 define $(package)_stage_cmds
18 install -D ./make/gmock-all.o $($(package)_staging_dir)$(host_prefix)/lib/libgmock.a && \
19 cp -a ./include $($(package)_staging_dir)$(host_prefix)/include