2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

Update the protobuf example

This commit is contained in:
Waf Project 2024-05-20 23:24:32 +02:00
parent 2485ab46cd
commit 72db8e0240
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,4 @@
syntax = "proto2";
package udp.tc.tests;
option java_package = "com.udp.tc.tests";
@ -6,7 +7,6 @@ option cc_generic_services = false;
option java_generic_services = false;
option py_generic_services = false;
message IncludeMe {
required int32 test = 1;
optional uint32 blah = 2;

View File

@ -13,8 +13,12 @@ def options(opt):
def configure(conf):
conf.load('compiler_cxx java protoc')
# Here you have to point to your protobuf-java JAR
conf.env.CLASSPATH_PROTOBUF = ['/usr/share/maven-repo/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.jar']
# set this
protobuf = '/usr/share/maven-repo/com/google/protobuf/protobuf-java-util/3.21.12/protobuf-java-util-3.21.12.jar'
if not os.path.exists(protobuf):
conf.fatal("set the path to the protobuf library in this example, for example %s" % protobuf)
conf.env.CLASSPATH_PROTOBUF = protobuf
def build(bld):