Renderscript: rename .rs extension 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: I0458009b8bb64a012fece364835d5b78d52e15e9
Merged-In: I0458009b8bb64a012fece364835d5b78d52e15e9
(cherry picked from commit 41ce1c0d82)
This commit is contained in:
Jeff Vander Stoep
2019-07-15 19:08:37 -07:00
committed by Jeffrey Vander Stoep
parent 272c1d3d27
commit a50b16974a
3 changed files with 3 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ var (
"depFiles", "outDir", "rsFlags", "stampFile")
)
// Takes a path to a .rs or .fs file, and returns a path to a generated ScriptC_*.cpp file
// Takes a path to a .rscript or .fs file, and returns a path to a generated ScriptC_*.cpp file
// This has to match the logic in llvm-rs-cc in DetermineOutputFile.
func rsGeneratedCppFile(ctx android.ModuleContext, rsFile android.Path) android.WritablePath {
fileName := strings.TrimSuffix(rsFile.Base(), rsFile.Ext())