Android. mk Analysis

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.