aboutsummaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-07-09 13:57:48 -0700
committerColin Cross <ccross@android.com>2015-08-24 16:20:08 -0700
commit7f64b6de3156da72cb310c0d16083e5e36481e48 (patch)
treeee9f23a377f80ff8f764bfcf32ca54e581f6782d /Android.bp
parent8f301d583fb41374c3a3b9041e5189e2640ab2ee (diff)
downloadbuild_soong-7f64b6de3156da72cb310c0d16083e5e36481e48.tar.gz
build_soong-7f64b6de3156da72cb310c0d16083e5e36481e48.tar.bz2
build_soong-7f64b6de3156da72cb310c0d16083e5e36481e48.zip
Support product variables
Allow modules to vary their properties based on product variables. For now, DEVICE_USES_LOGD, DEVICE_USES_JEMALLOC, and DEVICE_USES_DLMALLOC, and BOARD_MALLOC_ALIGNMENT are supported. Product variables can provide a value (only bool and int supported for now), and if any of the product variable properties contains a "%d" then Sprintf will be called with the property value as the format and the product variable value convert to an int as the only argument. For example: product_variables: { dlmalloc_alignment: { cflags: ["-DMALLOC_ALIGNMENT=%d"], }, }, will cause -DMALLOC_ALIGNMENT=16 to be added to any top level properties called "cflags". Change-Id: I74882a6ab4914d3e222f8d06cfac371b7b829ae5
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index f001246f..404c4787 100644
--- a/Android.bp
+++ b/Android.bp
@@ -97,10 +97,12 @@ bootstrap_go_package {
"common/config.go",
"common/defs.go",
"common/env.go",
+ "common/extend.go",
"common/glob.go",
"common/module.go",
"common/paths.go",
"common/util.go",
+ "common/variable.go",
],
}