1*9e94795aSAndroid Build Coastguard Worker# 2*9e94795aSAndroid Build Coastguard Worker# Copyright (C) 2007 The Android Open Source Project 3*9e94795aSAndroid Build Coastguard Worker# 4*9e94795aSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 5*9e94795aSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 6*9e94795aSAndroid Build Coastguard Worker# You may obtain a copy of the License at 7*9e94795aSAndroid Build Coastguard Worker# 8*9e94795aSAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 9*9e94795aSAndroid Build Coastguard Worker# 10*9e94795aSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 11*9e94795aSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 12*9e94795aSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*9e94795aSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 14*9e94795aSAndroid Build Coastguard Worker# limitations under the License. 15*9e94795aSAndroid Build Coastguard Worker# 16*9e94795aSAndroid Build Coastguard Worker 17*9e94795aSAndroid Build Coastguard Worker###################################################################### 18*9e94795aSAndroid Build Coastguard Worker# This is a do-nothing template file. To use it, copy it to a file 19*9e94795aSAndroid Build Coastguard Worker# named "buildspec.mk" in the root directory, and uncomment or change 20*9e94795aSAndroid Build Coastguard Worker# the variables necessary for your desired configuration. The file 21*9e94795aSAndroid Build Coastguard Worker# "buildspec.mk" should never be checked in to source control. 22*9e94795aSAndroid Build Coastguard Worker###################################################################### 23*9e94795aSAndroid Build Coastguard Worker 24*9e94795aSAndroid Build Coastguard Worker# Choose a product to build for. Look in the products directory for ones 25*9e94795aSAndroid Build Coastguard Worker# that work. 26*9e94795aSAndroid Build Coastguard Workerifndef TARGET_PRODUCT 27*9e94795aSAndroid Build Coastguard Worker#TARGET_PRODUCT:=generic 28*9e94795aSAndroid Build Coastguard Workerendif 29*9e94795aSAndroid Build Coastguard Worker 30*9e94795aSAndroid Build Coastguard Worker# Choose a variant to build. If you don't pick one, the default is eng. 31*9e94795aSAndroid Build Coastguard Worker# User is what we ship. Userdebug is that, with a few flags turned on 32*9e94795aSAndroid Build Coastguard Worker# for debugging. Eng has lots of extra tools for development. 33*9e94795aSAndroid Build Coastguard Workerifndef TARGET_BUILD_VARIANT 34*9e94795aSAndroid Build Coastguard Worker#TARGET_BUILD_VARIANT:=user 35*9e94795aSAndroid Build Coastguard Worker#TARGET_BUILD_VARIANT:=userdebug 36*9e94795aSAndroid Build Coastguard Worker#TARGET_BUILD_VARIANT:=eng 37*9e94795aSAndroid Build Coastguard Workerendif 38*9e94795aSAndroid Build Coastguard Worker 39*9e94795aSAndroid Build Coastguard Worker# Choose a targeted release. If you don't pick one, the default is the 40*9e94795aSAndroid Build Coastguard Worker# soonest future release. 41*9e94795aSAndroid Build Coastguard Workerifndef TARGET_PLATFORM_RELEASE 42*9e94795aSAndroid Build Coastguard Worker#TARGET_PLATFORM_RELEASE:=OPR1 43*9e94795aSAndroid Build Coastguard Workerendif 44*9e94795aSAndroid Build Coastguard Worker 45*9e94795aSAndroid Build Coastguard Worker# Choose additional targets to always install, even when building 46*9e94795aSAndroid Build Coastguard Worker# minimal targets like "make droid". This takes simple target names 47*9e94795aSAndroid Build Coastguard Worker# like "Browser" or "MyApp", the names used by LOCAL_MODULE or 48*9e94795aSAndroid Build Coastguard Worker# LOCAL_PACKAGE_NAME. Modules listed here will always be installed in 49*9e94795aSAndroid Build Coastguard Worker# /system, even if they'd usually go in /data. 50*9e94795aSAndroid Build Coastguard Workerifndef CUSTOM_MODULES 51*9e94795aSAndroid Build Coastguard Worker#CUSTOM_MODULES:= 52*9e94795aSAndroid Build Coastguard Workerendif 53*9e94795aSAndroid Build Coastguard Worker 54*9e94795aSAndroid Build Coastguard Worker# Set this to debug or release if you care. Otherwise, it defaults to release. 55*9e94795aSAndroid Build Coastguard Workerifndef TARGET_BUILD_TYPE 56*9e94795aSAndroid Build Coastguard Worker#TARGET_BUILD_TYPE:=release 57*9e94795aSAndroid Build Coastguard Workerendif 58*9e94795aSAndroid Build Coastguard Worker 59*9e94795aSAndroid Build Coastguard Worker# Uncomment this if you want the host tools built in debug mode. Otherwise 60*9e94795aSAndroid Build Coastguard Worker# it defaults to release. 61*9e94795aSAndroid Build Coastguard Workerifndef HOST_BUILD_TYPE 62*9e94795aSAndroid Build Coastguard Worker#HOST_BUILD_TYPE:=debug 63*9e94795aSAndroid Build Coastguard Workerendif 64*9e94795aSAndroid Build Coastguard Worker 65*9e94795aSAndroid Build Coastguard Worker# Turn on debugging for selected modules. If DEBUG_MODULE_<module-name> is set 66*9e94795aSAndroid Build Coastguard Worker# to a non-empty value, the appropriate HOST_/TARGET_CUSTOM_DEBUG_CFLAGS 67*9e94795aSAndroid Build Coastguard Worker# will be added to LOCAL_CFLAGS when building the module. 68*9e94795aSAndroid Build Coastguard Worker#DEBUG_MODULE_ModuleName:=true 69*9e94795aSAndroid Build Coastguard Worker 70*9e94795aSAndroid Build Coastguard Worker# Specify the extra CFLAGS to use when building a module whose 71*9e94795aSAndroid Build Coastguard Worker# DEBUG_MODULE_ variable is set. Host and device flags are handled 72*9e94795aSAndroid Build Coastguard Worker# separately. 73*9e94795aSAndroid Build Coastguard Worker#HOST_CUSTOM_DEBUG_CFLAGS:= 74*9e94795aSAndroid Build Coastguard Worker#TARGET_CUSTOM_DEBUG_CFLAGS:= 75*9e94795aSAndroid Build Coastguard Worker 76*9e94795aSAndroid Build Coastguard Worker# Choose additional locales, like "en_US" or "it_IT", to add to any 77*9e94795aSAndroid Build Coastguard Worker# built product. Any locales that appear in CUSTOM_LOCALES but not in 78*9e94795aSAndroid Build Coastguard Worker# the locale list for the selected product will be added to the end 79*9e94795aSAndroid Build Coastguard Worker# of PRODUCT_LOCALES. 80*9e94795aSAndroid Build Coastguard Workerifndef CUSTOM_LOCALES 81*9e94795aSAndroid Build Coastguard Worker#CUSTOM_LOCALES:= 82*9e94795aSAndroid Build Coastguard Workerendif 83*9e94795aSAndroid Build Coastguard Worker 84*9e94795aSAndroid Build Coastguard Worker# If you have a special place to put your ouput files, set this, otherwise 85*9e94795aSAndroid Build Coastguard Worker# it goes to <build-root>/out 86*9e94795aSAndroid Build Coastguard Worker#OUT_DIR:=/tmp/stuff 87*9e94795aSAndroid Build Coastguard Worker 88*9e94795aSAndroid Build Coastguard Worker# If you want to always set certain system properties, add them to this list. 89*9e94795aSAndroid Build Coastguard Worker# E.g., "ADDITIONAL_BUILD_PROPERTIES += ro.prop1=5 prop2=value" 90*9e94795aSAndroid Build Coastguard Worker# This mechanism does not currently support values containing spaces. 91*9e94795aSAndroid Build Coastguard Worker#ADDITIONAL_BUILD_PROPERTIES += 92*9e94795aSAndroid Build Coastguard Worker 93*9e94795aSAndroid Build Coastguard Worker# If you want to reduce the system.img size by several meg, and are willing to 94*9e94795aSAndroid Build Coastguard Worker# lose access to CJK (and other) character sets, define NO_FALLBACK_FONT:=true 95*9e94795aSAndroid Build Coastguard Workerifndef NO_FALLBACK_FONT 96*9e94795aSAndroid Build Coastguard Worker#NO_FALLBACK_FONT:=true 97*9e94795aSAndroid Build Coastguard Workerendif 98*9e94795aSAndroid Build Coastguard Worker 99*9e94795aSAndroid Build Coastguard Worker# OVERRIDE_RUNTIMES allows you to locally override PRODUCT_RUNTIMES. 100*9e94795aSAndroid Build Coastguard Worker# 101*9e94795aSAndroid Build Coastguard Worker# To only build ART, use "runtime_libart_default" 102*9e94795aSAndroid Build Coastguard Worker# To use Dalvik but also include ART, use "runtime_libdvm_default runtime_libart" 103*9e94795aSAndroid Build Coastguard Worker# To use ART but also include Dalvik, use "runtime_libart_default runtime_libdvm" 104*9e94795aSAndroid Build Coastguard Workerifndef OVERRIDE_RUNTIMES 105*9e94795aSAndroid Build Coastguard Worker#OVERRIDE_RUNTIMES:=runtime_libart_default 106*9e94795aSAndroid Build Coastguard Worker#OVERRIDE_RUNTIMES:=runtime_libdvm_default runtime_libart 107*9e94795aSAndroid Build Coastguard Worker#OVERRIDE_RUNTIMES:=runtime_libart_default runtime_libdvm 108*9e94795aSAndroid Build Coastguard Workerendif 109*9e94795aSAndroid Build Coastguard Worker 110*9e94795aSAndroid Build Coastguard Worker# when the build system changes such that this file must be updated, this 111*9e94795aSAndroid Build Coastguard Worker# variable will be changed. After you have modified this file with the new 112*9e94795aSAndroid Build Coastguard Worker# changes (see buildspec.mk.default), update this to the new value from 113*9e94795aSAndroid Build Coastguard Worker# buildspec.mk.default. 114*9e94795aSAndroid Build Coastguard WorkerBUILD_ENV_SEQUENCE_NUMBER := 13 115