blob: 7f960f302a710a38c9d18aee1b9aa60c57a8c561 [file] [log] [blame]
Lloyd Pique66ce40d2018-01-23 16:42:19 -08001// 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_test {
16 name: "SurfaceFlinger_test",
17 defaults: ["surfaceflinger_defaults"],
Lloyd Pique66ce40d2018-01-23 16:42:19 -080018 test_suites: ["device-tests"],
19 srcs: [
Marissa Wall713b63f2018-10-17 15:42:43 -070020 "BufferGenerator.cpp",
Ana Krulec13be8ad2018-08-21 02:43:56 +000021 "Credentials_test.cpp",
Robert Carrc0df3122019-04-11 13:18:21 -070022 "InvalidHandles_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080023 "Stress_test.cpp",
24 "SurfaceInterceptor_test.cpp",
25 "Transaction_test.cpp",
chaviw8beb4142019-04-11 13:09:05 -070026 "VirtualDisplay_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080027 ],
28 data: ["SurfaceFlinger_test.filter"],
29 static_libs: [
30 "libtrace_proto",
31 ],
32 shared_libs: [
33 "libandroid",
34 "libbinder",
35 "libcutils",
36 "libEGL",
37 "libGLESv2",
38 "libgui",
chaviw7794ec12018-03-14 13:28:39 -070039 "liblayers_proto",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080040 "liblog",
41 "libprotobuf-cpp-full",
Yiwei Zhang0102ad22018-05-02 17:37:17 -070042 "libtimestats_proto",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080043 "libui",
44 "libutils",
45 ]
Valerie Hau9dab9732019-08-20 09:29:25 -070046}
Lloyd Pique66ce40d2018-01-23 16:42:19 -080047
Valerie Hau9dab9732019-08-20 09:29:25 -070048cc_defaults {
49 name: "ipc_defaults",
50 cflags: [
51 "-Wall",
52 "-Werror",
53 ],
54}
55
56cc_test {
57 name: "IPC_test",
58 defaults: ["ipc_defaults"],
59 test_suites: ["device-tests"],
60 srcs: [
61 "BufferGenerator.cpp",
62 "IPC_test.cpp",
63 ],
64 cppflags: [
65 "-Wall",
66 "-Werror",
67 "-Wformat",
68 "-Wthread-safety",
69 "-Wunused",
70 "-Wunreachable-code",
71 ],
72 shared_libs: [
73 "libandroid",
74 "libbinder",
75 "libcutils",
76 "libEGL",
77 "libGLESv2",
78 "libgui",
79 "liblayers_proto",
80 "liblog",
81 "libprotobuf-cpp-full",
82 "libtimestats_proto",
83 "libui",
84 "libutils",
85 ],
86 cpp_std: "experimental",
87 gnu_extensions: false,
Lloyd Pique66ce40d2018-01-23 16:42:19 -080088}
89
90subdirs = [
91 "fakehwc",
92 "hwc2",
Lloyd Piquef58625d2017-12-19 13:22:33 -080093 "unittests",
Valerie Haue9137b72019-08-27 13:22:18 -070094 "utils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080095 "vsync",
96 "waitforvsync",
97]