From 512802772a2516b817ab463659b62c2e6fa7442c Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Wed, 1 Sep 2010 13:28:52 -0700 Subject: [PATCH] Now slang supports "-I" options. Change-Id: I32aef6c913d9d30f9982a593397145f1562aecf9 --- core/clear_vars.mk | 3 ++- core/definitions.mk | 1 + core/java.mk | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/clear_vars.mk b/core/clear_vars.mk index 69ed4f524..92098789d 100644 --- a/core/clear_vars.mk +++ b/core/clear_vars.mk @@ -93,11 +93,12 @@ LOCAL_SDK_VERSION:= LOCAL_NDK_VERSION:= LOCAL_NO_EMMA_INSTRUMENT:= LOCAL_NO_EMMA_COMPILE:= -LOCAL_PROGUARD_ENABLED:= # '',optonly,full,custom +LOCAL_PROGUARD_ENABLED:= # '',optonly,full,custom,disabled LOCAL_PROGUARD_FLAGS:= LOCAL_EMMA_COVERAGE_FILTER:= LOCAL_WARNINGS_ENABLE:= LOCAL_MANIFEST_FILE:= +LOCAL_RENDERSCRIPT_INCLUDES:= # Trim MAKEFILE_LIST so that $(call my-dir) doesn't need to # iterate over thousands of entries every time. diff --git a/core/definitions.mk b/core/definitions.mk index 26ab5126a..a5708ae9e 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -758,6 +758,7 @@ $(hide) $(SLANG) \ --allow-rs-prefix \ -o $(PRIVATE_RS_OUTPUT_DIR)/res/raw \ -p $(PRIVATE_RS_OUTPUT_DIR)/src \ + $(foreach inc,$(PRIVATE_RS_INCLUDES),$(addprefix -I , $(inc))) \ $(PRIVATE_RS_SOURCE_FILES) $(hide) mkdir -p $(dir $@) $(hide) touch $@ diff --git a/core/java.mk b/core/java.mk index da53a5c6b..71439f762 100644 --- a/core/java.mk +++ b/core/java.mk @@ -105,6 +105,11 @@ ifneq ($(renderscript_sources),) renderscript_sources_fullpath := $(addprefix $(LOCAL_PATH)/, $(renderscript_sources)) RenderScript_file_stamp := $(LOCAL_INTERMEDIATE_SOURCE_DIR)/RenderScript.stamp +# prepend the RenderScript system include path +LOCAL_RENDERSCRIPT_INCLUDES := $(TOPDIR)frameworks/base/libs/rs/scriptc \ + $(LOCAL_RENDERSCRIPT_INCLUDES) + +$(RenderScript_file_stamp): PRIVATE_RS_INCLUDES := $(LOCAL_RENDERSCRIPT_INCLUDES) $(RenderScript_file_stamp): PRIVATE_RS_SOURCE_FILES := $(renderscript_sources_fullpath) # By putting the generated java files into $(LOCAL_INTERMEDIATE_SOURCE_DIR), they will be # automatically found by the java compiling function transform-java-to-classes.jar.