如何输出 android.mk 及 Application.mk 中个变量的值

想知道 android.mk 及 Application.mk 中各变量的值可以通过新建如下两个.mk文件:

  • PRINT_ANDROID_VARIABLE.mk
  • PRINT_APPLICATION_VARIABLE.mk

包含到android.mk文件中某位置:

1 include $(LOCAL_PATH)\PRINT_ANDROID_VARIABLE.mk
2 include $(LOCAL_PATH)\PRINT_APPLICATION_VARIABLE.mk

文件PRINT_ANDROID_VARIABLE.mk内容如下:

 1 $(warning  CLEAR_VARS = $(CLEAR_VARS))
 2 $(warning  BUILD_SHARED_LIBRARY = $(BUILD_SHARED_LIBRARY))
 3 $(warning  BUILD_STATIC_LIBRARY = $(BUILD_STATIC_LIBRARY))
 4 $(warning  PREBUILT_SHARED_LIBRARY = $(PREBUILT_SHARED_LIBRARY))
 5 $(warning  TARGET_ARCH = $(TARGET_ARCH))
 6 $(warning  TARGET_PLATFORM = $(TARGET_PLATFORM))
 7 $(warning  TARGET_ARCH_ABI = $(TARGET_ARCH_ABI))
 8 $(warning  TARGET_ABI = $(TARGET_ABI))
 9 $(warning  LOCAL_PATH = $(LOCAL_PATH))
10 $(warning  LOCAL_MODULE = $(LOCAL_MODULE))
11 $(warning  LOCAL_MODULE_FILENAME = $(LOCAL_MODULE_FILENAME))
12 $(warning  LOCAL_SRC_FILES = $(LOCAL_SRC_FILES))
13 $(warning  LOCAL_CPP_EXTENSION = $(LOCAL_CPP_EXTENSION))
14 $(warning  LOCAL_C_INCLUDES = $(LOCAL_C_INCLUDES))
15 $(warning  LOCAL_CFLAGS = $(LOCAL_CFLAGS))
16 $(warning  LOCAL_CXXFLAGS = $(LOCAL_CXXFLAGS))
17 $(warning  LOCAL_CPPFLAGS = $(LOCAL_CPPFLAGS))
18 $(warning  LOCAL_STATIC_LIBRARIES = $(LOCAL_STATIC_LIBRARIES))
19 $(warning  LOCAL_SHARED_LIBRARIES = $(LOCAL_SHARED_LIBRARIES))
20 $(warning  LOCAL_WHOLE_STATIC_LIBRARIES = $(LOCAL_WHOLE_STATIC_LIBRARIES))
21 $(warning  LOCAL_LDLIBS = $(LOCAL_LDLIBS))
22 $(warning  LOCAL_LDFLAGS = $(LOCAL_LDFLAGS))
23 $(warning  LOCAL_ALLOW_UNDEFINED_SYMBOLS = $(LOCAL_ALLOW_UNDEFINED_SYMBOLS))
24 $(warning  LOCAL_ARM_MODE = $(LOCAL_ARM_MODE))
25 $(warning  LOCAL_ARM_NEON = $(LOCAL_ARM_NEON))
26 $(warning  LOCAL_DISABLE_NO_EXECUTE = $(LOCAL_DISABLE_NO_EXECUTE))
27 $(warning  LOCAL_DISABLE_RELRO = $(LOCAL_DISABLE_RELRO))
28 $(warning  LOCAL_DISABLE_FORMAT_STRING_CHECKS = $(LOCAL_DISABLE_FORMAT_STRING_CHECKS))
29 $(warning  LOCAL_EXPORT_CFLAGS = $(LOCAL_EXPORT_CFLAGS))
30 $(warning  LOCAL_EXPORT_CPPFLAGS = $(LOCAL_EXPORT_CPPFLAGS))
31 $(warning  LOCAL_EXPORT_C_INCLUDES = $(LOCAL_EXPORT_C_INCLUDES))
32 $(warning  LOCAL_EXPORT_LDFLAGS = $(LOCAL_EXPORT_LDFLAGS))
33 $(warning  LOCAL_EXPORT_LDLIBS = $(LOCAL_EXPORT_LDLIBS))
34 $(warning  LOCAL_SHORT_COMMANDS = $(LOCAL_SHORT_COMMANDS))
35 $(warning  LOCAL_THIN_ARCHIVE = $(LOCAL_THIN_ARCHIVE))
36 $(warning  LOCAL_FILTER_ASM = $(LOCAL_FILTER_ASM))

文件PRINT_APPLICATION_VARIABLE.mk内容如下:

 1 $(warning  APP_PROJECT_PATH = $(APP_PROJECT_PATH))
 2 $(warning  APP_MODULES = $(APP_MODULES))
 3 $(warning  APP_OPTIM = $(APP_OPTIM))
 4 $(warning  APP_CFLAGS = $(APP_CFLAGS))
 5 $(warning  APP_CXXFLAGS = $(APP_CXXFLAGS))
 6 $(warning  APP_CPPFLAGS = $(APP_CPPFLAGS))
 7 $(warning  APP_LDFLAGS = $(APP_LDFLAGS))
 8 $(warning  APP_BUILD_SCRIPT = $(APP_BUILD_SCRIPT))
 9 $(warning  APP_ABI = $(APP_ABI))
10 $(warning  APP_PLATFORM = $(APP_PLATFORM))
11 $(warning  APP_STL = $(APP_STL))
12 $(warning  APP_GNUSTL_FORCE_CPP_FEATURES = $(APP_GNUSTL_FORCE_CPP_FEATURES))
13 $(warning  APP_SHORT_COMMANDS = $(APP_SHORT_COMMANDS))
14 $(warning  NDK_TOOLCHAIN_VERSION = $(NDK_TOOLCHAIN_VERSION))
15 $(warning  APP_PIE = $(APP_PIE))
16 $(warning  APP_THIN_ARCHIVE = $(APP_THIN_ARCHIVE))

时间: 2024-11-06 07:49:52

如何输出 android.mk 及 Application.mk 中个变量的值的相关文章

Android JNI学习笔记(三)-编译文件Android.mk、Application.mk 与camke

1. 前言 在android2.2中,加入了cmake编译,而以前都是用Android.mk.Application.mk的,今天就来记录下,他们的配置选项. 2. Android.mk Android.mk在jni目录下,用于描述构建系统的源文件以及 shared libraries .文件格式如下: 以LOCAL_PATH变量开始 LOCAL_PATH := $(call my-dir) 紧接着是CLEAR_VARS变量 include $(CLEAR_VARS) 接下来LOCAL_MODU

Cocos2d-x移植到Android平台编译的两个文件Android.mk和Application.mk

背景 首先,说说文章的背景.最近手中的一个项目,由于需求中要求提供Web界面的打印功能,当然如果没有打印机,还可以提供保存到本地.项目组长把这个"小任务"分给了我.本着努力为组长分忧解难的思想,领了任务之后,就马上开始了工作. 问题 刚开始的时候,组长给了一个工具(jatoolsprinter)让我研究,我用了一个多小时的时间,做出了一个简单的Demo,然后就是各种的测试,由于 web 打印需要浏览器安装 ActiveX 组件,在随后的测试中,我用了几款浏览器,甚至把安全级别都调到了最

Android.mk和Application.mk文件语法规范说明及举例

以下英文内容摘自:http://www.kandroid.org/ndk/docs/OVERVIEW.htmlThe Android NDK is a set of tools that allows Android application developers to embed native machine code compiled from C and/or C++ source files into their application packages. NDK development

如何在makfile中查看变量的值

在makefile中查看变量的取值是多少应该是一个比较麻烦的问题,但是本大神自己研究出一个十分方便的方法.这个方法十分简单.现在介绍如下 如果在一个十分复杂庞大的makefile文件中,有个地方用到一个变量SRC_FILE,你很想知道makefile运行到此处的时候这个变量的值为多少.那么你可以在这个变量的下面写两行东东: $(shell echo $(SRC_FILE) > readme.txt ) rrrrrrrrrrrrrrrrrrr 第一行其实是调用shell命令来将这个变量的值输入到r

关于java中属性变量默认值的问题。

主要分为两种 1.全局变量 char '/u0000' byte 0 short 0 int 0 long 0L float 0.0f double 0.0d boolean false 以上8种基本数据类型的默认值. 引用数据类型的默认值为null. 举例如下: 在平常的jdbc访问数据库的过程中,如果通过实体对象映射数据映射操作数据库,由于一些错误原因,其中实体对象中有引用数据类型的变量时没有给其赋值, 默认就是null,如果有null值参与数据库的操作,那么访问的过程中就会报SQL语句异常

angular中ng-repeat ng-if 中的变量的值控制器中为什么取不到

这个问题的本质是:v-repeat会产生子scope,这时你在控制器里拿值,相当于父scope里面取子scope的值,因为Angular.js中作用域是向上查找的,所以取不到. 操作过程如下: 相关代码如下: <table> <tr> <th>序号</th><th>姓名</th><th>工资</th><th>操作</th> </tr> <tr> <td>

Java中初始变量默认值

Java语言中有8种基本数据类型,基本情况汇总如下: 序号 数据类型 大小/位 封装类 默认值 可表示数据范围 1 byte(位) 8 Byte 0 -128~127 2 short(短整数) 16 Short 0 -32768~32767 3 int(整数) 32 Integer 0 -2147483648~2147483647 4 long(长整数) 64 Long 0L -9223372036854775808~9223372036854775807 5 float(单精度) 32 Flo

c#后台一般处理程序中把变量的值拼成json格式字符串

//一般处理程序代码string login_name = context.Request["login_name"].Trim(); BLLS data = new BLLS(); string select_id = "select use_id from sq_sgxhcom.fru_users where [email protected]"; int use_id = Convert.ToInt32(data.Select(select_id, login

Android NDK开发指南---Application.mk文件和android.mk文件

https://android.googlesource.com/platform/development/+/donut-release/ndk/docs/OVERVIEW.TXT https://android.googlesource.com/platform/ndk/+/4e159d95ebf23b5f72bb707b0cb1518ef96b3d03/docs/ANDROID-MK.TXT https://android.googlesource.com/platform/ndk/+/4