Path:./frameworks/base/CORE/RES/Android. mk
# Features:
#1. Support applicationsProgramCompiled resources can be used by other applications
#2. This APK has system Permissions
#3. Specify a global intermediate target dependent on local_built_module
# Set the directory of the makefile to the current directory
Local_path: = $ (call my-DIR)
# Clear the variable values used by the compilation rule template. Defined in./build/CORE/clear_vars.mk
Include $ (clear_vars)
# Not a standard Java Library
Local_no_standard_libraries: = true
# Set the package name or the generated APK name
Local_package_name: = framework-res
# Specifying a signature for the APK has system Permissions
# There are four types of signatures: testkey, platform, shared, and media. The default value is testkey.
Local_certificate: = Platform
# Tell the application that the compiled resources can be used by other applications
# Tell aapt to create "extending (non-application)" resource IDs,
# Since these resources will be used by other apps.
Local_aapt_flags: =-x
# Specify the compiling version of this module as optional
# User: indicates that this module is compiled only in the user version.
# Eng: indicates that this module is compiled only in the Eng version.
# Tests: indicates that this module is compiled only in the tests version.
# Optional: indicates that this module is compiled in all versions.
Local_module_tags: = optional
# Specify the path for installing the module in the system
# Install this alongside the libraries.
Local_module_path: = $ (target_out_java_libraries)
# Allow app resources to be used by other modules
# The default value is null.
# Create package-export.apk, which other packages can use to get
# Product-agnostic resource data like IDs and Type Definitions.
Local_export_package_resources: = true
# Run build_package. Start to compile APK
# Build_package is defined in config. mk:
# Build_package: = $ (build_system)/package. mk
Include $ (build_package)
# Define a global intermediate target and may depend on other modules.
#. Phony: Specify framework-res-package-target as a pseudo target.
# Define a global intermediate target that other module may depend on.
. Phony: Framework-res-package-Target
Framework-res-package-target: $ (local_built_module)