Merge SDK support for source.properties templates.
Requires build.git change Ib36928097 Change-Id: Ida0c471fe166a1388584f2cf2250e07040ed0e55
This commit is contained in:
@@ -1,3 +1,39 @@
|
|||||||
|
# ===== SDK source.property files =====
|
||||||
|
|
||||||
|
# Add all files to be generated from the source.prop templates to the SDK pre-requisites
|
||||||
|
ALL_SDK_FILES += $(patsubst \
|
||||||
|
$(TOPDIR)development/sdk/%_source.prop_template, \
|
||||||
|
$(HOST_OUT)/development/sdk/%_source.properties, \
|
||||||
|
$(wildcard $(TOPDIR)development/sdk/*_source.prop_template)) \
|
||||||
|
$(patsubst \
|
||||||
|
$(TOPDIR)development/samples/%_source.prop_template, \
|
||||||
|
$(HOST_OUT)/development/samples/%_source.properties, \
|
||||||
|
$(wildcard $(TOPDIR)development/samples/*_source.prop_template))
|
||||||
|
|
||||||
|
# Rule to convert a source.prop template into the desired source.property
|
||||||
|
# Rewritten variables:
|
||||||
|
# - ${PLATFORM_VERSION} e.g. "1.0"
|
||||||
|
# - ${PLATFORM_SDK_VERSION} e.g. "3", aka the API level
|
||||||
|
# - ${PLATFORM_VERSION_CODENAME} e.g. "REL" (transformed into "") or "Cupcake"
|
||||||
|
$(HOST_OUT)/development/sdk/%_source.properties : $(TOPDIR)development/sdk/%_source.prop_template
|
||||||
|
@echo Generate $@
|
||||||
|
$(hide) mkdir -p $(dir $@)
|
||||||
|
$(hide) sed -e 's/$${PLATFORM_VERSION}/$(PLATFORM_VERSION)/' \
|
||||||
|
-e 's/$${PLATFORM_SDK_VERSION}/$(PLATFORM_SDK_VERSION)/' \
|
||||||
|
-e 's/$${PLATFORM_VERSION_CODENAME}/$(subst REL,,$(PLATFORM_VERSION_CODENAME))/' \
|
||||||
|
$< > $@
|
||||||
|
|
||||||
|
$(HOST_OUT)/development/samples/%_source.properties : $(TOPDIR)development/samples/%_source.prop_template
|
||||||
|
@echo Generate $@
|
||||||
|
$(hide) mkdir -p $(dir $@)
|
||||||
|
$(hide) sed -e 's/$${PLATFORM_VERSION}/$(PLATFORM_VERSION)/' \
|
||||||
|
-e 's/$${PLATFORM_SDK_VERSION}/$(PLATFORM_SDK_VERSION)/' \
|
||||||
|
-e 's/$${PLATFORM_VERSION_CODENAME}/$(subst REL,,$(PLATFORM_VERSION_CODENAME))/' \
|
||||||
|
$< > $@
|
||||||
|
|
||||||
|
|
||||||
|
# ===== Android Support/Compatibility Library =====
|
||||||
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
# The source files for this library are _all_ generated, something we don't do
|
# The source files for this library are _all_ generated, something we don't do
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ external/clang/LICENSE.TXT platform-tools/renderscript/clang-
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
# version files for the SDK updater, from development.git
|
# version files for the SDK updater, from development.git
|
||||||
development/sdk/platform_source.properties platforms/${PLATFORM_NAME}/source.properties
|
${HOST_OUT}/development/sdk/platform_source.properties platforms/${PLATFORM_NAME}/source.properties
|
||||||
|
|
||||||
# copy build prop from out/.../sdk/
|
# copy build prop from out/.../sdk/
|
||||||
sdk/sdk-build.prop platforms/${PLATFORM_NAME}/build.prop
|
sdk/sdk-build.prop platforms/${PLATFORM_NAME}/build.prop
|
||||||
@@ -132,7 +132,7 @@ system/build.prop system-images/${PLATFORM_NAME}/${TARG
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
# version files for the SDK updater, from sdk.git
|
# version files for the SDK updater, from sdk.git
|
||||||
development/sdk/doc_source.properties docs/source.properties
|
${HOST_OUT}/development/sdk/doc_source.properties docs/source.properties
|
||||||
|
|
||||||
# the docs
|
# the docs
|
||||||
docs/offline-sdk docs
|
docs/offline-sdk docs
|
||||||
@@ -148,7 +148,7 @@ frameworks/base/docs/docs-samples-redirect.html docs/samples/index.html
|
|||||||
# the list here should match the list of samples that we generate docs for,
|
# the list here should match the list of samples that we generate docs for,
|
||||||
# (see web_docs_sample_code_flags in frameworks/base/Android.mk)
|
# (see web_docs_sample_code_flags in frameworks/base/Android.mk)
|
||||||
development/apps/GestureBuilder samples/${PLATFORM_NAME}/GestureBuilder
|
development/apps/GestureBuilder samples/${PLATFORM_NAME}/GestureBuilder
|
||||||
development/samples/source.properties samples/${PLATFORM_NAME}/source.properties
|
development/samples/samples_source.properties samples/${PLATFORM_NAME}/source.properties
|
||||||
#
|
#
|
||||||
# PLEASE KEEP THE SAMPLES IN ALPHABETICAL ORDER.
|
# PLEASE KEEP THE SAMPLES IN ALPHABETICAL ORDER.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class Params(object):
|
|||||||
self.CNT_NOPKG = 0
|
self.CNT_NOPKG = 0
|
||||||
# DIR is the list of directories to scan in TOPDIR.
|
# DIR is the list of directories to scan in TOPDIR.
|
||||||
self.DIR = "frameworks libcore"
|
self.DIR = "frameworks libcore"
|
||||||
self.IGNORE_DIR = [ "hosttests" ]
|
self.IGNORE_DIR = [ "hosttests" "tools" "tests" ]
|
||||||
# IGNORE is a list of namespaces to ignore. Must be java
|
# IGNORE is a list of namespaces to ignore. Must be java
|
||||||
# package definitions (e.g. "com.blah.foo.")
|
# package definitions (e.g. "com.blah.foo.")
|
||||||
self.IGNORE = [ "sun.", "libcore.", "dalvik.",
|
self.IGNORE = [ "sun.", "libcore.", "dalvik.",
|
||||||
|
|||||||
@@ -90,10 +90,10 @@ endef
|
|||||||
# $3=package to create, must be "sources"
|
# $3=package to create, must be "sources"
|
||||||
#
|
#
|
||||||
define mk-sdk-repo-sources
|
define mk-sdk-repo-sources
|
||||||
$(call sdk-repo-pkg-zip,$(1),$(2),$(3)): $(2) $(TOPDIR)development/sdk/source_source.properties
|
$(call sdk-repo-pkg-zip,$(1),$(2),$(3)): $(2) $(HOST_OUT)/development/sdk/source_source.properties
|
||||||
@echo "Building SDK sources package"
|
@echo "Building SDK sources package"
|
||||||
$(hide) $(TOPDIR)development/build/tools/mk_sources_zip.py --exec-zip \
|
$(hide) $(TOPDIR)development/build/tools/mk_sources_zip.py --exec-zip \
|
||||||
$(TOPDIR)development/sdk/source_source.properties \
|
$(HOST_OUT)/development/sdk/source_source.properties \
|
||||||
$(call sdk-repo-pkg-zip,$(1),$(2),$(3)) \
|
$(call sdk-repo-pkg-zip,$(1),$(2),$(3)) \
|
||||||
$(TOPDIR).
|
$(TOPDIR).
|
||||||
$(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(1),$(2),$(3)))
|
$(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(1),$(2),$(3)))
|
||||||
|
|||||||
4
samples/samples_source.prop_template
Normal file
4
samples/samples_source.prop_template
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Pkg.UserSrc=false
|
||||||
|
Pkg.Revision=1
|
||||||
|
AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION}
|
||||||
|
AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME}
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
Pkg.UserSrc=false
|
|
||||||
Pkg.Revision=1
|
|
||||||
AndroidVersion.ApiLevel=15
|
|
||||||
#AndroidVersion.CodeName=
|
|
||||||
4
sdk/doc_source.prop_template
Normal file
4
sdk/doc_source.prop_template
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Pkg.UserSrc=false
|
||||||
|
Pkg.Revision=1
|
||||||
|
AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION}
|
||||||
|
AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME}
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
Pkg.UserSrc=false
|
|
||||||
Pkg.Revision=1
|
|
||||||
AndroidVersion.ApiLevel=15
|
|
||||||
#AndroidVersion.CodeName=
|
|
||||||
|
|
||||||
6
sdk/images_armeabi-v7a_source.prop_template
Normal file
6
sdk/images_armeabi-v7a_source.prop_template
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Pkg.Desc=Android SDK Platform ${PLATFORM_VERSION}
|
||||||
|
Pkg.UserSrc=false
|
||||||
|
Pkg.Revision=1
|
||||||
|
AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION}
|
||||||
|
AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME}
|
||||||
|
SystemImage.Abi=armeabi-v7a
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
Pkg.Desc=Android SDK Platform 4.0.3
|
|
||||||
Pkg.UserSrc=false
|
|
||||||
Pkg.Revision=1
|
|
||||||
AndroidVersion.ApiLevel=15
|
|
||||||
#AndroidVersion.CodeName=
|
|
||||||
SystemImage.Abi=armeabi-v7a
|
|
||||||
6
sdk/images_armeabi_source.prop_template
Normal file
6
sdk/images_armeabi_source.prop_template
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Pkg.Desc=Android SDK Platform ${PLATFORM_VERSION}
|
||||||
|
Pkg.UserSrc=false
|
||||||
|
Pkg.Revision=1
|
||||||
|
AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION}
|
||||||
|
AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME}
|
||||||
|
SystemImage.Abi=armeabi
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
Pkg.Desc=Android SDK Platform 4.0.3
|
|
||||||
Pkg.UserSrc=false
|
|
||||||
Pkg.Revision=1
|
|
||||||
AndroidVersion.ApiLevel=15
|
|
||||||
#AndroidVersion.CodeName=
|
|
||||||
SystemImage.Abi=armeabi
|
|
||||||
6
sdk/images_x86_source.prop_template
Normal file
6
sdk/images_x86_source.prop_template
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Pkg.Desc=Android SDK Platform ${PLATFORM_VERSION}
|
||||||
|
Pkg.UserSrc=false
|
||||||
|
Pkg.Revision=1
|
||||||
|
AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION}
|
||||||
|
AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME}
|
||||||
|
SystemImage.Abi=x86
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
Pkg.Desc=Android SDK Platform 4.0.3
|
|
||||||
Pkg.UserSrc=false
|
|
||||||
Pkg.Revision=1
|
|
||||||
AndroidVersion.ApiLevel=15
|
|
||||||
#AndroidVersion.CodeName=
|
|
||||||
SystemImage.Abi=x86
|
|
||||||
9
sdk/platform_source.prop_template
Normal file
9
sdk/platform_source.prop_template
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Pkg.Desc=Android SDK Platform ${PLATFORM_VERSION}
|
||||||
|
Pkg.UserSrc=false
|
||||||
|
Platform.Version=${PLATFORM_VERSION}
|
||||||
|
Pkg.Revision=1
|
||||||
|
AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION}
|
||||||
|
AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME}
|
||||||
|
Layoutlib.Api=7
|
||||||
|
Layoutlib.Revision=1
|
||||||
|
Platform.MinToolsRev=15
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
Pkg.Desc=Android SDK Platform 4.0.3
|
|
||||||
Pkg.UserSrc=false
|
|
||||||
Platform.Version=4.0.3
|
|
||||||
Pkg.Revision=1
|
|
||||||
AndroidVersion.ApiLevel=15
|
|
||||||
#AndroidVersion.CodeName=
|
|
||||||
Layoutlib.Api=7
|
|
||||||
Layoutlib.Revision=1
|
|
||||||
Platform.MinToolsRev=15
|
|
||||||
4
sdk/source_source.prop_template
Normal file
4
sdk/source_source.prop_template
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Pkg.UserSrc=false
|
||||||
|
Pkg.Revision=1
|
||||||
|
AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION}
|
||||||
|
AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME}
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
Pkg.UserSrc=false
|
|
||||||
Pkg.Revision=1
|
|
||||||
AndroidVersion.ApiLevel=15
|
|
||||||
#AndroidVersion.CodeName=
|
|
||||||
Reference in New Issue
Block a user