summaryrefslogtreecommitdiffstats
path: root/core/base_rules.mk
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-01-24 23:17:21 -0800
committerColin Cross <ccross@android.com>2014-01-27 14:45:44 -0800
commitd826264621a2c3d27228b395bc36edf5510bcc49 (patch)
tree2a34d5b309dc375e831c5ddceb9e557ed93ac192 /core/base_rules.mk
parentd0378b3f2dbb5a5ff0cf0517354606f3f808d790 (diff)
downloadbuild-d826264621a2c3d27228b395bc36edf5510bcc49.zip
build-d826264621a2c3d27228b395bc36edf5510bcc49.tar.gz
build-d826264621a2c3d27228b395bc36edf5510bcc49.tar.bz2
add new gen/ directory for generated sources
Allow modules to generate source into $OUT/gen, which will then be copied into $OUT/obj and $OUT/obj_$(TARGET_2ND_ARCH) as necessary. This allows a single build rule invocation that includes generated source to build for the first and second architectures. Modules will need to change calls to local-intermediates-dir into local-generated-sources-dir. Change-Id: I62504bad9454b3d9fde7b84ab9f0a487a2ecf0bf
Diffstat (limited to 'core/base_rules.mk')
-rw-r--r--core/base_rules.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/base_rules.mk b/core/base_rules.mk
index ac126a7..63abb8d 100644
--- a/core/base_rules.mk
+++ b/core/base_rules.mk
@@ -145,6 +145,7 @@ $(module_id) := $(LOCAL_PATH)
intermediates := $(call local-intermediates-dir,,$(LOCAL_2ND_ARCH_VAR_PREFIX))
intermediates.COMMON := $(call local-intermediates-dir,COMMON)
+generated_sources_dir := $(call local-generated-sources-dir)
###########################################################
# Pick a name for the intermediate and final targets