From 68fc348e5d650ae1ae4a054b2c0ae926defdd83e Mon Sep 17 00:00:00 2001 From: Hoildkv <42310255+xq114@users.noreply.github.com> Date: Tue, 18 May 2021 21:51:44 +0800 Subject: [PATCH] update flatbuffers and entt (#422) * update flatbuffers * update entt --- packages/e/entt/xmake.lua | 1 + packages/f/flatbuffers/xmake.lua | 3 +++ 2 files changed, 4 insertions(+) diff --git a/packages/e/entt/xmake.lua b/packages/e/entt/xmake.lua index 0b663706d..112eae237 100644 --- a/packages/e/entt/xmake.lua +++ b/packages/e/entt/xmake.lua @@ -5,6 +5,7 @@ package("entt") set_urls("https://github.com/skypjack/entt/archive/$(version).tar.gz", "https://github.com/skypjack/entt.git") + add_versions("v3.7.1", "fe3ce773c17797c0c57ffa97f73902854fcc8e7afc7e09bea373e0c64fa24a23") add_versions("v3.7.0", "39ad5c42acf3434f8c37e0baa18a8cb562c0845383a6b4da17fdbacc9f0a7695") add_versions("v3.6.0", "94b7dc874acd0961cfc28cf6b0342eeb0b7c58250ddde8bdc6c101e84b74c190") diff --git a/packages/f/flatbuffers/xmake.lua b/packages/f/flatbuffers/xmake.lua index 0c919e433..f6bea3f5f 100644 --- a/packages/f/flatbuffers/xmake.lua +++ b/packages/f/flatbuffers/xmake.lua @@ -5,10 +5,13 @@ package("flatbuffers") add_urls("https://github.com/google/flatbuffers/archive/v$(version).zip") add_versions("1.12.0", "4b8b21adbfe8a74b90604161afcf87c125a26b86c99327e7a04525080606536c") + add_versions("2.0.0", "ffd68aebdfb300c9e82582ea38bf4aa9ce65c77344c94d5047f3be754cc756ea") add_deps("cmake") on_install("windows", "linux", "macosx", "mingw", "android", "iphoneos", function(package) local configs = {"-DFLATBUFFERS_BUILD_TESTS=OFF"} + table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) + table.insert(configs, "-DFLATBUFFERS_BUILD_SHAREDLIB=" .. (package:config("shared") and "ON" or "OFF")) if is_plat("android", "iphoneos") then table.insert(configs, "-DFLATBUFFERS_BUILD_FLATC=OFF") table.insert(configs, "-DFLATBUFFERS_BUILD_FLATHASH=OFF")