• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "external_nanopb-c_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-BSD
7    //   SPDX-license-identifier-MIT
8    default_applicable_licenses: ["external_nanopb-c_license"],
9}
10
11python_binary_host {
12   name: "protoc-gen-nanopb",
13   main: "nanopb_generator.py",
14   srcs: [
15       "nanopb_generator.py",
16       "proto/nanopb.proto",
17       "proto/plugin.proto",
18   ],
19   proto: {
20       canonical_path_from_root: false,
21       include_dirs: ["external/protobuf/src"],
22   },
23   libs: ["libprotobuf-python"],
24   version: {
25       py2: {
26           enabled: true,
27           embedded_launcher: true,
28       },
29       py3: {
30           enabled: false,
31       },
32   },
33}
34