2
0

xmake.lua 913 B

12345678910111213141516171819202122
  1. package("microsoft-wtl")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://wtl.sourceforge.io")
  4. 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.")
  5. set_license("MS-PL")
  6. add_urls("https://github.com/Win32-WTL/WTL.git")
  7. add_versions("2022.3.11", "a95669345fb0b3c8be5c2607aa844f6adda7b28d")
  8. on_install("windows", function (package)
  9. os.cp("Include/*.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <atlbase.h>
  14. #include <atlapp.h>
  15. void test() {
  16. AtlInitCommonControls(ICC_WIN95_CLASSES);
  17. }
  18. ]]}))
  19. end)