| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/android/config.gni") | |
| 6 import("//build/config/android/rules.gni") | |
| 7 import("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 8 | 6 |
| 9 group("media") { | 7 group("media") { |
| 10 testonly = true | 8 testonly = true |
| 11 | 9 |
| 12 deps = [ | 10 deps = [ |
| 13 ":media_lib", | |
| 14 ":interfaces", | 11 ":interfaces", |
| 15 ] | 12 ] |
| 16 } | |
| 17 | 13 |
| 18 android_library("media_lib") { | 14 if (is_android) { |
| 19 java_files = [ | 15 deps += [ ":media_lib" ] |
| 20 "src/org/domokit/media/MediaPlayerImpl.java", | 16 } |
| 21 "src/org/domokit/media/MediaServiceImpl.java", | |
| 22 ] | |
| 23 | |
| 24 deps = [ | |
| 25 "//base:base_java", | |
| 26 "//mojo/java", | |
| 27 "//mojo/public/java:bindings", | |
| 28 "//mojo/public/java:system", | |
| 29 ":interfaces_java", | |
| 30 ] | |
| 31 } | 17 } |
| 32 | 18 |
| 33 mojom("interfaces") { | 19 mojom("interfaces") { |
| 34 sources = [ | 20 sources = [ |
| 35 "media.mojom", | 21 "media.mojom", |
| 36 ] | 22 ] |
| 37 } | 23 } |
| 24 |
| 25 if (is_android) { |
| 26 import("//build/config/android/config.gni") |
| 27 import("//build/config/android/rules.gni") |
| 28 |
| 29 android_library("media_lib") { |
| 30 java_files = [ |
| 31 "src/org/domokit/media/MediaPlayerImpl.java", |
| 32 "src/org/domokit/media/MediaServiceImpl.java", |
| 33 ] |
| 34 |
| 35 deps = [ |
| 36 "//base:base_java", |
| 37 "//mojo/java", |
| 38 "//mojo/public/java:bindings", |
| 39 "//mojo/public/java:system", |
| 40 ":interfaces_java", |
| 41 ] |
| 42 } |
| 43 } |
| OLD | NEW |