fix protobuf-cpp test

pull/18/head
ruki 6 years ago
parent e25ba1dd98
commit 238d242bde
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 3
      packages/p/protobuf-cpp/xmake.lua

@ -33,6 +33,7 @@ package("protobuf-cpp")
repeated TestCase case = 1;
}
]])
os.vrun("protoc test.proto --cpp_out=.")
local protoc = path.join(package:dep("protoc"):installdir("bin"), "protoc" .. (is_host("windows") and ".exe" or ""))
os.vrunv(protoc, {"test.proto", "--cpp_out=."})
assert(package:check_cxxsnippets({test = io.readfile("test.pb.cc")}, {configs = {includedirs = {".", package:installdir("include")}, languages = "c++11"}}))
end)

Loading…
Cancel
Save