Jelajahi Sumber

shared/static and debug/release configuration

Maxime Griot 4 tahun lalu
induk
melakukan
cd3d05139b
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      packages/m/mhook/xmake.lua

+ 2 - 0
packages/m/mhook/xmake.lua

@@ -13,6 +13,8 @@ package("mhook")
 
     on_install("windows", function (package)
         local configs = {}
+        table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
+        table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         import("package.tools.cmake").install(package, configs)
     end)