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

Side by Side Diff: mojo/BUILD.gn

Issue 532423003: Add the "testonly" flag to the GN test target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pullgn
Patch Set: android Created 6 years, 3 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/config/android/rules.gni ('k') | no next file » | no next file with comments »
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") 5 import("//build/config/ui.gni")
6 6
7 group("mojo") { 7 group("mojo") {
8 # Meta-target, don't link into production code.
9 testonly = true
8 deps = [ 10 deps = [
9 ":tests", 11 ":tests",
10 "//mojo/common", 12 "//mojo/common",
11 "//mojo/examples", 13 "//mojo/examples",
12 "//mojo/public", 14 "//mojo/public",
13 "//mojo/services", 15 "//mojo/services",
14 "//mojo/shell:mojo_shell", 16 "//mojo/shell:mojo_shell",
15 ] 17 ]
16 18
17 if (is_linux) { 19 if (is_linux) {
18 deps += [ 20 deps += [
19 "//mojo/python", 21 "//mojo/python",
20 ] 22 ]
21 } 23 }
22 } 24 }
23 25
24 group("tests") { 26 group("tests") {
27 testonly = true
25 deps = [ 28 deps = [
26 "//mojo/application_manager:mojo_application_manager_unittests", 29 "//mojo/application_manager:mojo_application_manager_unittests",
27 "//mojo/apps/js/test:mojo_apps_js_unittests", 30 "//mojo/apps/js/test:mojo_apps_js_unittests",
28 "//mojo/common:mojo_common_unittests", 31 "//mojo/common:mojo_common_unittests",
29 "//mojo/public/cpp/application/tests:mojo_public_application_unittests", 32 "//mojo/public/cpp/application/tests:mojo_public_application_unittests",
30 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests", 33 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests",
31 "//mojo/public/cpp/environment/tests:mojo_public_environment_unittests", 34 "//mojo/public/cpp/environment/tests:mojo_public_environment_unittests",
32 "//mojo/public/cpp/system/tests:mojo_public_system_unittests", 35 "//mojo/public/cpp/system/tests:mojo_public_system_unittests",
33 "//mojo/public/cpp/utility/tests:mojo_public_utility_unittests", 36 "//mojo/public/cpp/utility/tests:mojo_public_utility_unittests",
34 "//mojo/public/js/bindings/tests:mojo_js_unittests", 37 "//mojo/public/js/bindings/tests:mojo_js_unittests",
(...skipping 19 matching lines...) Expand all
54 sources = [ 57 sources = [
55 "android/javatests/src/org/chromium/mojo/MojoTestCase.java", 58 "android/javatests/src/org/chromium/mojo/MojoTestCase.java",
56 "android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java" , 59 "android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java" ,
57 "android/system/src/org/chromium/mojo/system/impl/CoreImpl.java", 60 "android/system/src/org/chromium/mojo/system/impl/CoreImpl.java",
58 "services/native_viewport/android/src/org/chromium/mojo/PlatformViewportAn droid.java", 61 "services/native_viewport/android/src/org/chromium/mojo/PlatformViewportAn droid.java",
59 ] 62 ]
60 63
61 jni_package = "mojo" 64 jni_package = "mojo"
62 } 65 }
63 } 66 }
OLDNEW
« no previous file with comments | « build/config/android/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698