xref: /aosp_15_r20/external/googletest/googlemock/test/Android.bp (revision 481dde660366d6f317d242b6974ef1b20adb843c)
1// Copyright (C) 2016 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
15package {
16    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "external_googletest_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-BSD
21    default_applicable_licenses: ["external_googletest_license"],
22}
23
24cc_defaults {
25    name: "gmock_test_defaults",
26    host_supported: true,
27    gtest: false,
28    cpp_std: "c++14",
29    cflags: [
30        "-Wall",
31        "-Werror",
32        "-Wno-sign-compare",
33        "-Wno-unused-parameter",
34        "-Wno-unused-private-field",
35    ],
36    include_dirs: [
37        "external/googletest/googlemock",
38        "external/googletest/googletest",
39    ],
40    static_libs: [
41        "libgmock_main",
42        "libgmock",
43        "libgtest",
44    ],
45}
46
47cc_test {
48    name: "gmock_all_test",
49    defaults: ["gmock_test_defaults"],
50    srcs: ["gmock-*.cc"],
51}
52
53cc_test {
54    name: "gmock_link_test",
55    defaults: ["gmock_test_defaults"],
56    srcs: [
57        "gmock_link_test.cc",
58        "gmock_link2_test.cc",
59    ],
60}
61
62cc_test {
63    name: "gmock_test",
64    defaults: ["gmock_test_defaults"],
65    srcs: ["gmock_test.cc"],
66}
67