Skip to content

Commit 0abb90f

Browse files
authored
update srpc (#4531)
* update pb, srpc, gprc * rollback grpc * Update xmake.lua * Update xmake.lua * Update xmake.lua
1 parent f5d02ae commit 0abb90f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/s/srpc/xmake.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@ package("srpc")
66
add_urls("https://github.com/sogou/srpc/archive/refs/tags/$(version).tar.gz",
77
"https://github.com/sogou/srpc.git")
88

9+
add_versions("v0.10.3", "8fc8d5d0d0b0975ed4a5d266e82841c4e94eb041cb459357b92dba4e3b64ebb8")
910
add_versions("v0.10.2", "da570f3522e9dfec9c396632044fcb51b5ddc5c854ba7824d1770de138f469fb")
1011

11-
add_deps("cmake", "protobuf-cpp")
12+
add_deps("cmake", "protobuf-cpp 3.19.4", "abseil", "utf8_range")
1213
add_deps("workflow", "snappy", "lz4", "zlib")
1314

1415
on_install("linux", "macosx", function (package)
15-
local configs = {}
16+
local configs = {"-DCMAKE_CXX_STANDARD=17"}
1617
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
1718
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
1819
os.rm("third_party")
1920
io.replace("CMakeLists.txt", 'check_include_file_cxx("workflow/Workflow.h" WORKFLOW_INSTALLED)',
2021
"set(WORKFLOW_INSTALLED TRUE)", {plain = true})
2122
import("package.tools.cmake").install(package, configs, {packagedeps = {
22-
"workflow", "snappy", "lz4", "zlib"}})
23+
"workflow", "snappy", "lz4", "zlib", "abseil", "utf8_range"}})
2324
if package:config("shared") then
2425
os.rm(path.join(package:installdir("lib"), "*.a"))
2526
else

0 commit comments

Comments
 (0)