Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Altina-oz authored Dec 17, 2024
1 parent 74fcb2c commit fff1530
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/g/grpc/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ package("grpc")

on_load(function (package)
package:addenv("PATH", "bin")
if package:is_cross() then
package:add("deps", "protoc")
end
end)

on_install("linux", "macosx", "windows", function (package)
Expand All @@ -54,9 +57,7 @@ package("grpc")
"-DgRPC_PROTOBUF_PACKAGE_TYPE=CONFIG"}
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"))
if package:is_cross() then
package:add("deps", "protoc")
end

import("package.tools.cmake").install(package, configs, {packagedeps = {"abseil", "protobuf-cpp"}})
end)

Expand Down

0 comments on commit fff1530

Please sign in to comment.