|
@@ -1,17 +1,25 @@
|
|
|
package("trompeloeil")
|
|
|
-
|
|
|
set_kind("library", {headeronly = true})
|
|
|
set_homepage("https://github.com/rollbear/trompeloeil")
|
|
|
set_description("A thread-safe header-only mocking framework for C++11/14 using the Boost Software License 1.0")
|
|
|
set_license("BSL-1.0")
|
|
|
|
|
|
- add_urls("https://github.com/rollbear/trompeloeil/archive/refs/tags/$(version).tar.gz")
|
|
|
+ add_urls("https://github.com/rollbear/trompeloeil/archive/refs/tags/$(version).tar.gz",
|
|
|
+ "https://github.com/rollbear/trompeloeil.git")
|
|
|
+
|
|
|
add_versions("v48", "eebd18456975251ea3450b815e241cccfefba5b883e4a36bd309f9cf629bdec6")
|
|
|
add_versions("v47", "4a1d79260c1e49e065efe0817c8b9646098ba27eed1802b0c3ba7d959e4e5e84")
|
|
|
add_versions("v43", "86a0afa2e97347202a0a883ab43da78c1d4bfff0d6cb93205cfc433d0d9eb9eb")
|
|
|
|
|
|
+ add_deps("cmake")
|
|
|
+
|
|
|
on_install(function (package)
|
|
|
- os.cp("include", package:installdir())
|
|
|
+ local configs = {
|
|
|
+ "-DTROMPELOEIL_BUILD_TESTS=OFF",
|
|
|
+ "-DTROMPELOEIL_INSTALL_DOCS=OFF"
|
|
|
+ }
|
|
|
+ table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
|
|
|
+ import("package.tools.cmake").install(package, configs)
|
|
|
end)
|
|
|
|
|
|
on_test(function (package)
|