aboutsummaryrefslogtreecommitdiff
path: root/gps/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'gps/Android.bp')
-rw-r--r--gps/Android.bp45
1 files changed, 45 insertions, 0 deletions
diff --git a/gps/Android.bp b/gps/Android.bp
new file mode 100644
index 0000000..ea0d991
--- /dev/null
+++ b/gps/Android.bp
@@ -0,0 +1,45 @@
+GNSS_CFLAGS = [
+ "-Werror",
+ "-Wno-error=unused-parameter",
+ "-Wno-error=macro-redefined",
+ "-Wno-error=reorder",
+ "-Wno-error=missing-braces",
+ "-Wno-error=self-assign",
+ "-Wno-error=enum-conversion",
+ "-Wno-error=logical-op-parentheses",
+ "-Wno-error=null-arithmetic",
+ "-Wno-error=null-conversion",
+ "-Wno-error=parentheses-equality",
+ "-Wno-error=undefined-bool-conversion",
+ "-Wno-error=tautological-compare",
+ "-Wno-error=switch",
+ "-Wno-error=date-time",
+]
+
+/* Activate the following for regression testing */
+GNSS_SANITIZE = {
+/* address: true,*/
+ cfi: true,
+ misc_undefined: [
+ "bounds",
+ "null",
+ "unreachable",
+ "integer",
+ ],
+}
+
+/* Activate the following for debug purposes only,
+ comment out for production */
+GNSS_SANITIZE_DIAG = {
+/*
+ diag: {
+ cfi: true,
+ misc_undefined: [
+ "bounds",
+ "null",
+ "unreachable",
+ "integer",
+ ],
+ },
+*/
+}