OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//mojo/public/mojo.gni") | |
6 | |
7 group("public") { | 5 group("public") { |
8 # Meta-target, don't link into production code. | 6 # Meta-target, don't link into production code. |
9 testonly = true | 7 testonly = true |
10 deps = [ | 8 deps = [ |
11 ":libmojo_sdk", | 9 ":libmojo_sdk", |
12 ":sdk", | 10 ":sdk", |
13 "cpp/bindings", | 11 "cpp/bindings", |
14 "cpp/environment:standalone", | 12 "cpp/environment:standalone", |
15 "cpp/utility", | 13 "cpp/utility", |
16 "interfaces/bindings/tests:test_interfaces", | 14 "interfaces/bindings/tests:test_interfaces", |
17 ] | 15 ] |
18 | 16 |
19 if (mojo_use_application_in_sdk) { | |
20 deps += [ "cpp/application:standalone" ] | |
21 } | |
22 | |
23 if (is_android) { | 17 if (is_android) { |
24 deps += [ | 18 deps += [ |
25 "java:system", | 19 "java:system", |
26 "java:bindings", | 20 "java:bindings", |
27 ] | 21 ] |
28 } | 22 } |
29 | |
30 if (is_android && mojo_use_application_in_sdk) { | |
31 deps += [ "java:application" ] | |
32 } | |
33 } | 23 } |
34 | 24 |
35 group("sdk") { | 25 group("sdk") { |
36 deps = [ | 26 deps = [ |
37 "c/system", | 27 "c/system", |
38 "cpp/bindings", | 28 "cpp/bindings", |
39 "cpp/environment:standalone", | 29 "cpp/environment:standalone", |
40 "cpp/utility", | 30 "cpp/utility", |
41 "interfaces/bindings", | 31 "interfaces/bindings", |
42 "js", | 32 "js", |
43 ] | 33 ] |
44 | |
45 if (mojo_use_application_in_sdk) { | |
46 deps += [ | |
47 "cpp/application:standalone", | |
48 "interfaces/application", | |
49 ] | |
50 } | |
51 | |
52 if (mojo_use_network_in_sdk) { | |
53 deps += [ "interfaces/network" ] | |
54 } | |
55 } | 34 } |
56 | 35 |
57 static_library("libmojo_sdk") { | 36 static_library("libmojo_sdk") { |
58 complete_static_lib = true | 37 complete_static_lib = true |
59 deps = [ | 38 deps = [ |
60 ":sdk", | 39 ":sdk", |
61 ] | 40 ] |
62 } | 41 } |
OLD | NEW |