feat: add package googletest

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
sisungo committed 2026-11-08 05:38:38 +00:00
1 parent 0751b65860
commit 73c90e3076
1 file changed
+28
+28
View File
@@ -0,0 +1,28 @@
from lib import cpp
from lib.make import *
version("1.18.0")
description("GoogleTest - Google Testing and Mocking Framework")
maintainer("sisungo <[email protected]>")
source_managed("github://google/googletest#v1.18.0")
builddep("shortcut/c++")
builddep("shortcut/cmake")
def build():
cpp.cmake([
f"-DCMAKE_INSTALL_PREFIX={get_prefix('googletest-dev')}",
"-DCMAKE_INSTALL_LIBDIR=lib",
])
cpp.ninja()
cpp.ninja_install()
on_build(build)
package("googletest-dev")
dep("semi-libc-dev @same-arch")
dep("libcxx-dev @same-arch")
cpp.use_auto_pack(["lib", "dev"])