summaryrefslogtreecommitdiff
path: root/Android.mk (plain)
blob: 077bb090d37a954a21087d59c5ca5abda9fca42d
1# Copyright (C) 2012 Amlogic Inc.
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
19define PREBUILT_template
20 LOCAL_MODULE:= $(1)
21 LOCAL_MODULE_CLASS := APPS
22 LOCAL_MODULE_SUFFIX := $$(COMMON_ANDROID_PACKAGE_SUFFIX)
23 LOCAL_CERTIFICATE := platform
24 LOCAL_SRC_FILES := $$(LOCAL_MODULE).apk
25 LOCAL_REQUIRED_MODULES := $(2)
26 include $$(BUILD_PREBUILT)
27endef
28
29define PREBUILT_APP_template
30 include $$(CLEAR_VARS)
31 LOCAL_MODULE_TAGS := optional
32 ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo OK),OK)
33 LOCAL_PROPRIETARY_MODULE := true
34 endif
35 $(call PREBUILT_template, $(1), $(2))
36endef
37
38prebuilt_apps := \
39 FactoryTest \
40 RC_Service \
41 ReadLog \
42 BluetoothRemote
43
44
45$(foreach app,$(prebuilt_apps), \
46 $(eval $(call PREBUILT_APP_template, $(app),)))
47
48include $(call all-makefiles-under,$(LOCAL_PATH))
49
50