From 1d640a5498c96e14d262cc2284a7692999e47f96 Mon Sep 17 00:00:00 2001 From: kapai <108032601+vsznjkzio@users.noreply.github.com> Date: Sun, 3 Jul 2022 22:22:22 +0800 Subject: [PATCH] Update xmake.lua (#1322) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update xmake.lua 添加DWOLFSSL_OPENSSLEXTRA编译选项... * update wolfssl xmake.lua Repair redundant parameters * wolfssl add_configs fex configs * up wolfssl xmake.lua Change to boolean --- packages/w/wolfssl/xmake.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/w/wolfssl/xmake.lua b/packages/w/wolfssl/xmake.lua index 97aa227b3..b75f86b1f 100644 --- a/packages/w/wolfssl/xmake.lua +++ b/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"