Home | History | Annotate | Download | only in hwc
      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     ],
     37     shared_libs: [
     38         "libui",
     39         "libnativewindow"
     40     ],
     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",
     55         "libnativewindow"
     56     ],
     57 
     58     gtest: false,
     59 
     60     static_libs: [
     61         "libglTest",
     62         "libhwcTest",
     63         "libtestUtil",
     64     ],
     65 }
     66 
     67 cc_test {
     68 
     69     name: "hwcStress",
     70     srcs: ["hwcStress.cpp"],
     71 
     72     defaults: [
     73         "hwc_lib_defaults",
     74         "hwc_tests_defaults",
     75     ],
     76 }
     77 
     78 cc_test {
     79 
     80     name: "hwcRects",
     81     srcs: ["hwcRects.cpp"],
     82 
     83     defaults: [
     84         "hwc_lib_defaults",
     85         "hwc_tests_defaults",
     86     ],
     87 }
     88 
     89 cc_test {
     90 
     91     name: "hwcColorEquiv",
     92     srcs: ["hwcColorEquiv.cpp"],
     93 
     94     defaults: [
     95         "hwc_lib_defaults",
     96         "hwc_tests_defaults",
     97     ],
     98 }
     99 
    100 cc_test {
    101 
    102     name: "hwcCommit",
    103     srcs: ["hwcCommit.cpp"],
    104 
    105     defaults: [
    106         "hwc_lib_defaults",
    107         "hwc_tests_defaults",
    108     ],
    109 }
    110