blob: 719eb114a197c7d96a191f5c64b5b688c9480ee8 [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
Bob Badour3c538232021-02-12 21:26:48 -080015package {
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 "frameworks_native_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_native_license"],
22}
23
Courtney Goeltzenleuchter423c0762017-05-03 16:35:21 -060024cc_defaults {
25
26 name: "hwc_tests_defaults",
27 cflags: [
28 "-DGL_GLEXT_PROTOTYPES",
29 "-DEGL_EGLEXT_PROTOTYPES",
30 "-Wall",
31 "-Wextra",
32 "-Werror",
33 ],
34}
35
36cc_library_static {
37
38 name: "libhwcTest",
39 srcs: ["hwcTestLib.cpp"],
40
41 static_libs: [
42 "libarect",
43 "libglTest",
44 "libtestUtil",
45 ],
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070046 shared_libs: [
47 "libui",
48 "libnativewindow"
49 ],
Courtney Goeltzenleuchter423c0762017-05-03 16:35:21 -060050 defaults: ["hwc_tests_defaults"],
51}
52
53cc_defaults {
54
55 name: "hwc_lib_defaults",
56 shared_libs: [
57 "libcutils",
58 "libEGL",
59 "libGLESv2",
60 "libhardware",
61 "liblog",
62 "libui",
63 "libutils",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070064 "libnativewindow"
Courtney Goeltzenleuchter423c0762017-05-03 16:35:21 -060065 ],
66
Chih-Hung Hsiehda3ad6f2017-10-26 15:01:12 -070067 gtest: false,
68
Courtney Goeltzenleuchter423c0762017-05-03 16:35:21 -060069 static_libs: [
70 "libglTest",
71 "libhwcTest",
72 "libtestUtil",
73 ],
74}
75
76cc_test {
77
78 name: "hwcStress",
79 srcs: ["hwcStress.cpp"],
80
81 defaults: [
82 "hwc_lib_defaults",
83 "hwc_tests_defaults",
84 ],
85}
86
87cc_test {
88
89 name: "hwcRects",
90 srcs: ["hwcRects.cpp"],
91
92 defaults: [
93 "hwc_lib_defaults",
94 "hwc_tests_defaults",
95 ],
96}
97
98cc_test {
99
100 name: "hwcColorEquiv",
101 srcs: ["hwcColorEquiv.cpp"],
102
103 defaults: [
104 "hwc_lib_defaults",
105 "hwc_tests_defaults",
106 ],
107}
108
109cc_test {
110
111 name: "hwcCommit",
112 srcs: ["hwcCommit.cpp"],
113
114 defaults: [
115 "hwc_lib_defaults",
116 "hwc_tests_defaults",
117 ],
118}