blob: 12972f14514bbd2f832bd4cd51cc3ca4a59e453a [file] [log] [blame]
Todd Kennedy5585dd92016-03-29 13:07:01 -07001#
2# Copyright (C) 2016 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
17LOCAL_PATH := $(call my-dir)
18
19###########################################################
20# Variant: Privileged app
21
22include $(CLEAR_VARS)
Todd Kennedy20047d72016-04-20 14:07:07 -070023
24LOCAL_MODULE := CtsShimPrivPrebuilt
25LOCAL_MODULE_TAGS := optional
Todd Kennedy5585dd92016-03-29 13:07:01 -070026# this needs to be a privileged application
27LOCAL_PRIVILEGED_MODULE := true
Todd Kennedy20047d72016-04-20 14:07:07 -070028LOCAL_MODULE_CLASS := APPS
29LOCAL_BUILT_MODULE_STEM := package.apk
30# Make sure the build system doesn't try to resign the APK
31LOCAL_CERTIFICATE := PRESIGNED
Todd Kennedyffe4fcb2016-05-03 11:11:39 -070032LOCAL_DEX_PREOPT := false
Winston Man50365002017-10-17 21:24:31 +010033LOCAL_MODULE_TARGET_ARCH := arm arm64 x86 x86_64
Todd Kennedy5585dd92016-03-29 13:07:01 -070034
Anton Hansson69658072018-02-08 13:32:40 +000035LOCAL_SRC_FILES_arm := apk/arm/CtsShimPriv.apk
36LOCAL_SRC_FILES_arm64 := apk/arm/CtsShimPriv.apk
37LOCAL_SRC_FILES_x86 := apk/x86/CtsShimPriv.apk
38LOCAL_SRC_FILES_x86_64 := apk/x86/CtsShimPriv.apk
Todd Kennedy5585dd92016-03-29 13:07:01 -070039
Todd Kennedy20047d72016-04-20 14:07:07 -070040include $(BUILD_PREBUILT)
Todd Kennedy5585dd92016-03-29 13:07:01 -070041
42
43###########################################################
44# Variant: System app
45
46include $(CLEAR_VARS)
47
Todd Kennedy20047d72016-04-20 14:07:07 -070048LOCAL_MODULE := CtsShimPrebuilt
Todd Kennedy5585dd92016-03-29 13:07:01 -070049LOCAL_MODULE_TAGS := optional
Todd Kennedy20047d72016-04-20 14:07:07 -070050LOCAL_MODULE_CLASS := APPS
51LOCAL_BUILT_MODULE_STEM := package.apk
52# Make sure the build system doesn't try to resign the APK
53LOCAL_CERTIFICATE := PRESIGNED
Todd Kennedyffe4fcb2016-05-03 11:11:39 -070054LOCAL_DEX_PREOPT := false
Winston Man50365002017-10-17 21:24:31 +010055LOCAL_MODULE_TARGET_ARCH := arm arm64 x86 x86_64
Todd Kennedy5585dd92016-03-29 13:07:01 -070056
Anton Hansson69658072018-02-08 13:32:40 +000057LOCAL_SRC_FILES_arm := apk/arm/CtsShim.apk
58LOCAL_SRC_FILES_arm64 := apk/arm/CtsShim.apk
59LOCAL_SRC_FILES_x86 := apk/x86/CtsShim.apk
60LOCAL_SRC_FILES_x86_64 := apk/x86/CtsShim.apk
Todd Kennedy5585dd92016-03-29 13:07:01 -070061
Todd Kennedy20047d72016-04-20 14:07:07 -070062include $(BUILD_PREBUILT)
Todd Kennedy5585dd92016-03-29 13:07:01 -070063
Dan Willemsen06b93912016-06-08 15:08:04 -070064include $(call all-makefiles-under,$(LOCAL_PATH))