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### 18# libgatekeeper contains just the code necessary to communicate with a 19# GoogleGateKeeper implementation, e.g. one running in TrustZone. 20## 21include $(CLEAR_VARS) 22LOCAL_MODULE:= libgatekeeper 23LOCAL_SRC_FILES := \ 24 gatekeeper_messages.cpp \ 25 gatekeeper.cpp 26LOCAL_C_INCLUDES := \ 27 $(LOCAL_PATH)/include 28LOCAL_CFLAGS = -Wall -Werror -g 29LOCAL_MODULE_TAGS := optional 30LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 31LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 32# TODO(krasin): reenable coverage flags, when the new Clang toolchain is released. 33# Currently, if enabled, these flags will cause an internal error in Clang. 34# Bug: 25119481 35LOCAL_CLANG_CFLAGS += -fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp 36 37include $(BUILD_SHARED_LIBRARY) 38 39### 40# libgatekeeper_static is an empty static library that exports 41# all of the files in gatekeeper as includes. 42### 43include $(CLEAR_VARS) 44LOCAL_MODULE := libgatekeeper_static 45LOCAL_EXPORT_C_INCLUDE_DIRS := \ 46 $(LOCAL_PATH) \ 47 $(LOCAL_PATH)/include 48LOCAL_MODULE_TAGS := optional 49LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 50include $(BUILD_STATIC_LIBRARY) 51 52include $(call first-makefiles-under,$(LOCAL_PATH)) 53