Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92eb7447 authored by Ronald Braunstein's avatar Ronald Braunstein Committed by Gerrit Code Review
Browse files

Merge "Add rule for proto file so we can write python to use it." into main

parents 78885cae 1228b0ba
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -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,
    },
}
+17 −3
Original line number Diff line number Diff line
@@ -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,
    },
}
+17 −3
Original line number Diff line number Diff line
@@ -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,
    },
}