Courtney Goeltzenleuchter | 423c076 | 2017-05-03 16:35:21 -0600 | [diff] [blame] | 1 | // 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 Badour | 3c53823 | 2021-02-12 21:26:48 -0800 | [diff] [blame] | 15 | package { |
| 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 Goeltzenleuchter | 423c076 | 2017-05-03 16:35:21 -0600 | [diff] [blame] | 24 | cc_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 | |
| 36 | cc_library_static { |
| 37 | |
| 38 | name: "libhwcTest", |
| 39 | srcs: ["hwcTestLib.cpp"], |
| 40 | |
| 41 | static_libs: [ |
| 42 | "libarect", |
| 43 | "libglTest", |
| 44 | "libtestUtil", |
| 45 | ], |
Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 46 | shared_libs: [ |
| 47 | "libui", |
| 48 | "libnativewindow" |
| 49 | ], |
Courtney Goeltzenleuchter | 423c076 | 2017-05-03 16:35:21 -0600 | [diff] [blame] | 50 | defaults: ["hwc_tests_defaults"], |
| 51 | } |
| 52 | |
| 53 | cc_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 Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 64 | "libnativewindow" |
Courtney Goeltzenleuchter | 423c076 | 2017-05-03 16:35:21 -0600 | [diff] [blame] | 65 | ], |
| 66 | |
Chih-Hung Hsieh | da3ad6f | 2017-10-26 15:01:12 -0700 | [diff] [blame] | 67 | gtest: false, |
| 68 | |
Courtney Goeltzenleuchter | 423c076 | 2017-05-03 16:35:21 -0600 | [diff] [blame] | 69 | static_libs: [ |
| 70 | "libglTest", |
| 71 | "libhwcTest", |
| 72 | "libtestUtil", |
| 73 | ], |
| 74 | } |
| 75 | |
| 76 | cc_test { |
| 77 | |
| 78 | name: "hwcStress", |
| 79 | srcs: ["hwcStress.cpp"], |
| 80 | |
| 81 | defaults: [ |
| 82 | "hwc_lib_defaults", |
| 83 | "hwc_tests_defaults", |
| 84 | ], |
| 85 | } |
| 86 | |
| 87 | cc_test { |
| 88 | |
| 89 | name: "hwcRects", |
| 90 | srcs: ["hwcRects.cpp"], |
| 91 | |
| 92 | defaults: [ |
| 93 | "hwc_lib_defaults", |
| 94 | "hwc_tests_defaults", |
| 95 | ], |
| 96 | } |
| 97 | |
| 98 | cc_test { |
| 99 | |
| 100 | name: "hwcColorEquiv", |
| 101 | srcs: ["hwcColorEquiv.cpp"], |
| 102 | |
| 103 | defaults: [ |
| 104 | "hwc_lib_defaults", |
| 105 | "hwc_tests_defaults", |
| 106 | ], |
| 107 | } |
| 108 | |
| 109 | cc_test { |
| 110 | |
| 111 | name: "hwcCommit", |
| 112 | srcs: ["hwcCommit.cpp"], |
| 113 | |
| 114 | defaults: [ |
| 115 | "hwc_lib_defaults", |
| 116 | "hwc_tests_defaults", |
| 117 | ], |
| 118 | } |