Add rule for proto file so we can write python to use it.
I wrote another tool filter and augment the proto files, but these proto files need to have a python library for that tool. Test: m filter_teams && out/host/linux-x86/bin/filter_teams --filter_teams Change-Id: I6b259ddda2b6c09d55a9c6d445b96e5b77741f09
This commit is contained in:
@@ -27,3 +27,17 @@ bootstrap_go_package {
|
||||
"team.pb.go",
|
||||
],
|
||||
}
|
||||
|
||||
python_library_host {
|
||||
name: "teams-proto-py",
|
||||
pkg_path: "teams",
|
||||
srcs: [
|
||||
"team.proto",
|
||||
],
|
||||
libs: [
|
||||
"libprotobuf-python",
|
||||
],
|
||||
proto: {
|
||||
canonical_path_from_root: false,
|
||||
},
|
||||
}
|
||||
|
@@ -27,3 +27,17 @@ bootstrap_go_package {
|
||||
"code_metadata.pb.go",
|
||||
],
|
||||
}
|
||||
|
||||
python_library_host {
|
||||
name: "code-metadata-proto-py",
|
||||
pkg_path: "code_metadata",
|
||||
srcs: [
|
||||
"code_metadata.proto",
|
||||
],
|
||||
libs: [
|
||||
"libprotobuf-python",
|
||||
],
|
||||
proto: {
|
||||
canonical_path_from_root: false,
|
||||
},
|
||||
}
|
||||
|
@@ -27,3 +27,17 @@ bootstrap_go_package {
|
||||
"test_spec.pb.go",
|
||||
],
|
||||
}
|
||||
|
||||
python_library_host {
|
||||
name: "test-spec-proto-py",
|
||||
pkg_path: "test_spec",
|
||||
srcs: [
|
||||
"test_spec.proto",
|
||||
],
|
||||
libs: [
|
||||
"libprotobuf-python",
|
||||
],
|
||||
proto: {
|
||||
canonical_path_from_root: false,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user