1# Copyright (C) 2015 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_PATH := $(call my-dir) 16 17# libupdate_verifier (static library) 18# =============================== 19include $(CLEAR_VARS) 20 21LOCAL_SRC_FILES := \ 22 update_verifier.cpp 23 24LOCAL_MODULE := libupdate_verifier 25 26LOCAL_STATIC_LIBRARIES := \ 27 libotautil 28 29LOCAL_SHARED_LIBRARIES := \ 30 libbase \ 31 libcutils \ 32 android.hardware.boot@1.0 33 34LOCAL_CFLAGS := -Wall -Werror 35 36LOCAL_EXPORT_C_INCLUDE_DIRS := \ 37 $(LOCAL_PATH)/include 38 39LOCAL_C_INCLUDES := \ 40 $(LOCAL_PATH)/include 41 42ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY),true) 43LOCAL_CFLAGS += -DPRODUCT_SUPPORTS_VERITY=1 44endif 45 46ifeq ($(BOARD_AVB_ENABLE),true) 47LOCAL_CFLAGS += -DBOARD_AVB_ENABLE=1 48endif 49 50include $(BUILD_STATIC_LIBRARY) 51 52# update_verifier (executable) 53# =============================== 54include $(CLEAR_VARS) 55 56LOCAL_SRC_FILES := \ 57 update_verifier_main.cpp 58 59LOCAL_MODULE := update_verifier 60LOCAL_STATIC_LIBRARIES := \ 61 libupdate_verifier \ 62 libotautil 63 64LOCAL_SHARED_LIBRARIES := \ 65 libbase \ 66 libcutils \ 67 libhardware \ 68 liblog \ 69 libutils \ 70 libhidlbase \ 71 android.hardware.boot@1.0 72 73LOCAL_CFLAGS := -Wall -Werror 74 75LOCAL_INIT_RC := update_verifier.rc 76 77include $(BUILD_EXECUTABLE) 78