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") |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 ] | 76 ] |
77 | 77 |
78 data_deps = shell_common_data_deps | 78 data_deps = shell_common_data_deps |
79 } | 79 } |
80 } else { | 80 } else { |
81 executable("mojo_shell") { | 81 executable("mojo_shell") { |
82 sources = [ | 82 sources = [ |
83 "desktop/main.cc", | 83 "desktop/main.cc", |
84 ] | 84 ] |
85 | 85 |
86 deps = shell_common_deps | 86 deps = shell_common_deps + [ ":mojo_shell_child_x86" ] |
87 | 87 |
88 data_deps = shell_common_data_deps | 88 data_deps = shell_common_data_deps |
89 } | 89 } |
90 } | 90 } |
91 | 91 |
92 executable("mojo_shell_child") { | 92 executable("mojo_shell_child") { |
93 sources = [ | 93 sources = [ |
94 "child_main.cc", | 94 "child_main.cc", |
95 ] | 95 ] |
96 | 96 |
97 deps = [ | 97 deps = [ |
98 ":child_controller_bindings", | 98 ":child_controller_bindings", |
99 ":common_lib", | 99 ":common_lib", |
100 "//base", | 100 "//base", |
101 "//base/allocator", | 101 "//base/allocator", |
102 "//build/config/sanitizers:deps", | 102 "//build/config/sanitizers:deps", |
103 "//mojo/edk/system", | 103 "//mojo/edk/system", |
104 "//mojo/environment:chromium", | 104 "//mojo/environment:chromium", |
105 "//mojo/message_pump", | 105 "//mojo/message_pump", |
106 ] | 106 ] |
107 } | 107 } |
108 | |
109 group("mojo_shell_child_x86") { | |
Petr Hosek
2015/09/14 19:13:51
Ditto here.
Sean Klein
2015/09/15 18:37:50
Naming "mojo_shell_child_32_bit", since "mojo_shel
| |
110 # This group is required to run any 32-bit child process. | |
111 deps = [] | |
112 if ((target_cpu == "x64" || target_cpu == "x86") && is_linux) { | |
113 deps = [ | |
114 ":mojo_shell_child(//build/toolchain/linux:clang_x86)", | |
Mark Seaborn
2015/09/14 18:38:58
Nit: Shouldn't this come with the same warning as
Sean Klein
2015/09/15 18:37:50
Done.
| |
115 ] | |
116 } | |
117 } | |
108 } # !mojo_use_prebuilt_mojo_shell | 118 } # !mojo_use_prebuilt_mojo_shell |
109 | 119 |
110 # Files used both by mojo_shell and mojo_shell_child (and tests). | 120 # Files used both by mojo_shell and mojo_shell_child (and tests). |
111 source_set("common_lib") { | 121 source_set("common_lib") { |
112 sources = [ | 122 sources = [ |
113 "child_switches.cc", | 123 "child_switches.cc", |
114 "child_switches.h", | 124 "child_switches.h", |
115 "init.cc", | 125 "init.cc", |
116 "init.h", | 126 "init.h", |
117 ] | 127 ] |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
611 "${root_out_dir}/libmojo_shell.so", | 621 "${root_out_dir}/libmojo_shell.so", |
612 ] | 622 ] |
613 } else { | 623 } else { |
614 sources += [ "${root_out_dir}/mojo_shell" ] | 624 sources += [ "${root_out_dir}/mojo_shell" ] |
615 } | 625 } |
616 | 626 |
617 outputs = [ | 627 outputs = [ |
618 "${root_out_dir}/symbols/{{source_file_part}}", | 628 "${root_out_dir}/symbols/{{source_file_part}}", |
619 ] | 629 ] |
620 } | 630 } |
OLD | NEW |