Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: mojo/shell/BUILD.gn

Issue 1065433002: Simplify some mojo_shell code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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("//third_party/mojo/src/mojo/public/mojo.gni") 6 import("//third_party/mojo/src/mojo/public/mojo.gni")
7 import("//third_party/mojo/src/mojo/public/mojo_application.gni") 7 import("//third_party/mojo/src/mojo/public/mojo_application.gni")
8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 10
11 # We don't support building in the component build since mojo apps are 11 # We don't support building in the component build since mojo apps are
12 # inherently components. 12 # inherently components.
13 assert(!is_component_build) 13 assert(!is_component_build)
14 14
15 group("shell") { 15 group("shell") {
16 testonly = true 16 testonly = true
17 17
18 deps = [ 18 deps = [
19 ":mojo_shell", 19 ":mojo_shell",
20 ":tests", 20 ":tests",
21 ] 21 ]
22 22
23 if (!is_win) {
24 deps += [ ":mojo_launcher" ]
25 }
26
27 if (is_android) { 23 if (is_android) {
28 deps += [ 24 deps += [
29 ":mojo_shell_apk", 25 ":mojo_shell_apk",
30 ":mojo_shell_tests_apk", 26 ":mojo_shell_tests_apk",
31 ] 27 ]
32 } 28 }
33 } 29 }
34 30
35 group("tests") { 31 group("tests") {
36 testonly = true 32 testonly = true
(...skipping 14 matching lines...) Expand all
51 deps = [ 47 deps = [
52 ":init", 48 ":init",
53 ":lib", 49 ":lib",
54 "//base", 50 "//base",
55 "//build/config/sanitizers:deps", 51 "//build/config/sanitizers:deps",
56 "//mojo/common", 52 "//mojo/common",
57 "//mojo/environment:chromium", 53 "//mojo/environment:chromium",
58 ] 54 ]
59 55
60 if (!is_android) { 56 if (!is_android) {
61 sources += [ "desktop/main.cc" ] 57 sources += [
58 "desktop/launcher_process.cc",
59 "desktop/launcher_process.h",
60 "desktop/main.cc",
61 ]
62 } else { 62 } else {
63 sources += [ 63 sources += [
64 "android/library_loader.cc", 64 "android/library_loader.cc",
65 "android/main.cc", 65 "android/main.cc",
66 "android/main.h", 66 "android/main.h",
67 ] 67 ]
68 68
69 # On android, the executable is also the native library used by the apk. 69 # On android, the executable is also the native library used by the apk.
70 # It means dynamic symbols must be preserved and exported. 70 # It means dynamic symbols must be preserved and exported.
71 ldflags = [ "-Wl,--export-dynamic" ] 71 ldflags = [ "-Wl,--export-dynamic" ]
72 72
73 deps += [ 73 deps += [
74 ":jni_headers", 74 ":jni_headers",
75 "//mojo/services/native_viewport:lib", 75 "//mojo/services/native_viewport:lib",
76 "//mojo/shell/application_manager", 76 "//mojo/shell/application_manager",
77 "//ui/gl", 77 "//ui/gl",
78 ] 78 ]
79 } 79 }
80 } 80 }
81 81
82 executable("mojo_launcher") {
83 sources = [
84 "launcher_main.cc",
85 ]
86
87 deps = [
88 ":init",
89 ":in_process_native_runner",
90 "//base",
91 "//build/config/sanitizers:deps",
92 "//mojo/common",
93 "//third_party/mojo/src/mojo/edk/system",
94 "//mojo/environment:chromium",
95 "//url",
96 ]
97 }
98
99 source_set("init") { 82 source_set("init") {
100 sources = [ 83 sources = [
101 "init.cc", 84 "init.cc",
102 "init.h", 85 "init.h",
103 ] 86 ]
104 87
105 deps = [ 88 deps = [
106 "//base", 89 "//base",
107 ] 90 ]
108 } 91 }
109 92
110 source_set("in_process_native_runner") { 93 source_set("in_process_native_runner") {
111 sources = [ 94 sources = [
112 "in_process_native_runner.cc", 95 "in_process_native_runner.cc",
113 "in_process_native_runner.h", 96 "in_process_native_runner.h",
114 ] 97 ]
115 98
116 public_deps = [ 99 public_deps = [
117 ":native_application_support", 100 ":native_application_support",
118 "//mojo/shell/application_manager", 101 "//mojo/shell/application_manager",
119 ] 102 ]
120 103
121 deps = [ 104 deps = [
122 "//base", 105 "//base",
123 ] 106 ]
124 } 107 }
125 108
126 source_set("lib") { 109 source_set("lib") {
127 sources = [ 110 sources = [
128 "app_child_process.cc",
129 "app_child_process.h",
130 "app_child_process_host.cc", 111 "app_child_process_host.cc",
131 "app_child_process_host.h", 112 "app_child_process_host.h",
132 "child_process.cc", 113 "child_process.cc",
133 "child_process.h", 114 "child_process.h",
134 "child_process_host.cc", 115 "child_process_host.cc",
135 "child_process_host.h", 116 "child_process_host.h",
136 "command_line_util.cc", 117 "command_line_util.cc",
137 "command_line_util.h", 118 "command_line_util.h",
138 "context.cc", 119 "context.cc",
139 "context.h", 120 "context.h",
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 ] 437 ]
457 438
458 deps = [ 439 deps = [
459 "//base", 440 "//base",
460 "//mojo/application", 441 "//mojo/application",
461 "//mojo/application:test_support", 442 "//mojo/application:test_support",
462 "//mojo/common:common", 443 "//mojo/common:common",
463 "//third_party/mojo/src/mojo/public/cpp/bindings:callback", 444 "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
464 "//third_party/mojo/src/mojo/public/cpp/environment", 445 "//third_party/mojo/src/mojo/public/cpp/environment",
465 "//third_party/mojo/src/mojo/public/cpp/system:system", 446 "//third_party/mojo/src/mojo/public/cpp/system:system",
466 # "//mojo/services/http_server/public/cpp", 447
467 # "//mojo/services/http_server/public/interfaces", 448 #"//mojo/services/http_server/public/cpp",
449 #"//mojo/services/http_server/public/interfaces",
468 "//mojo/services/network/public/interfaces", 450 "//mojo/services/network/public/interfaces",
469 "//mojo/shell/test:bindings", 451 "//mojo/shell/test:bindings",
470 ] 452 ]
471 453
472 #data_deps = [ "//services/http_server:http_server($default_toolchain)" ] 454 #data_deps = [ "//services/http_server:http_server($default_toolchain)" ]
473 } 455 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698