blob: c1051a54a6c757e77af852efc629633c4d8f31ff [file] [log] [blame]
Tao Bao1171d3a2015-12-05 21:21:27 -08001# 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
17include $(CLEAR_VARS)
18
19LOCAL_CLANG := true
20LOCAL_SRC_FILES := update_verifier.cpp
Tianjie Xud007cf22016-02-29 16:08:06 -080021
Tao Bao1171d3a2015-12-05 21:21:27 -080022LOCAL_MODULE := update_verifier
Tianjie Xud007cf22016-02-29 16:08:06 -080023LOCAL_SHARED_LIBRARIES := \
24 libbase \
25 libcutils \
26 libhardware \
Connor O'Brienad43d2d2016-11-21 12:47:33 -080027 liblog \
28 libutils \
29 libhidlbase \
30 android.hardware.boot@1.0
Tianjie Xud007cf22016-02-29 16:08:06 -080031
Tianjie Xu7aa88742016-09-28 11:42:17 -070032LOCAL_CFLAGS := -Werror
Tianjie Xud007cf22016-02-29 16:08:06 -080033LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
Tao Bao1171d3a2015-12-05 21:21:27 -080034
Tao Baodb57f0d2017-03-10 14:21:25 -080035ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY),true)
36 LOCAL_CFLAGS += -DPRODUCT_SUPPORTS_VERITY=1
37endif
38
Tao Bao1171d3a2015-12-05 21:21:27 -080039include $(BUILD_EXECUTABLE)