blob: 6298241d1cea5af916640502808ba14f9e743cd3 [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001# 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.
4
5config("gmock_config") {
6 # Gmock headers need to be able to find themselves.
7 include_dirs = [ "include" ]
8}
9
10static_library("gmock") {
11 testonly = true
12 sources = [
13 # Sources based on files in r173 of gmock.
14 "include/gmock/gmock-actions.h",
15 "include/gmock/gmock-cardinalities.h",
16 "include/gmock/gmock-generated-actions.h",
17 "include/gmock/gmock-generated-function-mockers.h",
18 "include/gmock/gmock-generated-matchers.h",
19 "include/gmock/gmock-generated-nice-strict.h",
20 "include/gmock/gmock-matchers.h",
21 "include/gmock/gmock-spec-builders.h",
22 "include/gmock/gmock.h",
23 "include/gmock/internal/gmock-generated-internal-utils.h",
24 "include/gmock/internal/gmock-internal-utils.h",
25 "include/gmock/internal/gmock-port.h",
26
27 #"src/gmock-all.cc", # Not needed by our build.
28 "src/gmock-cardinalities.cc",
29 "src/gmock-internal-utils.cc",
30 "src/gmock-matchers.cc",
31 "src/gmock-spec-builders.cc",
32 "src/gmock.cc",
33 ]
34
35 # This project includes some stuff form gtest's guts.
36 include_dirs = [ "../gtest/include" ]
37
38 public_configs = [
39 ":gmock_config",
40 "//testing/gtest:gtest_config",
41 ]
42}
43
44static_library("gmock_main") {
45 testonly = true
46 sources = [
47 "src/gmock_main.cc",
48 ]
49 deps = [
50 ":gmock",
51 ]
52}