microsoft-wtl: add package (#2467)

pull/2473/head
star9029 1 year ago committed by GitHub
parent 4528eb8379
commit 92a3de0ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      packages/m/microsoft-wtl/xmake.lua

@ -0,0 +1,22 @@
package("microsoft-wtl")
set_kind("library", {headeronly = true})
set_homepage("https://wtl.sourceforge.io")
set_description("Windows Template Library (WTL) is a C++ library for developing Windows applications and UI components. It extends ATL (Active Template Library) and provides a set of classes for controls, dialogs, frame windows, GDI objects, and more.")
set_license("MS-PL")
add_urls("https://github.com/Win32-WTL/WTL.git")
add_versions("2022.3.11", "a95669345fb0b3c8be5c2607aa844f6adda7b28d")
on_install("windows", function (package)
os.cp("Include/*.h", package:installdir("include"))
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <atlbase.h>
#include <atlapp.h>
void test() {
AtlInitCommonControls(ICC_WIN95_CLASSES);
}
]]}))
end)
Loading…
Cancel
Save