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
3 # found in the LICENSE file.
5 config("gmock_config") {
6 # Gmock headers need to be able to find themselves.
7 include_dirs = [ "include" ]
10 static_library("gmock") {
11 # TODO http://crbug.com/412064 enable this flag all the time.
12 testonly = !is_component_build
14 # Sources based on files in r173 of gmock.
15 "include/gmock/gmock-actions.h",
16 "include/gmock/gmock-cardinalities.h",
17 "include/gmock/gmock-generated-actions.h",
18 "include/gmock/gmock-generated-function-mockers.h",
19 "include/gmock/gmock-generated-matchers.h",
20 "include/gmock/gmock-generated-nice-strict.h",
21 "include/gmock/gmock-matchers.h",
22 "include/gmock/gmock-spec-builders.h",
23 "include/gmock/gmock.h",
24 "include/gmock/internal/gmock-generated-internal-utils.h",
25 "include/gmock/internal/gmock-internal-utils.h",
26 "include/gmock/internal/gmock-port.h",
28 #"src/gmock-all.cc", # Not needed by our build.
29 "src/gmock-cardinalities.cc",
30 "src/gmock-internal-utils.cc",
31 "src/gmock-matchers.cc",
32 "src/gmock-spec-builders.cc",
36 # This project includes some stuff form gtest's guts.
37 include_dirs = [ "../gtest/include" ]
41 "//testing/gtest:gtest_config",
45 static_library("gmock_main") {
46 # TODO http://crbug.com/412064 enable this flag all the time.
47 testonly = !is_component_build