aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp18
1 files changed, 18 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index e57f1d7..adefa63 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,8 +12,20 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+cc_defaults {
+ name: "libcppbor_defaults",
+ cflags: [
+ "-Wall",
+ "-Wextra",
+ "-Werror",
+ ],
+}
+
cc_library {
name: "libcppbor_external",
+ defaults: [
+ "libcppbor_defaults",
+ ],
vendor_available: true,
host_supported: true,
srcs: [
@@ -31,6 +43,9 @@ cc_library {
cc_test {
name: "cppbor_test_external",
+ defaults: [
+ "libcppbor_defaults",
+ ],
srcs: [
"tests/cppbor_test.cpp"
],
@@ -46,6 +61,9 @@ cc_test {
cc_test_host {
name: "cppbor_host_test_external",
+ defaults: [
+ "libcppbor_defaults",
+ ],
srcs: [
"tests/cppbor_test.cpp"
],