Android.mk vs Application.mk

后端 未结 2 1995
-上瘾入骨i
-上瘾入骨i 2021-02-18 16:23

I\'m a little fuzzy about the use of Android.mk & Application.mk

I\'ve tried reading APPLICATION-MK.HTML & ANDROID-MK.HTML in the documentation that comes with N

2条回答
  •  不要未来只要你来
    2021-02-18 16:55

    Quote from docs/OVERVIEW.html

    While an Android.mk file describes your modules to the build system, the Application.mk file describes your application itself. See the docs/APPLICATION-MK.html document to understand what this file allows you to do. This includes, among others:

    • The exact list of modules required by your application.

    • The CPU architecture(s) to generate machine code for.

    • Optional information, like whether you want a release or debug build, specific C or C++ compiler flags and others that should apply to all modules being built.

    This file is optional: by default the NDK will provide one that simply builds all the modules listed from your Android.mk (and all the makefiles it includes) and target the default CPU ABI (armeabi).

    hope it helps

提交回复
热议问题