Renderscript: change extension .rs to .rscript
Reserve .rs extension for Rust. Bug: 137365032 Test: make checkbuild Test: cd frameworks/compile/slang/tests ./slang_tests.py Test: atest CtsRenderscriptTestCases Test: CtsRsCppTestCases Exempt-From-Owner-Approval: Clean CP Change-Id: Ibfccb4f52b74f9ac95c373f48d775254ba77288d Merged-In: Ibfccb4f52b74f9ac95c373f48d775254ba77288d (cherry picked from commit480864f1b0
) (cherry picked from commitf9b4f4b3e4
)
This commit is contained in:
parent
ac7ae9f6bb
commit
c9de6f9de7
|
@ -574,7 +574,7 @@ ALL_GENERATED_SOURCES += $(my_generated_sources)
|
||||||
## Compile RenderScript with reflected C++
|
## Compile RenderScript with reflected C++
|
||||||
####################################################
|
####################################################
|
||||||
|
|
||||||
renderscript_sources := $(filter %.rs %.fs,$(my_src_files))
|
renderscript_sources := $(filter %.rscript %.fs,$(my_src_files))
|
||||||
|
|
||||||
ifneq (,$(renderscript_sources))
|
ifneq (,$(renderscript_sources))
|
||||||
my_soong_problems += rs
|
my_soong_problems += rs
|
||||||
|
@ -618,7 +618,7 @@ renderscript_includes := $(LOCAL_RENDERSCRIPT_INCLUDES_OVERRIDE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
bc_dep_files := $(addprefix $(renderscript_intermediate)/, \
|
bc_dep_files := $(addprefix $(renderscript_intermediate)/, \
|
||||||
$(patsubst %.fs,%.d, $(patsubst %.rs,%.d, $(notdir $(renderscript_sources)))))
|
$(patsubst %.fs,%.d, $(patsubst %.rscript,%.d, $(notdir $(renderscript_sources)))))
|
||||||
|
|
||||||
$(RenderScript_file_stamp): PRIVATE_RS_INCLUDES := $(renderscript_includes)
|
$(RenderScript_file_stamp): PRIVATE_RS_INCLUDES := $(renderscript_includes)
|
||||||
$(RenderScript_file_stamp): PRIVATE_RS_CC := $(LOCAL_RENDERSCRIPT_CC)
|
$(RenderScript_file_stamp): PRIVATE_RS_CC := $(LOCAL_RENDERSCRIPT_CC)
|
||||||
|
@ -636,7 +636,7 @@ $(call include-depfile,$(RenderScript_file_stamp).d,$(RenderScript_file_stamp))
|
||||||
LOCAL_INTERMEDIATE_TARGETS += $(RenderScript_file_stamp)
|
LOCAL_INTERMEDIATE_TARGETS += $(RenderScript_file_stamp)
|
||||||
|
|
||||||
rs_generated_cpps := $(addprefix \
|
rs_generated_cpps := $(addprefix \
|
||||||
$(renderscript_intermediate)/ScriptC_,$(patsubst %.fs,%.cpp, $(patsubst %.rs,%.cpp, \
|
$(renderscript_intermediate)/ScriptC_,$(patsubst %.fs,%.cpp, $(patsubst %.rscript,%.cpp, \
|
||||||
$(notdir $(renderscript_sources)))))
|
$(notdir $(renderscript_sources)))))
|
||||||
|
|
||||||
$(call track-src-file-gen,$(renderscript_sources),$(rs_generated_cpps))
|
$(call track-src-file-gen,$(renderscript_sources),$(rs_generated_cpps))
|
||||||
|
|
|
@ -364,7 +364,7 @@ endef
|
||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define all-renderscript-files-under
|
define all-renderscript-files-under
|
||||||
$(call find-subdir-files,$(1) \( -name "*.rs" -or -name "*.fs" \) -and -not -name ".*")
|
$(call find-subdir-files,$(1) \( -name "*.rscript" -or -name "*.fs" \) -and -not -name ".*")
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
###############################################################
|
###############################################################
|
||||||
## Renderscript support for java
|
## Renderscript support for java
|
||||||
## Adds rules to convert .rs files to .java and .bc files
|
## Adds rules to convert .rscript files to .java and .bc files
|
||||||
###############################################################
|
###############################################################
|
||||||
|
|
||||||
renderscript_sources := $(filter %.rs,$(LOCAL_SRC_FILES))
|
renderscript_sources := $(filter %.rscript,$(LOCAL_SRC_FILES))
|
||||||
LOCAL_SRC_FILES := $(filter-out %.rs,$(LOCAL_SRC_FILES))
|
LOCAL_SRC_FILES := $(filter-out %.rscript,$(LOCAL_SRC_FILES))
|
||||||
|
|
||||||
rs_generated_res_zip :=
|
rs_generated_res_zip :=
|
||||||
rs_generated_src_jar :=
|
rs_generated_src_jar :=
|
||||||
|
@ -67,7 +67,7 @@ ifneq ($(LOCAL_RENDERSCRIPT_INCLUDES_OVERRIDE),)
|
||||||
LOCAL_RENDERSCRIPT_INCLUDES := $(LOCAL_RENDERSCRIPT_INCLUDES_OVERRIDE)
|
LOCAL_RENDERSCRIPT_INCLUDES := $(LOCAL_RENDERSCRIPT_INCLUDES_OVERRIDE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
bc_files := $(patsubst %.rs,%.bc, $(notdir $(renderscript_sources)))
|
bc_files := $(patsubst %.rscript,%.bc, $(notdir $(renderscript_sources)))
|
||||||
bc_dep_files := $(addprefix $(renderscript_intermediate.COMMON)/,$(patsubst %.bc,%.d,$(bc_files)))
|
bc_dep_files := $(addprefix $(renderscript_intermediate.COMMON)/,$(patsubst %.bc,%.d,$(bc_files)))
|
||||||
|
|
||||||
$(rs_generated_src_jar): PRIVATE_RS_INCLUDES := $(LOCAL_RENDERSCRIPT_INCLUDES)
|
$(rs_generated_src_jar): PRIVATE_RS_INCLUDES := $(LOCAL_RENDERSCRIPT_INCLUDES)
|
||||||
|
|
Loading…
Reference in New Issue