From 9b409bcd10cec5c64b12494a6ada05a7dd65a721 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Fri, 11 Oct 2019 14:59:13 +0900 Subject: Create scripts to update and freeze a module SDK `m ` generates two scripts each of which is use to update the current snapshot of the SDK and to freeze ToT as a new version, respectively. Executing the scripts will copy necessary files (stub libraries, AIDL files, etc.) along with Android.bp into the ./ directory under the directory where the sdk is defined. This change also introduces a new module type 'sdk_snapshot' that represents a snapshot of an SDK. It will be auto-generated by the above scripts, so developers are not expected to write this manually. The module type 'sdk' is now used to simply specify the list of modules that an SDK has. Finally, this change changes the version separator from '#' to '@' because '#' confuses Make. Bug: 138182343 Test: m Change-Id: Ifcbc3a39a2f6ad5b4f4b200ba55a1ce3281498cf --- java/androidmk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/androidmk.go') diff --git a/java/androidmk.go b/java/androidmk.go index 5067e2f43..955f22b36 100644 --- a/java/androidmk.go +++ b/java/androidmk.go @@ -145,7 +145,7 @@ func (j *TestHelperLibrary) AndroidMkEntries() android.AndroidMkEntries { } func (prebuilt *Import) AndroidMkEntries() android.AndroidMkEntries { - if !prebuilt.IsForPlatform() || !prebuilt.ContainingSdk().IsCurrentVersion() { + if !prebuilt.IsForPlatform() || !prebuilt.ContainingSdk().Unversioned() { return android.AndroidMkEntries{ Disabled: true, } -- cgit v1.2.3-59-g8ed1b