Building with -target 1.9 requires system modules to use in place of the bootclasspath, add java_system_modules to generate them. Test: m EXPERIMENTAL_USE_OPENJDK9=true Change-Id: I3f54b987efa528078b1e34b743137540c69edf74
68 lines
1.7 KiB
Plaintext
68 lines
1.7 KiB
Plaintext
// Copyright (C) 2018 The Android Open Source Project
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
java_defaults {
|
|
name: "framework-stubs-default",
|
|
errorprone: {
|
|
javacflags: [
|
|
"-XepDisableAllChecks",
|
|
],
|
|
},
|
|
java_resources: [
|
|
":notices-for-framework-stubs",
|
|
],
|
|
no_standard_libs: true,
|
|
system_modules: "none",
|
|
java_version: "1.8",
|
|
}
|
|
|
|
java_library_static {
|
|
name: "android_stubs_current",
|
|
srcs: [
|
|
":api-stubs-docs",
|
|
],
|
|
defaults: ["framework-stubs-default"],
|
|
}
|
|
|
|
java_system_modules {
|
|
name: "android_stubs_current_system_modules",
|
|
libs: ["android_stubs_current"],
|
|
}
|
|
|
|
java_library_static {
|
|
name: "android_system_stubs_current",
|
|
srcs: [
|
|
":system-api-stubs-docs",
|
|
],
|
|
defaults: ["framework-stubs-default"],
|
|
}
|
|
|
|
java_system_modules {
|
|
name: "android_system_stubs_current_system_modules",
|
|
libs: ["android_system_stubs_current"],
|
|
}
|
|
|
|
java_library_static {
|
|
name: "android_test_stubs_current",
|
|
srcs: [
|
|
":test-api-stubs-docs",
|
|
],
|
|
defaults: ["framework-stubs-default"],
|
|
}
|
|
|
|
java_system_modules {
|
|
name: "android_test_stubs_current_system_modules",
|
|
libs: ["android_test_stubs_current"],
|
|
}
|