소스 검색

shared/static and debug/release configuration

Maxime Griot 4 년 전
부모
커밋
cd3d05139b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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)
     on_install("windows", function (package)
         local configs = {}
         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)
         import("package.tools.cmake").install(package, configs)
     end)
     end)