blob: b0f94569dc708b244ec07877d963cc8fa70b2f92 [file] [log] [blame]
Christopher Ferris1a993562018-08-21 12:43:50 -07001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_library {
16 name: "libgtest_isolated",
17 host_supported: true,
18 cflags: ["-Wall", "-Werror"],
19 export_include_dirs: ["include"],
20
21 srcs: [
22 "Color.cpp",
23 "Isolate.cpp",
24 "IsolateMain.cpp",
25 "NanoTime.cpp",
26 "Options.cpp",
27 "Test.cpp",
28 ],
29
Christopher Ferriscde0a072018-09-14 12:31:39 -070030 // NOTE: libbase and liblog are re-exported by including them below.
31 // When Soong supports transitive static dependency includes, these
32 // libraries can be removed.
33 whole_static_libs: [
34 "libbase",
35 "libgtest",
36 "liblog",
37 ],
Christopher Ferris1a993562018-08-21 12:43:50 -070038}
39
40cc_library {
41 name: "libgtest_isolated_main",
42 host_supported: true,
43 cflags: ["-Wall", "-Werror"],
44 srcs: [
45 "Main.cpp",
46 ],
47
Christopher Ferriscde0a072018-09-14 12:31:39 -070048 whole_static_libs: [
49 "libgtest_isolated",
50 ],
Christopher Ferris1a993562018-08-21 12:43:50 -070051}
52
53cc_test {
54 name: "gtest_isolated_tests",
55 host_supported: true,
56 srcs: [
57 "tests/OptionsTest.cpp",
58 "tests/SystemTests.cpp",
59 ],
60 cflags: ["-Wall", "-Werror"],
61
62 shared_libs: ["libbase"],
63 whole_static_libs: ["libgtest_isolated_main"],
64}