summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--parameter/Android.mk10
-rw-r--r--remote-process/Android.mk9
-rw-r--r--remote-processor/Android.mk10
-rw-r--r--utility/Android.mk10
-rw-r--r--xmlserializer/Android.mk10
5 files changed, 49 insertions, 0 deletions
diff --git a/parameter/Android.mk b/parameter/Android.mk
index c356c4d..e6e9891 100644
--- a/parameter/Android.mk
+++ b/parameter/Android.mk
@@ -101,6 +101,12 @@ common_src_files := \
common_module := libparameter
common_module_tags := optional
+common_cflags := \
+ -Wall \
+ -Werror \
+ -Wextra \
+ -Wno-unused-parameter
+
common_c_includes := \
$(LOCAL_PATH)/include/ \
$(LOCAL_PATH)/../utility/ \
@@ -119,6 +125,8 @@ LOCAL_COPY_HEADERS := $(common_copy_headers)
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
+LOCAL_CFLAGS := $(common_cflags)
+
LOCAL_SRC_FILES := $(common_src_files)
LOCAL_MODULE := $(common_module)
@@ -142,6 +150,8 @@ include $(CLEAR_VARS)
LOCAL_COPY_HEADERS_TO := $(common_copy_headers_to)
LOCAL_COPY_HEADERS := $(common_copy_headers)
+LOCAL_CFLAGS := $(common_cflags)
+
LOCAL_SRC_FILES := $(common_src_files)
LOCAL_MODULE := $(common_module)_host
diff --git a/remote-process/Android.mk b/remote-process/Android.mk
index cc842f2..7cf3ba7 100644
--- a/remote-process/Android.mk
+++ b/remote-process/Android.mk
@@ -9,6 +9,11 @@ common_src_files := \
common_module := remote-process
common_module_tags := optional
+common_cflags := \
+ -Wall \
+ -Werror \
+ -Wextra \
+ -Wno-unused-parameter
common_c_includes := \
$(LOCAL_PATH)/../remote-processor/
@@ -25,6 +30,8 @@ LOCAL_SRC_FILES := $(common_src_files)
LOCAL_MODULE := $(common_module)
LOCAL_MODULE_TAGS := $(common_module_tags)
+LOCAL_CFLAGS := $(common_cflags)
+
LOCAL_C_INCLUDES += \
$(common_c_includes) \
$(call include-path-for, stlport) \
@@ -45,6 +52,8 @@ LOCAL_SRC_FILES := $(common_src_files)
LOCAL_MODULE := $(common_module)_host
LOCAL_MODULE_TAGS := $(common_module_tags)
+LOCAL_CFLAGS := $(common_cflags)
+
LOCAL_C_INCLUDES += \
$(common_c_includes)
diff --git a/remote-processor/Android.mk b/remote-processor/Android.mk
index d82d548..8facae7 100644
--- a/remote-processor/Android.mk
+++ b/remote-processor/Android.mk
@@ -16,6 +16,12 @@ common_src_files := \
common_module := libremote-processor
common_module_tags := optional
+common_cflags := \
+ -Wall \
+ -Werror \
+ -Wextra \
+ -Wno-unused-parameter
+
common_ldlibs := -lpthread
#############################
# Target build
@@ -27,6 +33,8 @@ LOCAL_SRC_FILES := $(common_src_files)
LOCAL_MODULE := $(common_module)
LOCAL_MODULE_TAGS := $(common_module_tags)
+LOCAL_CFLAGS := $(common_cflags)
+
LOCAL_C_INCLUDES += \
$(call include-path-for, stlport) \
bionic/
@@ -44,6 +52,8 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(common_src_files)
+LOCAL_CFLAGS := $(common_cflags)
+
LOCAL_MODULE := $(common_module)_host
LOCAL_MODULE_TAGS := $(common_module_tags)
diff --git a/utility/Android.mk b/utility/Android.mk
index a87df1c..5249a30 100644
--- a/utility/Android.mk
+++ b/utility/Android.mk
@@ -10,6 +10,12 @@ common_src_files := \
common_module := libutility
common_module_tags := optional
+common_cflags := \
+ -Wall \
+ -Werror \
+ -Wextra \
+ -Wno-unused-parameter
+
#############################
# Target build
@@ -20,6 +26,8 @@ LOCAL_SRC_FILES := $(common_src_files)
LOCAL_MODULE := $(common_module)
LOCAL_MODULE_TAGS := $(common_module_tags)
+LOCAL_CFLAGS := $(common_cflags)
+
LOCAL_C_INCLUDES += \
$(call include-path-for, stlport) \
bionic
@@ -36,4 +44,6 @@ LOCAL_SRC_FILES := $(common_src_files)
LOCAL_MODULE := $(common_module)_host
LOCAL_MODULE_TAGS := $(common_module_tags)
+LOCAL_CFLAGS := $(common_cflags)
+
include $(BUILD_HOST_STATIC_LIBRARY)
diff --git a/xmlserializer/Android.mk b/xmlserializer/Android.mk
index 799bf1c..7fdaf71 100644
--- a/xmlserializer/Android.mk
+++ b/xmlserializer/Android.mk
@@ -19,6 +19,12 @@ common_module := libxmlserializer
common_module_tags := optional
+# Do not use the '-Werror' flag because of a compilation issue in libxml
+common_cflags := \
+ -Wall \
+ -Wextra \
+ -Wno-unused-parameter
+
common_c_includes := \
$(call include-path-for, libxml2) \
$(call include-path-for, webcore-icu) \
@@ -38,6 +44,8 @@ LOCAL_SRC_FILES := $(common_src_files)
LOCAL_MODULE := $(common_module)
LOCAL_MODULE_TAGS := $(common_module_tags)
+LOCAL_CFLAGS := $(common_cflags)
+
LOCAL_C_INCLUDES += \
$(common_c_includes) \
$(call include-path-for, stlport) \
@@ -60,6 +68,8 @@ LOCAL_SRC_FILES := $(common_src_files)
LOCAL_MODULE := $(common_module)_host
LOCAL_MODULE_TAGS := $(common_module_tags)
+LOCAL_CFLAGS := $(common_cflags)
+
LOCAL_C_INCLUDES += \
$(common_c_includes)