* Add WIL

* [WIL] Allow package only on windows

* [WIL] Remove CMake dependency

* [WIL] Enable package on Mingw

* [WIL] add missing windows.h for test

* [WIL] Fix Test

* Revert "[WIL] Enable package on Mingw"

This reverts commit b24cf92cbb.
pull/1491/head
Arthur Laurent 2 years ago committed by GitHub
parent 75f4ff4b66
commit 84a7e19410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      packages/w/wil/xmake.lua

@ -0,0 +1,22 @@
package("wil")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/microsoft/wil")
set_description("The Windows Implementation Libraries (WIL) is a header-only C++ library created to make life easier for developers on Windows through readable type-safe C++ interfaces for common Windows coding patterns.")
set_license("MIT")
add_urls("https://github.com/microsoft/wil.git")
add_versions("2022.09.16", "5f4caba4e7a9017816e47becdd918fcc872039ba")
on_install("windows", function (package)
os.cp("include", package:installdir())
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <windows.h>
#include <wil/win32_helpers.h>
void test() {
auto foo = wil::GetModuleInstanceHandle();
}
]]}, {configs = {languages = "c++17"}, includes = {"windows.h", "wil/win32_helpers.h"}}))
end)
Loading…
Cancel
Save