| 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/bindings", | 13 "cpp/bindings", |
| 14 "cpp/environment:standalone", | 14 "cpp/environment:standalone", |
| 15 "cpp/utility", | 15 "cpp/utility", |
| 16 "interfaces/bindings/tests:test_interfaces", | 16 "interfaces/bindings/tests:test_interfaces", |
| 17 ] | 17 ] |
| 18 | 18 |
| 19 if (mojo_use_application_in_sdk) { |
| 20 deps += [ "cpp/application:standalone" ] |
| 21 } |
| 22 |
| 19 if (is_linux) { | 23 if (is_linux) { |
| 20 deps += [ "python" ] | 24 deps += [ "python" ] |
| 21 } | 25 } |
| 22 | 26 |
| 23 if (is_android) { | 27 if (is_android) { |
| 24 deps += [ | 28 deps += [ |
| 25 "java:system", | 29 "java:system", |
| 26 "java:bindings", | 30 "java:bindings", |
| 27 ] | 31 ] |
| 28 } | 32 } |
| 33 |
| 34 if (is_android && mojo_use_application_in_sdk) { |
| 35 deps += [ "java:application" ] |
| 36 } |
| 29 } | 37 } |
| 30 | 38 |
| 31 group("sdk") { | 39 group("sdk") { |
| 32 deps = [ | 40 deps = [ |
| 33 "c/system", | 41 "c/system", |
| 34 "cpp/bindings", | 42 "cpp/bindings", |
| 35 "cpp/environment:standalone", | 43 "cpp/environment:standalone", |
| 36 "cpp/utility", | 44 "cpp/utility", |
| 37 "interfaces/bindings", | 45 "interfaces/bindings", |
| 38 "js", | 46 "js", |
| 39 ] | 47 ] |
| 48 |
| 49 if (mojo_use_application_in_sdk) { |
| 50 deps += [ |
| 51 "cpp/application:standalone", |
| 52 "interfaces/application", |
| 53 ] |
| 54 } |
| 40 } | 55 } |
| 41 | 56 |
| 42 static_library("libmojo_sdk") { | 57 static_library("libmojo_sdk") { |
| 43 complete_static_lib = true | 58 complete_static_lib = true |
| 44 deps = [ | 59 deps = [ |
| 45 ":sdk", | 60 ":sdk", |
| 46 ] | 61 ] |
| 47 } | 62 } |
| OLD | NEW |