Update xmake.lua (#1322)

* Update xmake.lua

添加DWOLFSSL_OPENSSLEXTRA编译选项...

* update wolfssl xmake.lua

Repair redundant parameters

* wolfssl add_configs

fex configs

* up wolfssl xmake.lua

Change to boolean
pull/1328/head
kapai 3 years ago committed by GitHub
parent cf3880d718
commit 1d640a5498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/w/wolfssl/xmake.lua

@ -7,12 +7,15 @@ package("wolfssl")
"https://github.com/wolfSSL/wolfssl.git")
add_versions("v5.3.0-stable", "1a3bb310dc01d3e73d9ad91b6ea8249d081016f8eef4ae8f21d3421f91ef1de9")
add_configs("openssl_extra", {description = "WOLFSSL_OPENSSLEXTRA", default = false, type = "boolean"})
add_deps("cmake")
on_install(function (package)
local configs = {}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DWOLFSSL_OPENSSLEXTRA=" .. (package:config("openssl_extra") and "yes" or "no"))
local ldflags
if package:is_plat("android") then
ldflags = "-llog"

Loading…
Cancel
Save