2019-04-09 17:23:28 +00:00
|
|
|
package=gtest
|
2024-03-31 01:43:29 +00:00
|
|
|
$(package)_version=1.15.2
|
2019-04-09 17:23:28 +00:00
|
|
|
$(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
|
2019-04-09 17:23:28 +00:00
|
|
|
|
|
|
|
define $(package)_config_cmds
|
2024-03-31 01:43:29 +00:00
|
|
|
$($(package)_cmake) -S . -B .
|
2019-04-09 17:23:28 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
2024-03-31 01:43:29 +00:00
|
|
|
$(MAKE)
|
2019-04-09 17:23:28 +00:00
|
|
|
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/ &&\
|
2019-04-09 17:23:28 +00:00
|
|
|
cp -a googletest/include/* $($(package)_staging_prefix_dir)/include/
|
|
|
|
endef
|