How Android looks at the current project which profile is open

Source: Internet
Author: User

There are three files in the code project that are related to each profile macro, each of which is: Featureoption.java, Common/projectconfig.mk, Product/projectconfig.mk.
What is the relationship between them? How do I see which profiles are open for the current project?

[Solution]
Common/projectconfig.mk and Product/projectconfig.mk. is used to control the opening and closing of the profile macro. At compile time, the system will first look at the macro status of Product/projectconfig.mk. and set it as the macro state defined by the branch, and if this file does not have the macro, go to find common/projectconfig.mk. The results of the compilation will be written in Featureoption.java.


For example, mt6589 product under MTK_BT_PROFILE_PRXM:
If under the alps\mediatek\config\mt6589, Mtk_bt_profile_prxm=yes, under the common/projectconfig.mk. Mtk_bt_profile_prxm=no. Then the MTK_BT_PROFILE_PRXM is turned on. In the Featureoption.java, there will be: Mtk_bt_profile_prxm=yes.
If under the alps\mediatek\config\mt6589, there is no mtk_bt_profile_prxm, under Common/projectconfig.mk, Mtk_bt_profile_prxm=no, then Mtk_bt_ PROFILE_PRXM is closed, Featureoption.java will have: Mtk_bt_profile_prxm=no.

The paths of the three only files are:
Alps\mediatek\config\common\projectconfig.mk
Alps\mediatek\config\mt6589\projectconfig.mk
Alps\mediatek\source\frameworks\featureoption\java\com\mediatek\featureoption\featureoption.java
JB under: Alps\mediatek\frameworks\common\src\com\mediatek\common\featureoption\featureoption.java
Kk:alps\out\target\product\[project]\obj\java_libraries\mediatek-common_intermediates\featureoption.java

How Android looks at the current project which profile is open

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.