summaryrefslogtreecommitdiffstats
path: root/update_verifier/Android.mk
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-04-27 23:08:53 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-04-27 23:08:54 +0200
commitc99bb23955a7ca70340057ba325d75263428402d (patch)
tree39eca01ccb277f14a0c98508b4d81d7cfcbc341f /update_verifier/Android.mk
parentMerge "libfusesideload: Clean up the CFLAGS for the module." (diff)
parentSeparate libupdate_verifier module and add testcases. (diff)
downloadandroid_bootable_recovery-c99bb23955a7ca70340057ba325d75263428402d.tar
android_bootable_recovery-c99bb23955a7ca70340057ba325d75263428402d.tar.gz
android_bootable_recovery-c99bb23955a7ca70340057ba325d75263428402d.tar.bz2
android_bootable_recovery-c99bb23955a7ca70340057ba325d75263428402d.tar.lz
android_bootable_recovery-c99bb23955a7ca70340057ba325d75263428402d.tar.xz
android_bootable_recovery-c99bb23955a7ca70340057ba325d75263428402d.tar.zst
android_bootable_recovery-c99bb23955a7ca70340057ba325d75263428402d.zip
Diffstat (limited to 'update_verifier/Android.mk')
-rw-r--r--update_verifier/Android.mk42
1 files changed, 34 insertions, 8 deletions
diff --git a/update_verifier/Android.mk b/update_verifier/Android.mk
index 1acd5eca0..37d9bfed3 100644
--- a/update_verifier/Android.mk
+++ b/update_verifier/Android.mk
@@ -14,12 +14,43 @@
LOCAL_PATH := $(call my-dir)
+# libupdate_verifier (static library)
+# ===============================
include $(CLEAR_VARS)
-LOCAL_CLANG := true
-LOCAL_SRC_FILES := update_verifier.cpp
+LOCAL_SRC_FILES := \
+ update_verifier.cpp
+
+LOCAL_MODULE := libupdate_verifier
+LOCAL_SHARED_LIBRARIES := \
+ libbase \
+ libcutils \
+ android.hardware.boot@1.0
+
+LOCAL_CFLAGS := -Wall -Werror
+
+LOCAL_EXPORT_C_INCLUDE_DIRS := \
+ $(LOCAL_PATH)/include
+
+LOCAL_C_INCLUDES := \
+ $(LOCAL_PATH)/include
+
+ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY),true)
+LOCAL_CFLAGS += -DPRODUCT_SUPPORTS_VERITY=1
+endif
+
+include $(BUILD_STATIC_LIBRARY)
+
+# update_verifier (executable)
+# ===============================
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+ update_verifier_main.cpp
LOCAL_MODULE := update_verifier
+LOCAL_STATIC_LIBRARIES := \
+ libupdate_verifier
LOCAL_SHARED_LIBRARIES := \
libbase \
libcutils \
@@ -29,13 +60,8 @@ LOCAL_SHARED_LIBRARIES := \
libhidlbase \
android.hardware.boot@1.0
-LOCAL_CFLAGS := -Werror
-LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
+LOCAL_CFLAGS := -Wall -Werror
LOCAL_INIT_RC := update_verifier.rc
-ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY),true)
- LOCAL_CFLAGS += -DPRODUCT_SUPPORTS_VERITY=1
-endif
-
include $(BUILD_EXECUTABLE)