blob: b6e6f0eed99d0bad8ec07da2b6b6e8922f8d837c [file] [log] [blame]
Courtney Goeltzenleuchter423c0762017-05-03 16:35:21 -06001// Copyright (C) 2010 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_defaults {
16
17 name: "hwc_tests_defaults",
18 cflags: [
19 "-DGL_GLEXT_PROTOTYPES",
20 "-DEGL_EGLEXT_PROTOTYPES",
21 "-Wall",
22 "-Wextra",
23 "-Werror",
24 ],
25}
26
27cc_library_static {
28
29 name: "libhwcTest",
30 srcs: ["hwcTestLib.cpp"],
31
32 static_libs: [
33 "libarect",
34 "libglTest",
35 "libtestUtil",
36 ],
37 defaults: ["hwc_tests_defaults"],
38}
39
40cc_defaults {
41
42 name: "hwc_lib_defaults",
43 shared_libs: [
44 "libcutils",
45 "libEGL",
46 "libGLESv2",
47 "libhardware",
48 "liblog",
49 "libui",
50 "libutils",
51 ],
52
53 static_libs: [
54 "libglTest",
55 "libhwcTest",
56 "libtestUtil",
57 ],
58}
59
60cc_test {
61
62 name: "hwcStress",
63 srcs: ["hwcStress.cpp"],
64
65 defaults: [
66 "hwc_lib_defaults",
67 "hwc_tests_defaults",
68 ],
69}
70
71cc_test {
72
73 name: "hwcRects",
74 srcs: ["hwcRects.cpp"],
75
76 defaults: [
77 "hwc_lib_defaults",
78 "hwc_tests_defaults",
79 ],
80}
81
82cc_test {
83
84 name: "hwcColorEquiv",
85 srcs: ["hwcColorEquiv.cpp"],
86
87 defaults: [
88 "hwc_lib_defaults",
89 "hwc_tests_defaults",
90 ],
91}
92
93cc_test {
94
95 name: "hwcCommit",
96 srcs: ["hwcCommit.cpp"],
97
98 defaults: [
99 "hwc_lib_defaults",
100 "hwc_tests_defaults",
101 ],
102}