cpp-httplib add macro definition at load time (#2660)

* update cpp-httplib version,  add macro definition at load time

* No upgrade 0.14.0
pull/2666/head
fasiondog 1 year ago committed by GitHub
parent 0517eea8a5
commit 6ebb2d0814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/c/cpp-httplib/xmake.lua

@ -19,12 +19,15 @@ package("cpp-httplib")
on_load(function (package)
if package:config("ssl") then
package:add("deps", "openssl")
package:add("defines", "CPPHTTPLIB_OPENSSL_SUPPORT")
end
if package:config("zlib") then
package:add("deps", "zlib")
package:add("defines", "CPPHTTPLIB_ZLIB_SUPPORT")
end
if package:config("brotli") then
package:add("deps", "brotli")
package:add("defines", "CPPHTTPLIB_BROTLI_SUPPORT")
end
end)

Loading…
Cancel
Save