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:
parent
2485ab46cd
commit
72db8e0240
@ -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;
|
||||
|
@ -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):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user