/build/core/config.mk

# 如果定义了ANDROID_BUILD_SHELL,则ANDROID_BUILD_SHELL
# 否则使用默认的/bin/bash
ifdef ANDROID_BUILD_SHELL
SHELL := $(ANDROID_BUILD_SHELL)
else
SHELL := /bin/bash
endif

# Utility variables.
empty :=
space := $(empty) $(empty)
comma := ,
# Note that make will eat the newline just before endef.
define newline

endef
# 不能简单的定义\或\backslash := \a
backslash := $(patsubst %a,%,$(backslash))

# python有关
export PYTHONDONTWRITEBYTECODE := 1

# 标准源目录
SRC_DOCS:= $(TOPDIR)docs
# TODO: 强制一些层,当模块连接针对特定库时仅仅添加一些头文件路径
# TODO: 查看可以从这些全局列表删除的。
SRC_HEADERS :=         $(TOPDIR)system/core/include         $(TOPDIR)hardware/libhardware/include         $(TOPDIR)hardware/libhardware_legacy/include         $(TOPDIR)hardware/ril/include         $(TOPDIR)libnativehelper/include         $(TOPDIR)frameworks/native/include         $(TOPDIR)frameworks/native/opengl/include         $(TOPDIR)frameworks/av/include         $(TOPDIR)frameworks/base/include
SRC_HOST_HEADERS:=$(TOPDIR)tools/include
SRC_LIBRARIES:= $(TOPDIR)libs
SRC_SERVERS:= $(TOPDIR)servers
SRC_TARGET_DIR := $(TOPDIR)build/target
SRC_API_DIR := $(TOPDIR)prebuilts/sdk/api
SRC_SYSTEM_API_DIR := $(TOPDIR)prebuilts/sdk/system-api

# 特定工具的路径
SRC_DROIDDOC_DIR := $(TOPDIR)build/tools/droiddoc

# 避免硬件解码路径被覆盖的调用pathmap.mk建立硬解映射
include $(BUILD_SYSTEM)/pathmap.mk

# 构建系统内部文件(写Android.mk时会调用include头文件,也就是这些makefile文件)
CLEAR_VARS:= $(BUILD_SYSTEM)/clear_vars.mk
BUILD_HOST_STATIC_LIBRARY:= $(BUILD_SYSTEM)/host_static_library.mk
BUILD_HOST_SHARED_LIBRARY:= $(BUILD_SYSTEM)/host_shared_library.mk
BUILD_STATIC_LIBRARY:= $(BUILD_SYSTEM)/static_library.mk
BUILD_RAW_STATIC_LIBRARY := $(BUILD_SYSTEM)/raw_static_library.mk
BUILD_SHARED_LIBRARY:= $(BUILD_SYSTEM)/shared_library.mk
BUILD_EXECUTABLE:= $(BUILD_SYSTEM)/executable.mk
BUILD_RAW_EXECUTABLE:= $(BUILD_SYSTEM)/raw_executable.mk
BUILD_HOST_EXECUTABLE:= $(BUILD_SYSTEM)/host_executable.mk
BUILD_PACKAGE:= $(BUILD_SYSTEM)/package.mk
BUILD_PHONY_PACKAGE:= $(BUILD_SYSTEM)/phony_package.mk
BUILD_HOST_PREBUILT:= $(BUILD_SYSTEM)/host_prebuilt.mk
BUILD_PREBUILT:= $(BUILD_SYSTEM)/prebuilt.mk
BUILD_MULTI_PREBUILT:= $(BUILD_SYSTEM)/multi_prebuilt.mk
BUILD_JAVA_LIBRARY:= $(BUILD_SYSTEM)/java_library.mk
BUILD_STATIC_JAVA_LIBRARY:= $(BUILD_SYSTEM)/static_java_library.mk
BUILD_HOST_JAVA_LIBRARY:= $(BUILD_SYSTEM)/host_java_library.mk
BUILD_DROIDDOC:= $(BUILD_SYSTEM)/droiddoc.mk
BUILD_COPY_HEADERS := $(BUILD_SYSTEM)/copy_headers.mk
BUILD_NATIVE_TEST := $(BUILD_SYSTEM)/native_test.mk
BUILD_HOST_NATIVE_TEST := $(BUILD_SYSTEM)/host_native_test.mk

BUILD_SHARED_TEST_LIBRARY := $(BUILD_SYSTEM)/shared_test_lib.mk
BUILD_HOST_SHARED_TEST_LIBRARY := $(BUILD_SYSTEM)/host_shared_test_lib.mk
BUILD_STATIC_TEST_LIBRARY := $(BUILD_SYSTEM)/static_test_lib.mk
BUILD_HOST_STATIC_TEST_LIBRARY := $(BUILD_SYSTEM)/host_static_test_lib.mk

BUILD_NOTICE_FILE := $(BUILD_SYSTEM)/notice_files.mk
BUILD_HOST_DALVIK_JAVA_LIBRARY := $(BUILD_SYSTEM)/host_dalvik_java_library.mk
BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY := $(BUILD_SYSTEM)/host_dalvik_static_java_library.mk

-include cts/build/config.mk

# 解析目标修饰符,make目标包含showcommands,则打印全命令
SHOW_COMMANDS:= $(filter showcommands,$(MAKECMDGOALS))

# 设置通用值
# 全局变量、cflags
COMMON_GLOBAL_CFLAGS:= -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith
COMMON_RELEASE_CFLAGS:= -DNDEBUG -UDEBUG

COMMON_GLOBAL_CPPFLAGS:= $(COMMON_GLOBAL_CFLAGS) -Wsign-promo
COMMON_RELEASE_CPPFLAGS:= $(COMMON_RELEASE_CFLAGS)
# 不同包使用的扩展名
COMMON_PACKAGE_SUFFIX := .zip
COMMON_JAVA_PACKAGE_SUFFIX := .jar
COMMON_ANDROID_PACKAGE_SUFFIX := .apk
# flag列表改变错误中的不同警告
TARGET_ERROR_FLAGS := -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point
# 符号压缩
TARGET_COMPRESS_MODULE_SYMBOLS := false

# 包含底层配置文件
# -include:不是必须包含的
# 包含 buildspec.mk 可以设置一些东西。
# 如果文件不存在,则环境变量不会使用。如果不工作,则认为是arm build
ifndef ANDROID_BUILDSPEC
ANDROID_BUILDSPEC := $(TOPDIR)buildspec.mk
endif
-include $(ANDROID_BUILDSPEC)
# 包含一些环境设置
include $(BUILD_SYSTEM)/envsetup.mk
时间: 2024-10-10 17:31:03

/build/core/config.mk的相关文章

安卓 build/core/Makefile 以及main.mk

android make 系统总共分为四层 arch board device product 在各个字android.mk文件中引用的定义都存放在./build/core/下!比如android.mk中的include $(CLEAR_VARS)它对应的是在./build/core/config.mk中的CLEAR_VARS:=$(BUILD_SYSTEM)/clear_vars.mkinclude $(BUILD_PACKAGE) 它对应的是在./build/core/config.mk中的

关于s5pv210的配置、编译过程中相关文件的分析(Makefile、config.mk、mkconfig)

uboot为用户提供两种编译方式,一种是在uboot当前目录下进行编译,第二种方式就是将编译生成的文件输出到指定的目录下. 1) Add O= to the make command line # 'make O=/tmp/build all' # # 2) Set environement variable BUILD_DIR to point to the desired location # 'export BUILD_DIR=/tmp/build' # 'make' # # The se

uboot顶层config.mk分析

## (C) Copyright 2000-2006# Wolfgang Denk, DENX Software Engineering, [email protected]## See file CREDITS for list of people who contributed to this# project.## This program is free software; you can redistribute it and/or# modify it under the terms

u-boot的Makefile分析之顶层config.mk

版本信息: u-boot-2010-06 顶层目录下的config.mk文件主要完成如下功能的配置: 1.确定生成可执行文件过程中需要的各种工具,如编译器(arm-linux-gcc).连接器(arm-linux-ld).反汇编器(arm-linux-objdump)等 2.确定CPU.板相关的配置文件,存在于各个目录下的config.mk 3.确定编译.链接.转换等过程的操作选项 4.根据步骤3确定的编译连接选项生成需要的文件 config.mk完整内容及必要注释如下 注:config.mk文

vue2.5版本源代码编译报 Could not load ..\vue\src\core/config 错误的问题

前置说明: 日期:2018年6月5日 环境:win7系统.vscode.vue2.5.0源代码 1)问题现象: D:\workspace\html5\everyday2\vue>npm run dev > [email protected] dev D:\workspace\html5\everyday2\vue> rollup -w -c build/config.js --environment TARGET:web-full-dev rollup v0.50.0bundles D:

java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config

今天写SpringMvc时,遇到这样一个问题: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config at org.springframework.web.servlet.support.JstlUtils.exposeLocalizationContext(JstlUtils.java:101) at org.springframework.web.servlet.view.JstlView.exposeHelpe

NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config

今天调试SSM框架项目后台JSOn接口,报出来一个让人迷惑的错误:NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config 上网查了一下别人的博客 NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config 根据楼主的提示下载了zip,standard和jstl两个包放入tomcat lib下,再次运行发现报了404错误 HTTP Status 404 - /project_name/W

2014-10 u-boot config.mk分析

/** ****************************************************************************** * @author ? ?Maoxiao Hu * @version ? V1.0.0 * @date ? ? ? Dec-2014 ****************************************************************************** * < COPYRIGHT 2014 IS

对于NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config的异常

NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config 使用spring mvc进行开发,使用tomcat容器,通过url映射寻找view的时候,会报错NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config,如果随便去找个jstl包过来放入web-inf/lib会报错,将standard和jstl两个包放入lib下即可