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