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("intents") { | 7 group("intents") { |
10 testonly = true | 8 testonly = true |
11 | 9 |
12 deps = [ | 10 deps = [ |
13 ":intents_lib", | |
14 ":interfaces", | 11 ":interfaces", |
15 ] | 12 ] |
| 13 |
| 14 if (is_android) { |
| 15 deps += [ ":intents_lib" ] |
| 16 } |
16 } | 17 } |
17 | 18 |
18 android_library("intents_lib") { | 19 if (is_android) { |
19 java_files = [ "src/org/domokit/intents/ActivityManagerImpl.java" ] | 20 import("//build/config/android/config.gni") |
| 21 import("//build/config/android/rules.gni") |
20 | 22 |
21 deps = [ | 23 android_library("intents_lib") { |
22 "//base:base_java", | 24 java_files = [ "src/org/domokit/intents/ActivityManagerImpl.java" ] |
23 "//mojo/public/java:bindings", | 25 |
24 "//mojo/public/java:system", | 26 deps = [ |
25 ":interfaces_java", | 27 "//base:base_java", |
26 ] | 28 "//mojo/public/java:bindings", |
| 29 "//mojo/public/java:system", |
| 30 ":interfaces_java", |
| 31 ] |
| 32 } |
27 } | 33 } |
28 | 34 |
29 mojom("interfaces") { | 35 mojom("interfaces") { |
30 sources = [ | 36 sources = [ |
31 "intents.mojom", | 37 "intents.mojom", |
32 ] | 38 ] |
33 } | 39 } |
OLD | NEW |