Fix the build for Android.
- Protobuf generated code needs a warning supressed.
- The generator tests will be moved to the bazel bulid in future
Test: mm
Change-Id: I5ae5bbdddfbdf555a7734b9a83e35b0e62caae3a
diff --git a/Android.bp b/Android.bp
index 3f2409e..c45648d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -31,7 +31,10 @@
cc_defaults {
name: "nos_app_defaults",
- cflags: ["-Wno-unused-parameter"],
+ cflags: [
+ "-Wno-extended-offsetof",
+ "-Wno-unused-parameter",
+ ],
header_libs: ["nos_headers"],
shared_libs: ["libnos"],
}
diff --git a/libnos/generator/test/Android.bp b/libnos/generator/test/Android.bp
index f0325b3..2cf5255 100644
--- a/libnos/generator/test/Android.bp
+++ b/libnos/generator/test/Android.bp
@@ -19,7 +19,7 @@
out: ["Hello.client.cpp"],
srcs: ["test.proto"],
tools: ["aprotoc", "protoc-gen-nos-client-cpp"],
- cmd: GEN_SERVICE_SOURCE + "-Iexternal/libnos/generator/test",
+ cmd: GEN_SERVICE_SOURCE + "-Iexternal/libnos/libnos/generator/test",
}
genrule {
@@ -27,7 +27,7 @@
out: ["Hello.client.h"],
srcs: ["test.proto"],
tools: ["aprotoc", "protoc-gen-nos-client-cpp"],
- cmd: GEN_SERVICE_HEADER + "-Iexternal/libnos/generator/test",
+ cmd: GEN_SERVICE_HEADER + "-Iexternal/libnos/libnos/generator/test",
}
genrule {
@@ -35,7 +35,7 @@
out: ["MockHello.client.h"],
srcs: ["test.proto"],
tools: ["aprotoc", "protoc-gen-nos-client-cpp"],
- cmd: GEN_SERVICE_MOCK + "-Iexternal/libnos/generator/test",
+ cmd: GEN_SERVICE_MOCK + "-Iexternal/libnos/libnos/generator/test",
}
cc_test_host {