Dongwon Kang | 43c88f3 | 2018-11-28 13:25:30 -0800 | [diff] [blame] | 1 | java_library { |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 2 | name: "updatable-media1", |
Insun Kang | b3517bf | 2019-01-16 17:21:05 +0900 | [diff] [blame] | 3 | |
| 4 | srcs: [ |
| 5 | ":media1-srcs", |
Sungsoo Lim | bb3b401 | 2019-01-23 13:17:53 +0900 | [diff] [blame] | 6 | ":framework-media-annotation-srcs", |
Insun Kang | b3517bf | 2019-01-16 17:21:05 +0900 | [diff] [blame] | 7 | ], |
| 8 | |
Sungsoo Lim | bb3b401 | 2019-01-23 13:17:53 +0900 | [diff] [blame] | 9 | aidl: { |
| 10 | export_include_dirs: [ |
| 11 | "apex/java", |
| 12 | ], |
| 13 | |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 14 | // TODO: find out a way to include only the necessary aidl files instead of dirs. |
Sungsoo Lim | bb3b401 | 2019-01-23 13:17:53 +0900 | [diff] [blame] | 15 | include_dirs: [ |
| 16 | "frameworks/base/core/java", |
| 17 | "frameworks/base/media/java", |
| 18 | ], |
| 19 | }, |
| 20 | |
| 21 | installable: true, |
| 22 | |
| 23 | // Make sure that the implementaion only relies on SDK or system APIs. |
Insun Kang | b3517bf | 2019-01-16 17:21:05 +0900 | [diff] [blame] | 24 | sdk_version: "system_current", |
| 25 | } |
| 26 | |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 27 | java_library { |
| 28 | name: "updatable-mediasession2", |
| 29 | |
| 30 | srcs: [ |
| 31 | ":mediasession2-srcs", |
| 32 | ":framework-media-annotation-srcs", |
| 33 | ], |
| 34 | |
| 35 | aidl: { |
| 36 | export_include_dirs: [ |
| 37 | "apex/java", |
| 38 | ], |
| 39 | |
| 40 | // TODO: find out a way to include only the necessary aidl files instead of dirs. |
| 41 | include_dirs: [ |
| 42 | "frameworks/base/core/java", |
| 43 | ], |
| 44 | }, |
| 45 | |
| 46 | installable: true, |
| 47 | |
| 48 | // Make sure that the implementaion only relies on SDK or system APIs. |
| 49 | sdk_version: "system_current", |
| 50 | } |
| 51 | |
| 52 | java_library { |
| 53 | name: "updatable-media", |
| 54 | |
| 55 | srcs: [ |
| 56 | ":mediaplayer2-srcs", |
| 57 | ":framework-media-annotation-srcs", |
| 58 | ], |
| 59 | |
| 60 | static_libs: [ |
| 61 | "mediaplayer2-protos", |
| 62 | ], |
| 63 | |
| 64 | installable: true, |
| 65 | |
| 66 | // Make sure that the implementaion only relies on SDK or system APIs. |
| 67 | sdk_version: "system_current", |
| 68 | } |
| 69 | |
| 70 | filegroup { |
| 71 | name: "media-srcs-without-aidls", |
| 72 | srcs : [ |
| 73 | ":media1-srcs-without-aidls", |
| 74 | ":mediasession2-srcs-without-aidls", |
| 75 | ":mediaplayer2-srcs", |
| 76 | ], |
| 77 | } |
| 78 | |
Insun Kang | b3517bf | 2019-01-16 17:21:05 +0900 | [diff] [blame] | 79 | filegroup { |
| 80 | name: "media1-srcs", |
| 81 | srcs: [ |
Sungsoo Lim | bb3b401 | 2019-01-23 13:17:53 +0900 | [diff] [blame] | 82 | "apex/java/android/media/MediaMetadata.java", |
| 83 | "apex/java/android/media/MediaParceledListSlice.java", |
| 84 | "apex/java/android/media/VolumeProvider.java", |
Sungsoo Lim | 4e47543 | 2019-01-24 03:14:12 +0900 | [diff] [blame] | 85 | "apex/java/android/media/browse/MediaBrowser.java", |
| 86 | "apex/java/android/media/browse/MediaBrowserUtils.java", |
Sungsoo Lim | bb3b401 | 2019-01-23 13:17:53 +0900 | [diff] [blame] | 87 | "apex/java/android/media/session/ControllerCallbackLink.java", |
| 88 | "apex/java/android/media/session/ControllerLink.java", |
| 89 | "apex/java/android/media/session/ISession.aidl", |
| 90 | "apex/java/android/media/session/ISessionCallback.aidl", |
| 91 | "apex/java/android/media/session/ISessionController.aidl", |
| 92 | "apex/java/android/media/session/ISessionControllerCallback.aidl", |
| 93 | "apex/java/android/media/session/MediaController.java", |
| 94 | "apex/java/android/media/session/MediaSessionEngine.java", |
| 95 | "apex/java/android/media/session/MediaSessionProviderService.java", |
| 96 | "apex/java/android/media/session/PlaybackState.java", |
| 97 | "apex/java/android/media/session/SessionCallbackLink.java", |
| 98 | "apex/java/android/media/session/SessionLink.java", |
Sungsoo Lim | 4e47543 | 2019-01-24 03:14:12 +0900 | [diff] [blame] | 99 | "apex/java/android/service/media/IMediaBrowserService.aidl", |
| 100 | "apex/java/android/service/media/IMediaBrowserServiceCallbacks.aidl", |
| 101 | "apex/java/android/service/media/MediaBrowserService.java", |
Sungsoo Lim | bb3b401 | 2019-01-23 13:17:53 +0900 | [diff] [blame] | 102 | ], |
| 103 | } |
| 104 | |
| 105 | filegroup { |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 106 | name: "media1-srcs-without-aidls", |
Sungsoo Lim | bb3b401 | 2019-01-23 13:17:53 +0900 | [diff] [blame] | 107 | srcs: [ |
| 108 | ":media1-srcs", |
| 109 | ], |
| 110 | exclude_srcs: [ |
| 111 | "apex/java/android/media/session/ISession.aidl", |
| 112 | "apex/java/android/media/session/ISessionCallback.aidl", |
| 113 | "apex/java/android/media/session/ISessionController.aidl", |
| 114 | "apex/java/android/media/session/ISessionControllerCallback.aidl", |
Sungsoo Lim | 4e47543 | 2019-01-24 03:14:12 +0900 | [diff] [blame] | 115 | "apex/java/android/service/media/IMediaBrowserService.aidl", |
| 116 | "apex/java/android/service/media/IMediaBrowserServiceCallbacks.aidl", |
Insun Kang | b3517bf | 2019-01-16 17:21:05 +0900 | [diff] [blame] | 117 | ], |
| 118 | } |
| 119 | |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 120 | filegroup { |
| 121 | name: "mediasession2-srcs", |
| 122 | srcs: [ |
| 123 | "apex/java/android/media/Controller2Link.java", |
| 124 | "apex/java/android/media/IMediaController2.aidl", |
| 125 | "apex/java/android/media/IMediaSession2.aidl", |
| 126 | "apex/java/android/media/IMediaSession2Service.aidl", |
| 127 | "apex/java/android/media/MediaConstants.java", |
| 128 | "apex/java/android/media/MediaController2.java", |
| 129 | "apex/java/android/media/MediaItem2.java", |
| 130 | "apex/java/android/media/MediaSession2.java", |
| 131 | "apex/java/android/media/MediaSession2Service.java", |
| 132 | "apex/java/android/media/Session2Command.java", |
| 133 | "apex/java/android/media/Session2CommandGroup.java", |
| 134 | "apex/java/android/media/Session2Link.java", |
| 135 | "apex/java/android/media/Session2Token.java", |
| 136 | ], |
| 137 | } |
| 138 | |
| 139 | filegroup { |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 140 | name: "mediasession2-srcs-without-aidls", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 141 | srcs: [ |
| 142 | ":mediasession2-srcs", |
| 143 | ], |
| 144 | exclude_srcs: [ |
| 145 | "apex/java/android/media/IMediaController2.aidl", |
| 146 | "apex/java/android/media/IMediaSession2.aidl", |
| 147 | "apex/java/android/media/IMediaSession2Service.aidl", |
| 148 | ], |
| 149 | } |
| 150 | |
Dongwon Kang | 43c88f3 | 2018-11-28 13:25:30 -0800 | [diff] [blame] | 151 | filegroup { |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 152 | name: "mediaplayer2-srcs", |
Dongwon Kang | 43c88f3 | 2018-11-28 13:25:30 -0800 | [diff] [blame] | 153 | srcs: [ |
Dongwon Kang | 8afd531 | 2019-01-15 20:04:51 -0800 | [diff] [blame] | 154 | "apex/java/android/media/CloseGuard.java", |
| 155 | "apex/java/android/media/DataSourceCallback.java", |
| 156 | "apex/java/android/media/DataSourceDesc.java", |
| 157 | "apex/java/android/media/UriDataSourceDesc.java", |
| 158 | "apex/java/android/media/FileDataSourceDesc.java", |
| 159 | "apex/java/android/media/CallbackDataSourceDesc.java", |
| 160 | "apex/java/android/media/VideoSize.java", |
| 161 | "apex/java/android/media/Media2Utils.java", |
| 162 | "apex/java/android/media/MediaPlayer2Utils.java", |
| 163 | "apex/java/android/media/MediaPlayer2.java", |
| 164 | "apex/java/android/media/Media2HTTPService.java", |
| 165 | "apex/java/android/media/Media2HTTPConnection.java", |
| 166 | "apex/java/android/media/RoutingDelegate.java", |
| 167 | "apex/java/android/media/BufferingParams.java", |
Dongwon Kang | 43c88f3 | 2018-11-28 13:25:30 -0800 | [diff] [blame] | 168 | ], |
| 169 | } |