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

Side by Side Diff: mojo/BUILD.gn

Issue 1312763004: Rationalize the top-level BUILD.gn rules a bit (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « BUILD.gn ('k') | services/BUILD.gn » ('j') | services/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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")
6 import("//build/module_args/mojo.gni") 5 import("//build/module_args/mojo.gni")
7 import("//mojo/public/mojo.gni") 6 import("//mojo/public/mojo.gni")
8 7
9 # TODO(beng): this meta target should probably move to the root dir's BUILD.gn.
10 group("mojo") { 8 group("mojo") {
11 # Meta-target, don't link into production code. 9 # Meta-target, don't link into production code.
12 testonly = true 10 testonly = true
13 declare_args() { 11 declare_args() {
14 mojo_use_go = false 12 mojo_use_go = false
15 13
16 # TODO(ncbray): support ASAN once NaCl's GN build is unforked. 14 # TODO(ncbray): support ASAN once NaCl's GN build is unforked.
17 mojo_use_nacl = is_linux && !is_asan 15 mojo_use_nacl = is_linux && !is_asan
18 } 16 }
19 deps = [ 17 deps = [
20 ":tests", 18 ":tests",
21 "//benchmarks",
22 "//examples",
23 "//mojo/common", 19 "//mojo/common",
24 "//mojo/dart", 20 "//mojo/dart",
25 "//mojo/public", 21 "//mojo/public",
26 "//mojo/services", 22 "//mojo/services",
27 "//services",
28 ] 23 ]
29 24
30 if (is_android) { 25 if (is_android) {
31 deps += [ 26 deps += [
32 "//mojo/android", 27 "//mojo/android",
33 "//mojo/java", 28 "//mojo/java",
34 "//mojo/tools/android_shortcuts", 29 "//mojo/tools/android_shortcuts",
35 "//mojo/tools:remote_file_reader", 30 "//mojo/tools:remote_file_reader",
36 ] 31 ]
37 } 32 }
38 33
39 if (is_linux && mojo_use_go) { 34 if (is_linux && mojo_use_go) {
40 deps += [ "//mojo/go" ] 35 deps += [ "//mojo/go" ]
41 } 36 }
42 37
43 if (is_linux) { 38 if (is_linux) {
44 deps += [ "//mojo/python" ] 39 deps += [ "//mojo/python" ]
45 } 40 }
46 41
47 if (mojo_use_nacl) { 42 if (mojo_use_nacl) {
48 deps += [ 43 deps += [
49 "//mojo/nacl:mojo_nacl", 44 "//mojo/nacl:mojo_nacl",
50 "//mojo/nacl:mojo_nacl_tests", 45 "//mojo/nacl:mojo_nacl_tests",
51 ] 46 ]
52 } 47 }
53
54 if (use_ozone) {
55 deps += [
56 "//ui/ozone",
57 "//ui/ozone/demo",
58 ]
59 }
60 } 48 }
61 49
62 group("tests") { 50 group("tests") {
63 testonly = true 51 testonly = true
64 deps = [ 52 deps = [
65 "//mojo/common:mojo_common_unittests", 53 "//mojo/common:mojo_common_unittests",
66 "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests", 54 "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests",
67 "//mojo/edk/system:tests", 55 "//mojo/edk/system:tests",
68 "//mojo/edk/test:public_tests", 56 "//mojo/edk/test:public_tests",
69 "//mojo/dart/embedder/test:dart_unittests", 57 "//mojo/dart/embedder/test:dart_unittests",
70 "//mojo/public/cpp/bindings/tests:versioning_apptests", 58 "//mojo/public/cpp/bindings/tests:versioning_apptests",
71 "//mojo/services/view_manager/public/cpp/tests:mojo_view_manager_lib_unittes ts", 59 "//mojo/services/view_manager/public/cpp/tests:mojo_view_manager_lib_unittes ts",
72 "//mojo/tests:mojo_task_tracker_perftests", 60 "//mojo/tests:mojo_task_tracker_perftests",
73 "//mojo/tools:message_generator", 61 "//mojo/tools:message_generator",
74 "//services/asset_bundle:apptests",
75 "//services/clipboard:apptests",
76 "//services/dart/dart_apptests",
77 "//services/files:apptests",
78 "//mojo/gpu:apptests", 62 "//mojo/gpu:apptests",
79 "//mojo/services/files/public/c:apptests", 63 "//mojo/services/files/public/c:apptests",
80 "//services/authenticating_url_loader_interceptor:apptests",
81 "//services/http_server:apptests",
82 "//services/prediction:apptests",
83 "//services/reaper:tests",
84 "//services/url_response_disk_cache:tests",
85 "//services/view_manager:mojo_view_manager_client_apptests",
86 "//services/view_manager:view_manager_service_apptests",
87 "//services/view_manager:view_manager_service_unittests",
88 "//services/window_manager:window_manager_apptests",
89 "//services/window_manager:window_manager_unittests",
90 "//shell:apptests",
91 ] 64 ]
92 65
93 if (is_linux) {
94 deps += [ "//services/python:python_apptests" ]
95 }
96
97 if (is_android) {
98 deps += [ "//services/notifications:apptests" ]
99 }
100
101 # TODO(jamesr): We only support building V8 snapshot data on a linux host sinc e it 66 # TODO(jamesr): We only support building V8 snapshot data on a linux host sinc e it
102 # needs a 32 bit toolchain and we don't have one configured for mac hosts. 67 # needs a 32 bit toolchain and we don't have one configured for mac hosts.
103 if (host_os == "linux") { 68 if (host_os == "linux") {
104 deps += [ 69 deps += [ "//mojo/edk/js:tests" ]
105 "//mojo/edk/js:tests",
106 "//services/js:js_apptests",
107 "//services/js:js_services_unittests",
108 ]
109 } 70 }
110 71
111 if (mojo_use_prebuilt_network_service) { 72 if (mojo_use_prebuilt_network_service) {
112 deps += [ "//mojo/public/tools:copy_network_service_apptests" ] 73 deps += [ "//mojo/public/tools:copy_network_service_apptests" ]
113 } 74 }
114 } 75 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | services/BUILD.gn » ('j') | services/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698