summaryrefslogtreecommitdiff
path: root/test-mock/Android.bp
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2019-08-19 15:24:49 +0900
committerJiyong Park <jiyong@google.com>2019-08-30 08:28:43 +0000
commitab6d165763f27a315100e398e0b6c40f619ce366 (patch)
treea80c91eae6192176b8c3de8ec9a1a500fa0b1c9a /test-mock/Android.bp
parentda5685428a6a1a6e74b7d76fa8566ab706dded10 (diff)
Cut the dependency to framework from droiddoc modules
droiddoc modules for the SDK API documentation and stubs library generations have depended on the 'framework' (which was recently changed to framework-minus-apex' module to get the list of Java source files to be processed. This however caused a circular dependency when we tried to modularize some classes in the framework library as a separate library. The separate java library depended on the stubs library (because it should only use SDK APIs) and the stubs library depended on the framework library. The framework library itself depended on the separated library (or its stub) to use APIs from the separated library, thus forming a circular dependency. This change fixes the problem by directly giving the framework source files via a filegroup `framework-sources-to-document` where all Java and AIDL files that are to be documented are included in. This change also put the generated R.java and Manifest.java files from framework-res into the filegroup for framework sources. Bug: 70046217 Bug: 135922046 Test: m Exempt-From-Owner-Approval: Approved internally Merged-In: I09ad88da47540d31ad089aad5e1151a4b6877ec2 (cherry picked from commit 20426538f85098552f52dffb40d0f7ffff7946d4) Change-Id: I09ad88da47540d31ad089aad5e1151a4b6877ec2
Diffstat (limited to 'test-mock/Android.bp')
-rw-r--r--test-mock/Android.bp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test-mock/Android.bp b/test-mock/Android.bp
index fd469a005e7d..34ac3dcc824f 100644
--- a/test-mock/Android.bp
+++ b/test-mock/Android.bp
@@ -19,14 +19,14 @@
java_sdk_library {
name: "android.test.mock",
- srcs: ["src/**/*.java"],
+ srcs: [
+ "src/**/*.java",
+ ":framework-srcs",
+ ],
api_packages: [
"android.test.mock",
],
-
- srcs_lib: "framework",
- srcs_lib_whitelist_pkgs: ["android"],
compile_dex: true,
}