apotocki/googletest 1.18.0 (r1, linux)
- Library
- googletest
- Variant
- linux, target linux
- Channel
- stable
- Published
- 2026-11-07
- Recipe source
- https://github.com/otok-dev/recipes
32756a87cf5bd189ca4c9825159bf0713ea8cf5einrecipes/googletest/1.18/linux/ - Recipe SHA-256
a5b42084618fe50e3611922fa5c58a9c8b30ee120c843fd3a209aff15c8aaeac
Recipe files changed
Inputs
| source.commit | 063de7e9578f82b369302001269680b4b1553359 |
|---|---|
| source.git | https://github.com/google/googletest |
| source.tag | v1.18.0 |
Platforms
linux
Toolchains
cmake { default-recipe = "apotocki/cmake", version = ">= 3.20" }ninja { default-recipe = "apotocki/ninja", version = ">= 1.10" }
Recipe files
build.lua
-- The CMake project with gmock, without its own tests: libgtest.a, libgtest_main.a, libgmock.a,
-- libgmock_main.a, and one include/ with gtest/ and gmock/.
function build(slice, options, deps)
otok.cmake{
defines = { BUILD_GMOCK = true, INSTALL_GTEST = true },
}
local p = slice.prefix
local libraries = {}
for _, name in ipairs{ "gtest", "gtest_main", "gmock", "gmock_main" } do
libraries[name] = p .. "/lib/lib" .. name .. ".a"
end
return { libraries = libraries, headers = p .. "/include" }
end
recipe.toml
# The otok recipe of GoogleTest (https://github.com/apotocki/otok): gtest and gmock with their main libraries,
# static, for Linux, from the release tag.
[recipe]
api = 1
library = "googletest"
name = "googletest"
version = "1.18.0"
revision = 1
license = "BSD-3-Clause"
license-files = ["LICENSE"]
homepage = "https://github.com/google/googletest"
description = "GoogleTest and GoogleMock, Google's C++ test framework."
keywords = ["testing", "gtest", "gmock"]
linkage = ["static"]
cxx-standard = ">= 17"
[source]
git = "https://github.com/google/googletest"
commit = "063de7e9578f82b369302001269680b4b1553359"
tag = "v1.18.0"
[platforms]
supported = ["linux"]
build-on = ["linux/gcc", "linux/clang"]
[toolchains]
cmake = { version = ">= 3.20", default-recipe = "apotocki/cmake" }
ninja = { version = ">= 1.10", default-recipe = "apotocki/ninja" }
[[product]]
name = "GTest"
libraries = ["gtest"]
link = { runtime = "c++" }
[[product]]
name = "GTestMain"
libraries = ["gtest_main"]
headers = false
depends = ["GTest"]
[[product]]
name = "GMock"
libraries = ["gmock"]
headers = false
depends = ["GTest"]
[[product]]
name = "GMockMain"
libraries = ["gmock_main"]
headers = false
depends = ["GMock"]