• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

device/generic/common


Commit MetaInfo

修訂ccaf37f96c5e959c95c03ae65821e39fbd1edba1 (tree)
時間2015-10-06 01:15:38
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Allow to add extra apps

Add prebuilt AndroidTerm.apk from Google Play which
is licensed under the Apache License version 2.0.

Change Summary

差異

--- /dev/null
+++ b/app/Android.mk
@@ -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))))
Binary files /dev/null and b/app/AndroidTerm.apk differ
--- /dev/null
+++ b/app/README
@@ -0,0 +1,3 @@
1+#
2+# Put your apks here. The Android-x86 build system will add them automatically.
3+#