Home | History | Annotate | Download | only in hwc2on1adapter
      1 // Copyright 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_library_shared {
     16     name: "libhwc2on1adapter",
     17     vendor: true,
     18 
     19     clang: true,
     20     cppflags: [
     21         "-Weverything",
     22         "-Wall",
     23         "-Wunused",
     24         "-Wunreachable-code",
     25 
     26         // The static constructors and destructors in this library have not been noted to
     27         // introduce significant overheads
     28         "-Wno-exit-time-destructors",
     29         "-Wno-global-constructors",
     30 
     31         // We only care about compiling as C++14
     32         "-Wno-c++98-compat-pedantic",
     33 
     34         // android/sensors.h uses nested anonymous unions and anonymous structs
     35         "-Wno-nested-anon-types",
     36         "-Wno-gnu-anonymous-struct",
     37 
     38         // Don't warn about struct padding
     39         "-Wno-padded",
     40 
     41         // hwcomposer2.h features switch covering all cases.
     42         "-Wno-covered-switch-default",
     43 
     44         // hwcomposer.h features zero size array.
     45         "-Wno-zero-length-array",
     46 
     47         // Disabling warning specific to hwc2on1adapter code
     48         "-Wno-double-promotion",
     49         "-Wno-sign-conversion",
     50         "-Wno-switch-enum",
     51         "-Wno-float-equal",
     52         "-Wno-shorten-64-to-32",
     53         "-Wno-sign-compare",
     54         "-Wno-missing-prototypes",
     55     ],
     56 
     57     srcs: [
     58         "HWC2On1Adapter.cpp",
     59         "MiniFence.cpp",
     60     ],
     61 
     62     shared_libs: [
     63         "libutils",
     64         "libcutils",
     65         "liblog",
     66         "libhardware",
     67     ],
     68 
     69     export_include_dirs: ["include"],
     70 
     71     export_shared_lib_headers: ["libutils"],
     72 }
     73