| 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 |  | 
|  | 15 | cc_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 |  | 
|  | 27 | cc_library_static { | 
|  | 28 |  | 
|  | 29 | name: "libhwcTest", | 
|  | 30 | srcs: ["hwcTestLib.cpp"], | 
|  | 31 |  | 
|  | 32 | static_libs: [ | 
|  | 33 | "libarect", | 
|  | 34 | "libglTest", | 
|  | 35 | "libtestUtil", | 
|  | 36 | ], | 
| Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 37 | shared_libs: [ | 
|  | 38 | "libui", | 
|  | 39 | "libnativewindow" | 
|  | 40 | ], | 
| Courtney Goeltzenleuchter | 423c076 | 2017-05-03 16:35:21 -0600 | [diff] [blame] | 41 | defaults: ["hwc_tests_defaults"], | 
|  | 42 | } | 
|  | 43 |  | 
|  | 44 | cc_defaults { | 
|  | 45 |  | 
|  | 46 | name: "hwc_lib_defaults", | 
|  | 47 | shared_libs: [ | 
|  | 48 | "libcutils", | 
|  | 49 | "libEGL", | 
|  | 50 | "libGLESv2", | 
|  | 51 | "libhardware", | 
|  | 52 | "liblog", | 
|  | 53 | "libui", | 
|  | 54 | "libutils", | 
| Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 55 | "libnativewindow" | 
| Courtney Goeltzenleuchter | 423c076 | 2017-05-03 16:35:21 -0600 | [diff] [blame] | 56 | ], | 
|  | 57 |  | 
|  | 58 | static_libs: [ | 
|  | 59 | "libglTest", | 
|  | 60 | "libhwcTest", | 
|  | 61 | "libtestUtil", | 
|  | 62 | ], | 
|  | 63 | } | 
|  | 64 |  | 
|  | 65 | cc_test { | 
|  | 66 |  | 
|  | 67 | name: "hwcStress", | 
|  | 68 | srcs: ["hwcStress.cpp"], | 
|  | 69 |  | 
|  | 70 | defaults: [ | 
|  | 71 | "hwc_lib_defaults", | 
|  | 72 | "hwc_tests_defaults", | 
|  | 73 | ], | 
|  | 74 | } | 
|  | 75 |  | 
|  | 76 | cc_test { | 
|  | 77 |  | 
|  | 78 | name: "hwcRects", | 
|  | 79 | srcs: ["hwcRects.cpp"], | 
|  | 80 |  | 
|  | 81 | defaults: [ | 
|  | 82 | "hwc_lib_defaults", | 
|  | 83 | "hwc_tests_defaults", | 
|  | 84 | ], | 
|  | 85 | } | 
|  | 86 |  | 
|  | 87 | cc_test { | 
|  | 88 |  | 
|  | 89 | name: "hwcColorEquiv", | 
|  | 90 | srcs: ["hwcColorEquiv.cpp"], | 
|  | 91 |  | 
|  | 92 | defaults: [ | 
|  | 93 | "hwc_lib_defaults", | 
|  | 94 | "hwc_tests_defaults", | 
|  | 95 | ], | 
|  | 96 | } | 
|  | 97 |  | 
|  | 98 | cc_test { | 
|  | 99 |  | 
|  | 100 | name: "hwcCommit", | 
|  | 101 | srcs: ["hwcCommit.cpp"], | 
|  | 102 |  | 
|  | 103 | defaults: [ | 
|  | 104 | "hwc_lib_defaults", | 
|  | 105 | "hwc_tests_defaults", | 
|  | 106 | ], | 
|  | 107 | } |