device/generic/common
修訂 | 7c692855211dc4163e93b039a9b2db06445e1afd (tree) |
---|---|
時間 | 2016-05-06 03:17:12 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Allow to add extra apps
Add prebuilt AndroidTerm.apk from Google Play which
is licensed under the Apache License version 2.0.
@@ -0,0 +1,36 @@ | ||
1 | +# | |
2 | +# Copyright (C) 2011-2015 The Android-x86 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 | + | |
11 | +LOCAL_PATH := $(call my-dir) | |
12 | +LOCAL_APPS := $(subst $(LOCAL_PATH)/,,$(wildcard $(LOCAL_PATH)/*$(COMMON_ANDROID_PACKAGE_SUFFIX))) | |
13 | + | |
14 | +define include-app | |
15 | +include $$(CLEAR_VARS) | |
16 | + | |
17 | +LOCAL_LIBS := $$(shell zipinfo -1 $$(LOCAL_PATH)/$(1) | grep ^lib/ | grep -v /$$$$) | |
18 | + | |
19 | +LOCAL_MODULE := $$(basename $(1)) | |
20 | +LOCAL_MODULE_TAGS := optional | |
21 | +LOCAL_MODULE_CLASS := APPS | |
22 | +LOCAL_MODULE_SUFFIX := $$(suffix $(1)) | |
23 | +LOCAL_BUILT_MODULE_STEM := package.apk | |
24 | +LOCAL_CERTIFICATE := PRESIGNED | |
25 | +LOCAL_SRC_FILES := $(1) | |
26 | +LOCAL_DEX_PREOPT := false | |
27 | +LOCAL_MODULE_TARGET_ARCH := $$(call get-prebuilt-src-arch,$$(notdir $$(patsubst %/,%,$$(dir $$(LOCAL_LIBS))))) | |
28 | +LOCAL_PREBUILT_JNI_LIBS := $$(addprefix @,$$(filter lib/$$(LOCAL_MODULE_TARGET_ARCH)/%,$$(LOCAL_LIBS))) | |
29 | +#$$(info $$(LOCAL_MODULE) LOCAL_MODULE_TARGET_ARCH=$$(LOCAL_MODULE_TARGET_ARCH)) | |
30 | +#$$(info $$(LOCAL_MODULE) LOCAL_PREBUILT_JNI_LIBS=$$(LOCAL_PREBUILT_JNI_LIBS)) | |
31 | +include $$(BUILD_PREBUILT) | |
32 | + | |
33 | +ALL_DEFAULT_INSTALLED_MODULES += $$(LOCAL_INSTALLED_MODULE) | |
34 | +endef | |
35 | + | |
36 | +$(foreach a,$(LOCAL_APPS),$(eval $(call include-app,$(a)))) |
@@ -0,0 +1,3 @@ | ||
1 | +# | |
2 | +# Put your apks here. The Android-x86 build system will add them automatically. | |
3 | +# |