| 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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//mojo/public/mojo.gni") | 6 import("//mojo/public/mojo.gni") |
| 7 import("//mojo/public/mojo_application.gni") | 7 import("//mojo/public/mojo_application.gni") |
| 8 import("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
| 9 import("//mojo/tools/embed/rules.gni") | 9 import("//mojo/tools/embed/rules.gni") |
| 10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| 11 | 11 |
| 12 # We don't support building in the component build since mojo apps are | 12 # We don't support building in the component build since mojo apps are |
| 13 # inherently components. | 13 # inherently components. |
| 14 assert(!is_component_build) | 14 assert(!is_component_build) |
| 15 | 15 |
| 16 group("shell") { | 16 group("shell") { |
| 17 testonly = true | 17 testonly = true |
| 18 | 18 |
| 19 deps = [ | 19 deps = [ |
| 20 ":mojo_shell", | 20 ":mojo_shell", |
| 21 ":tests", | 21 ":tests", |
| 22 ":copy_symbols", |
| 22 ] | 23 ] |
| 23 | 24 |
| 24 if (is_android) { | 25 if (is_android) { |
| 25 deps += [ | 26 deps += [ |
| 26 ":mojo_shell_apk", | 27 ":mojo_shell_apk", |
| 27 ":mojo_shell_tests_apk", | 28 ":mojo_shell_tests_apk", |
| 28 ] | 29 ] |
| 29 } | 30 } |
| 30 } | 31 } |
| 31 | 32 |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 "//mojo/application", | 545 "//mojo/application", |
| 545 "//mojo/application:test_support", | 546 "//mojo/application:test_support", |
| 546 "//mojo/common:common", | 547 "//mojo/common:common", |
| 547 "//mojo/public/cpp/bindings:callback", | 548 "//mojo/public/cpp/bindings:callback", |
| 548 "//mojo/public/cpp/environment", | 549 "//mojo/public/cpp/environment", |
| 549 "//mojo/public/cpp/system:system", | 550 "//mojo/public/cpp/system:system", |
| 550 "//mojo/services/nfc/public/interfaces", | 551 "//mojo/services/nfc/public/interfaces", |
| 551 "//shell/test:bindings", | 552 "//shell/test:bindings", |
| 552 ] | 553 ] |
| 553 } | 554 } |
| 555 |
| 556 copy("copy_symbols") { |
| 557 testonly = true |
| 558 |
| 559 deps = [ |
| 560 ":mojo_shell", |
| 561 ] |
| 562 if (is_android) { |
| 563 deps += [ ":bootstrap" ] |
| 564 } |
| 565 |
| 566 sources = [ |
| 567 "${root_out_dir}/mojo_shell_child", |
| 568 ] |
| 569 if (is_android) { |
| 570 sources += [ |
| 571 "${root_out_dir}/libbootstrap.so", |
| 572 "${root_out_dir}/libmojo_shell.so", |
| 573 ] |
| 574 } else { |
| 575 sources += [ "${root_out_dir}/mojo_shell" ] |
| 576 } |
| 577 |
| 578 outputs = [ |
| 579 "${root_out_dir}/symbols/{{source_file_part}}", |
| 580 ] |
| 581 } |
| OLD | NEW |