mirror of
https://github.com/monero-project/monero.git
synced 2025-01-21 02:04:39 +00:00
21 lines
756 B
Makefile
21 lines
756 B
Makefile
package=gtest
|
|
$(package)_version=1.15.2
|
|
$(package)_download_path=https://github.com/google/googletest/archive/
|
|
$(package)_download_file=v$($(package)_version).tar.gz
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=7b42b4d6ed48810c5362c265a17faebe90dc2373c885e5216439d37927f02926
|
|
|
|
define $(package)_config_cmds
|
|
$($(package)_cmake) -S . -B .
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE)
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
mkdir $($(package)_staging_prefix_dir)/lib $($(package)_staging_prefix_dir)/include &&\
|
|
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
|