monero/contrib/depends/packages/gtest.mk

22 lines
756 B
Makefile
Raw Normal View History

package=gtest
2024-03-31 01:43:29 +00:00
$(package)_version=1.15.2
$(package)_download_path=https://github.com/google/googletest/archive/
2024-03-31 01:43:29 +00:00
$(package)_download_file=v$($(package)_version).tar.gz
2021-06-30 21:57:09 +00:00
$(package)_file_name=$(package)-$($(package)_version).tar.gz
2024-03-31 01:43:29 +00:00
$(package)_sha256_hash=7b42b4d6ed48810c5362c265a17faebe90dc2373c885e5216439d37927f02926
define $(package)_config_cmds
2024-03-31 01:43:29 +00:00
$($(package)_cmake) -S . -B .
endef
define $(package)_build_cmds
2024-03-31 01:43:29 +00:00
$(MAKE)
endef
define $(package)_stage_cmds
mkdir $($(package)_staging_prefix_dir)/lib $($(package)_staging_prefix_dir)/include &&\
2024-03-31 01:43:29 +00:00
cp lib/libgtest.a $($(package)_staging_prefix_dir)/lib/ &&\
cp lib/libgtest_main.a $($(package)_staging_prefix_dir)/lib/ &&\
cp -a googletest/include/* $($(package)_staging_prefix_dir)/include/
endef