summaryrefslogtreecommitdiff
path: root/Android.mk (plain)
blob: aa85c8fbdbdb931c1a91324af24844c4a51c1f70
1#
2# Copyright (C) 2015 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# WARNING: Everything listed here will be built on ALL platforms,
18# including x86, the emulator, and the SDK. Modules must be uniquely
19# named (liblights.panda), and must build everywhere, or limit themselves
20# to only building on ARM if they include assembly. Individual makefiles
21# are responsible for having their own logic, for fine-grained control.
22
23LOCAL_PATH:= $(call my-dir)
24
25include $(CLEAR_VARS)
26
27LOCAL_MODULE := gatekeeper.amlogic
28
29LOCAL_MODULE_RELATIVE_PATH := hw
30
31LOCAL_SRC_FILES := \
32 GKPModule.cpp \
33 soft/SoftGateKeeperDevice.cpp
34
35# trusty/trusty_gatekeeper_ipc.c \
36# trusty/trusty_gatekeeper.cpp \
37
38LOCAL_STATIC_LIBRARIES := libscrypt_static
39LOCAL_C_INCLUDES := \
40 external/boringssl/src/include/ \
41 external/scrypt/lib/crypto \
42 system/core/base/include
43
44LOCAL_CLFAGS = -fvisibility=hidden -Wall -Werror
45
46LOCAL_SHARED_LIBRARIES := \
47 libgatekeeper \
48 liblog \
49 libcutils \
50 libcrypto
51
52LOCAL_MODULE_TAGS := optional
53
54ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo OK),OK)
55LOCAL_PROPRIETARY_MODULE := true
56endif
57
58include $(BUILD_SHARED_LIBRARY)
59