OSDN Git Service

am 909221f1: am c3f8ba8a: am dab356e3: Promote AVCTP version to 1.4
[android-x86/system-bt.git] / build / secondary / third_party / gtest / BUILD.gn
1 #
2 #  Copyright (C) 2015 Google, Inc.
3 #
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at:
7 #
8 #  http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #
16
17 config("gtest_config") {
18   # Gtest headers need to be able to find themselves.
19   include_dirs = [ "include" ]
20
21   defines = [ "GTEST_HAS_RTTI=0" ]
22 }
23
24 config("gtest_direct_config") {
25   visibility = [ ":*" ]
26   defines = [ "UNIT_TEST" ]
27 }
28
29 static_library("gtest") {
30   testonly = true
31   sources = [
32     "include/gtest/gtest-death-test.h",
33     "include/gtest/gtest-message.h",
34     "include/gtest/gtest-param-test.h",
35     "include/gtest/gtest-printers.h",
36     "include/gtest/gtest-spi.h",
37     "include/gtest/gtest-test-part.h",
38     "include/gtest/gtest-typed-test.h",
39     "include/gtest/gtest.h",
40     "include/gtest/gtest_pred_impl.h",
41     "include/gtest/internal/gtest-death-test-internal.h",
42     "include/gtest/internal/gtest-filepath.h",
43     "include/gtest/internal/gtest-internal.h",
44     "include/gtest/internal/gtest-linked_ptr.h",
45     "include/gtest/internal/gtest-param-util-generated.h",
46     "include/gtest/internal/gtest-param-util.h",
47     "include/gtest/internal/gtest-port.h",
48     "include/gtest/internal/gtest-string.h",
49     "include/gtest/internal/gtest-tuple.h",
50     "include/gtest/internal/gtest-type-util.h",
51
52     "src/gtest-all.cc",
53     "src/gtest-death-test.cc",
54     "src/gtest-filepath.cc",
55     "src/gtest-internal-inl.h",
56     "src/gtest-port.cc",
57     "src/gtest-printers.cc",
58     "src/gtest-test-part.cc",
59     "src/gtest-typed-test.cc",
60     "src/gtest.cc",
61   ]
62
63   include_dirs = [ "." ]
64
65   all_dependent_configs = [ ":gtest_config" ]
66   public_configs = [ ":gtest_direct_config" ]
67 }
68
69 source_set("gtest_main") {
70   testonly = true
71   sources = [
72     "src/gtest_main.cc",
73   ]
74   deps = [
75     ":gtest",
76   ]
77 }