| Index: sky/services/media/BUILD.gn
|
| diff --git a/sky/services/media/BUILD.gn b/sky/services/media/BUILD.gn
|
| index f6b701342a28ff83c7661a2d6bf16ed01713e62a..9cc1afd2403733877165fc94c8ba1dbfde5461df 100644
|
| --- a/sky/services/media/BUILD.gn
|
| +++ b/sky/services/media/BUILD.gn
|
| @@ -2,32 +2,18 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| -import("//build/config/android/config.gni")
|
| -import("//build/config/android/rules.gni")
|
| import("//mojo/public/tools/bindings/mojom.gni")
|
|
|
| group("media") {
|
| testonly = true
|
|
|
| deps = [
|
| - ":media_lib",
|
| ":interfaces",
|
| ]
|
| -}
|
| -
|
| -android_library("media_lib") {
|
| - java_files = [
|
| - "src/org/domokit/media/MediaPlayerImpl.java",
|
| - "src/org/domokit/media/MediaServiceImpl.java",
|
| - ]
|
|
|
| - deps = [
|
| - "//base:base_java",
|
| - "//mojo/java",
|
| - "//mojo/public/java:bindings",
|
| - "//mojo/public/java:system",
|
| - ":interfaces_java",
|
| - ]
|
| + if (is_android) {
|
| + deps += [ ":media_lib" ]
|
| + }
|
| }
|
|
|
| mojom("interfaces") {
|
| @@ -35,3 +21,23 @@ mojom("interfaces") {
|
| "media.mojom",
|
| ]
|
| }
|
| +
|
| +if (is_android) {
|
| + import("//build/config/android/config.gni")
|
| + import("//build/config/android/rules.gni")
|
| +
|
| + android_library("media_lib") {
|
| + java_files = [
|
| + "src/org/domokit/media/MediaPlayerImpl.java",
|
| + "src/org/domokit/media/MediaServiceImpl.java",
|
| + ]
|
| +
|
| + deps = [
|
| + "//base:base_java",
|
| + "//mojo/java",
|
| + "//mojo/public/java:bindings",
|
| + "//mojo/public/java:system",
|
| + ":interfaces_java",
|
| + ]
|
| + }
|
| +}
|
|
|