fix protobuf-c

pull/18/head
ruki 6 years ago
parent f8a6ae21af
commit 743d0630aa
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 9
      packages/p/protobuf-c/xmake.lua

@ -16,11 +16,7 @@ package("protobuf-c")
add_deps("cmake")
end
if is_plat("windows") then
add_links("libprotobuf-c")
else
add_links("protobuf-c")
end
add_links("protobuf-c")
on_load(function (package)
package:addenv("PATH", "bin")
@ -28,7 +24,8 @@ package("protobuf-c")
on_install("windows", function (package)
os.cd("build-cmake")
import("package.tools.cmake").install(package)
import("package.tools.cmake").install(package, {"-Dprotobuf_BUILD_PROTOC_BINARIES=ON"})
os.cp("build_*/Release/protoc-gen-c.exe", path.join(package:installdir("bin"), "protoc-c.exe"))
end)
on_install("linux", "macosx", function (package)

Loading…
Cancel
Save