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

Side by Side Diff: tools/gn/secondary/testing/BUILD.gn

Issue 26561005: GYP generator for GN (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/secondary/net/BUILD.gn ('k') | tools/gn/setup.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 # TODO(brettw) move to testing/gtest/BUILD.gn 5 # TODO(brettw) move to testing/gtest/BUILD.gn
6 config("gtest_config") { 6 config("gtest_config") {
7 defines = [ "UNIT_TEST" ] 7 defines = [ "UNIT_TEST" ]
8 include_dirs = [ "gtest/include" ] # Gtest headers need to be able to find th emselves. 8 include_dirs = [ "gtest/include" ] # Gtest headers need to be able to find th emselves.
9 if (is_win) { 9 if (is_win) {
10 cflags = [ "/wd4800" ] # Unused variable warning. 10 cflags = [ "/wd4800" ] # Unused variable warning.
11 } 11 }
12 } 12 }
13 13
14 # TODO(brettw) move to testing/gtest/BUILD.gn 14 # TODO(brettw) move to testing/gtest/BUILD.gn
15 static_library("gtest") { 15 static_library("gtest") {
16 external = true 16 external = true
17 gyp_file = "gtest.gyp"
17 sources = [ 18 sources = [
18 "gtest/include/gtest/gtest-death-test.h", 19 "gtest/include/gtest/gtest-death-test.h",
19 "gtest/include/gtest/gtest-message.h", 20 "gtest/include/gtest/gtest-message.h",
20 "gtest/include/gtest/gtest-param-test.h", 21 "gtest/include/gtest/gtest-param-test.h",
21 "gtest/include/gtest/gtest-printers.h", 22 "gtest/include/gtest/gtest-printers.h",
22 "gtest/include/gtest/gtest-spi.h", 23 "gtest/include/gtest/gtest-spi.h",
23 "gtest/include/gtest/gtest-test-part.h", 24 "gtest/include/gtest/gtest-test-part.h",
24 "gtest/include/gtest/gtest-typed-test.h", 25 "gtest/include/gtest/gtest-typed-test.h",
25 "gtest/include/gtest/gtest.h", 26 "gtest/include/gtest/gtest.h",
26 "gtest/include/gtest/gtest_pred_impl.h", 27 "gtest/include/gtest/gtest_pred_impl.h",
(...skipping 26 matching lines...) Expand all
53 } 54 }
54 55
55 # TODO(brettw) move to testing/gmock/BUILD.gn 56 # TODO(brettw) move to testing/gmock/BUILD.gn
56 config("gmock_config") { 57 config("gmock_config") {
57 # Gmock headers need to be able to find themselves. 58 # Gmock headers need to be able to find themselves.
58 include_dirs = [ "gmock/include" ] 59 include_dirs = [ "gmock/include" ]
59 } 60 }
60 61
61 # TODO(brettw) move to testing/gmock/BUILD.gn 62 # TODO(brettw) move to testing/gmock/BUILD.gn
62 static_library("gmock") { 63 static_library("gmock") {
64 gyp_file = "gmock.gyp"
63 external = true 65 external = true
64 sources = [ 66 sources = [
65 # Sources based on files in r173 of gmock. 67 # Sources based on files in r173 of gmock.
66 "gmock/include/gmock/gmock-actions.h", 68 "gmock/include/gmock/gmock-actions.h",
67 "gmock/include/gmock/gmock-cardinalities.h", 69 "gmock/include/gmock/gmock-cardinalities.h",
68 "gmock/include/gmock/gmock-generated-actions.h", 70 "gmock/include/gmock/gmock-generated-actions.h",
69 "gmock/include/gmock/gmock-generated-function-mockers.h", 71 "gmock/include/gmock/gmock-generated-function-mockers.h",
70 "gmock/include/gmock/gmock-generated-matchers.h", 72 "gmock/include/gmock/gmock-generated-matchers.h",
71 "gmock/include/gmock/gmock-generated-nice-strict.h", 73 "gmock/include/gmock/gmock-generated-nice-strict.h",
72 "gmock/include/gmock/gmock-matchers.h", 74 "gmock/include/gmock/gmock-matchers.h",
(...skipping 16 matching lines...) Expand all
89 91
90 direct_dependent_configs = [ 92 direct_dependent_configs = [
91 ":gmock_config", 93 ":gmock_config",
92 "//testing:gtest_config", 94 "//testing:gtest_config",
93 ] 95 ]
94 } 96 }
95 97
96 # TODO(brettw) move to testing/gmock/BUILD.gn 98 # TODO(brettw) move to testing/gmock/BUILD.gn
97 static_library("gmock_main") { 99 static_library("gmock_main") {
98 external = true 100 external = true
101 gyp_file = "gmock.gyp"
99 sources = [ "src/gmock_main.cc" ] 102 sources = [ "src/gmock_main.cc" ]
100 deps = [ ":gmock" ] 103 deps = [ ":gmock" ]
101 } 104 }
OLDNEW
« no previous file with comments | « tools/gn/secondary/net/BUILD.gn ('k') | tools/gn/setup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698