blob: 37d9bfed3ec4203afc70389019734963e8dbe84a [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
Tao Bao83b07802017-04-26 14:30:56 -070017# libupdate_verifier (static library)
18# ===============================
Tao Bao1171d3a2015-12-05 21:21:27 -080019include $(CLEAR_VARS)
20
Tao Bao83b07802017-04-26 14:30:56 -070021LOCAL_SRC_FILES := \
22 update_verifier.cpp
23
24LOCAL_MODULE := libupdate_verifier
25LOCAL_SHARED_LIBRARIES := \
26 libbase \
27 libcutils \
28 android.hardware.boot@1.0
29
30LOCAL_CFLAGS := -Wall -Werror
31
32LOCAL_EXPORT_C_INCLUDE_DIRS := \
33 $(LOCAL_PATH)/include
34
35LOCAL_C_INCLUDES := \
36 $(LOCAL_PATH)/include
37
38ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY),true)
39LOCAL_CFLAGS += -DPRODUCT_SUPPORTS_VERITY=1
40endif
41
42include $(BUILD_STATIC_LIBRARY)
43
44# update_verifier (executable)
45# ===============================
46include $(CLEAR_VARS)
47
48LOCAL_SRC_FILES := \
49 update_verifier_main.cpp
Tianjie Xud007cf22016-02-29 16:08:06 -080050
Tao Bao1171d3a2015-12-05 21:21:27 -080051LOCAL_MODULE := update_verifier
Tao Bao83b07802017-04-26 14:30:56 -070052LOCAL_STATIC_LIBRARIES := \
53 libupdate_verifier
Tianjie Xud007cf22016-02-29 16:08:06 -080054LOCAL_SHARED_LIBRARIES := \
55 libbase \
56 libcutils \
57 libhardware \
Connor O'Brienad43d2d2016-11-21 12:47:33 -080058 liblog \
59 libutils \
60 libhidlbase \
61 android.hardware.boot@1.0
Tianjie Xud007cf22016-02-29 16:08:06 -080062
Tao Bao83b07802017-04-26 14:30:56 -070063LOCAL_CFLAGS := -Wall -Werror
Tao Bao1171d3a2015-12-05 21:21:27 -080064
Tom Cherry545317f2017-03-28 13:24:56 -070065LOCAL_INIT_RC := update_verifier.rc
66
Tao Bao1171d3a2015-12-05 21:21:27 -080067include $(BUILD_EXECUTABLE)