Android.bp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. cc_library_shared {
  2. name: "liblayers_proto",
  3. export_include_dirs: ["include"],
  4. srcs: [
  5. "LayerProtoParser.cpp",
  6. "layers.proto",
  7. "layerstrace.proto",
  8. ],
  9. shared_libs: [
  10. "[email protected]",
  11. "libgui",
  12. "libui",
  13. "libprotobuf-cpp-lite",
  14. "libbase",
  15. ],
  16. proto: {
  17. export_proto_headers: true,
  18. },
  19. cppflags: [
  20. "-Werror",
  21. "-Wno-unused-parameter",
  22. "-Wno-format",
  23. "-Wno-c++98-compat-pedantic",
  24. "-Wno-float-conversion",
  25. "-Wno-disabled-macro-expansion",
  26. "-Wno-float-equal",
  27. "-Wno-sign-conversion",
  28. "-Wno-padded",
  29. "-Wno-old-style-cast",
  30. "-Wno-undef",
  31. ],
  32. }
  33. java_library_static {
  34. name: "layersprotosnano",
  35. host_supported: true,
  36. proto: {
  37. type: "nano",
  38. },
  39. srcs: ["*.proto"],
  40. no_framework_libs: true,
  41. target: {
  42. android: {
  43. jarjar_rules: "jarjar-rules.txt",
  44. },
  45. host: {
  46. static_libs: ["libprotobuf-java-nano"],
  47. },
  48. },
  49. }