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

Side by Side Diff: mojo/BUILD.gn

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to mojo::edk namespace in preparation for runtim flag Created 5 years, 2 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 6
7 group("mojo") { 7 group("mojo") {
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 ":tests", 11 ":tests",
12 "//mojo/common", 12 "//mojo/common",
13 "//mojo/services", 13 "//mojo/services",
14 "//third_party/mojo/src/mojo/public", 14 "//third_party/mojo/src/mojo/public",
15 ] 15 ]
16 16
17 if (is_android) { 17 if (is_android) {
18 deps += [ "//mojo/android" ] 18 deps += [ "//mojo/android" ]
19 } 19 }
20 20
21 if (!is_component_build) { 21 if (!is_component_build) {
22 deps += [ "//mojo/runner" ] 22 deps += [ "//mojo/runner" ]
23 } 23 }
24 } 24 }
25 25
26 # TODO(GYP): Delete this after we've converted everything to GN. 26 # TODO(GYP): Delete this after we've converted everything to GN.
27 # The _run targets exist only for compatibility w/ GYP. 27 # The _run targets exist only for compatibility w/ GYP.
28 group("mojo_public_bindings_unittests_run") { 28 group("mojo_public_bindings_unittests_run") {
29 testonly = true 29 testonly = true
30 deps = [ 30 deps = []
31 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", 31 if (use_chrome_edk) {
32 ] 32 deps += [ "//mojo/edk/test:mojo_public_bindings_unittests" ]
33 } else {
34 deps += [ "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittes ts" ]
35 }
33 } 36 }
34 37
35 # TODO(GYP): Delete this after we've converted everything to GN. 38 # TODO(GYP): Delete this after we've converted everything to GN.
36 # The _run targets exist only for compatibility w/ GYP. 39 # The _run targets exist only for compatibility w/ GYP.
37 group("mojo_public_environment_unittests_run") { 40 group("mojo_public_environment_unittests_run") {
38 testonly = true 41 testonly = true
39 deps = [ 42 deps = []
40 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", 43 if (use_chrome_edk) {
41 ] 44 deps += [ "//mojo/edk/test:mojo_public_bindings_unittests" ]
45 } else {
46 deps += [ "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittes ts" ]
47 }
42 } 48 }
43 49
44 # TODO(GYP): Delete this after we've converted everything to GN. 50 # TODO(GYP): Delete this after we've converted everything to GN.
45 # The _run targets exist only for compatibility w/ GYP. 51 # The _run targets exist only for compatibility w/ GYP.
46 group("mojo_public_system_unittests_run") { 52 group("mojo_public_system_unittests_run") {
47 testonly = true 53 testonly = true
48 deps = [ 54
49 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", 55 deps = []
50 ] 56 if (use_chrome_edk) {
57 deps += [ "//mojo/edk/test:mojo_public_system_unittests" ]
58 } else {
59 deps +=
60 [ "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests" ]
61 }
51 } 62 }
52 63
53 # TODO(GYP): Delete this after we've converted everything to GN. 64 # TODO(GYP): Delete this after we've converted everything to GN.
54 # The _run targets exist only for compatibility w/ GYP. 65 # The _run targets exist only for compatibility w/ GYP.
55 group("mojo_public_utility_unittests_run") { 66 group("mojo_public_utility_unittests_run") {
56 testonly = true 67 testonly = true
57 deps = [ 68 deps = []
58 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests", 69 if (use_chrome_edk) {
59 ] 70 deps += [ "//mojo/edk/test:mojo_public_utility_unittests" ]
71 } else {
72 deps +=
73 [ "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests" ]
74 }
60 } 75 }
61 76
62 group("tests") { 77 group("tests") {
63 testonly = true 78 testonly = true
64 deps = [ 79 deps = [
65 "//ipc/mojo:ipc_mojo_unittests", 80 "//ipc/mojo:ipc_mojo_unittests",
66 "//mojo/application/public/cpp/tests:mojo_public_application_unittests", 81 "//mojo/application/public/cpp/tests:mojo_public_application_unittests",
67 "//mojo/common:mojo_common_unittests", 82 "//mojo/common:mojo_common_unittests",
68 "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests", 83 "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests",
69 "//third_party/mojo/src/mojo/edk/js/test:js_unittests",
70 "//third_party/mojo/src/mojo/edk/system:mojo_message_pipe_perftests",
71 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
72 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
73 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
74 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
75 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
76 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
77 ] 84 ]
78 85
86 if (use_chrome_edk) {
87 deps += [
88 "//mojo/edk/js/test:js_unittests",
89 "//mojo/edk/system:mojo_message_pipe_perftests",
90 "//mojo/edk/system:mojo_system_unittests",
91 "//mojo/edk/test:mojo_public_bindings_unittests",
92 "//mojo/edk/test:mojo_public_environment_unittests",
93 "//mojo/edk/test:mojo_public_system_perftests",
94 "//mojo/edk/test:mojo_public_system_unittests",
95 "//mojo/edk/test:mojo_public_utility_unittests",
96 ]
97 } else {
98 deps += [
99 "//third_party/mojo/src/mojo/edk/js/test:js_unittests",
100 "//third_party/mojo/src/mojo/edk/system:mojo_message_pipe_perftests",
101 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
102 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
103 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
104 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
105 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
106 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
107 ]
108 }
109
79 if (!is_component_build) { 110 if (!is_component_build) {
80 deps += [ 111 deps += [
81 "//mojo/runner:apptests", 112 "//mojo/runner:apptests",
82 "//mojo/runner:mojo_runner_unittests", 113 "//mojo/runner:mojo_runner_unittests",
83 "//mojo/services/network:apptests", 114 "//mojo/services/network:apptests",
84 "//mojo/shell:mojo_shell_unittests", 115 "//mojo/shell:mojo_shell_unittests",
85 ] 116 ]
86 117
87 if (is_android) { 118 if (is_android) {
88 deps += [ "//mojo/runner:mojo_runner_apptests_apk" ] 119 deps += [ "//mojo/runner:mojo_runner_apptests_apk" ]
89 } 120 }
90 } 121 }
91 } 122 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698