clog.lua 507 B

12345678910
  1. function main(package)
  2. os.cd("deps/clog")
  3. local configs = {"-DCLOG_BUILD_TESTS=OFF"}
  4. table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
  5. table.insert(configs, "-DCLOG_RUNTIME_TYPE=" .. (package:config("shared") and "shared" or "static"))
  6. if package:config("shared") and package:is_plat("windows") then
  7. table.insert(configs, "-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON")
  8. end
  9. import("package.tools.cmake").install(package, configs)
  10. end