Android.bp 973 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. GNSS_CFLAGS = [
  2. "-Werror",
  3. "-Wformat",
  4. "-Wformat-extra-args",
  5. "-Wunused-label",
  6. "-Wunused-variable",
  7. "-Wunused-function",
  8. "-Wimplicit-fallthrough",
  9. "-Wno-unused-parameter",
  10. "-Wno-undefined-bool-conversion",
  11. ]
  12. soong_config_module_type {
  13. name: "qtilocation_cc_defaults",
  14. module_type: "cc_defaults",
  15. config_namespace: "qtilocation",
  16. bool_variables: [
  17. "feature_nhz",
  18. ],
  19. properties: [
  20. "cflags",
  21. ],
  22. }
  23. qtilocation_cc_defaults {
  24. name: "qtilocation_common_defaults",
  25. cflags: GNSS_CFLAGS,
  26. soong_config_variables: {
  27. feature_nhz: {
  28. cflags: ["-DFEATURE_NHZ_ENABLED"],
  29. },
  30. },
  31. }
  32. /* Activate the following for debug purposes only,
  33. comment out for production */
  34. GNSS_SANITIZE_DIAG = {
  35. /*
  36. diag: {
  37. cfi: true,
  38. misc_undefined: [
  39. "bounds",
  40. "null",
  41. "unreachable",
  42. "integer",
  43. ],
  44. },
  45. */
  46. }