From 92a3de0ac0dd18c9d5512a92e89df55e17688b2b Mon Sep 17 00:00:00 2001 From: star9029 Date: Sat, 19 Aug 2023 21:44:42 +0800 Subject: [PATCH] microsoft-wtl: add package (#2467) --- packages/m/microsoft-wtl/xmake.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/m/microsoft-wtl/xmake.lua diff --git a/packages/m/microsoft-wtl/xmake.lua b/packages/m/microsoft-wtl/xmake.lua new file mode 100644 index 000000000..42a9641a4 --- /dev/null +++ b/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 + #include + void test() { + AtlInitCommonControls(ICC_WIN95_CLASSES); + } + ]]})) + end)