• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15cc_library_shared {
16    name: "libui",
17    vendor_available: true,
18
19    clang: true,
20    cppflags: [
21        "-Weverything",
22        "-Werror",
23
24        // The static constructors and destructors in this library have not been noted to
25        // introduce significant overheads
26        "-Wno-exit-time-destructors",
27        "-Wno-global-constructors",
28
29        // We only care about compiling as C++14
30        "-Wno-c++98-compat-pedantic",
31
32        // We are aware of the risks inherent in comparing floats for equality
33        "-Wno-float-equal",
34
35        // We use four-character constants for the GraphicBuffer header, and don't care
36        // that they're non-portable as long as they're consistent within one execution
37        "-Wno-four-char-constants",
38
39        // Don't warn about struct padding
40        "-Wno-padded",
41    ],
42
43    sanitize: {
44        //misc_undefined: ["integer"],
45    },
46
47    srcs: [
48        "ColorSpace.cpp",
49        "DebugUtils.cpp",
50        "Fence.cpp",
51        "FenceTime.cpp",
52        "FrameStats.cpp",
53        "Gralloc2.cpp",
54        "GraphicBuffer.cpp",
55        "GraphicBufferAllocator.cpp",
56        "GraphicBufferMapper.cpp",
57        "GraphicsEnv.cpp",
58        "HdrCapabilities.cpp",
59        "PixelFormat.cpp",
60        "Rect.cpp",
61        "Region.cpp",
62        "UiConfig.cpp",
63    ],
64
65    include_dirs: [
66        "frameworks/native/include",
67    ],
68
69    shared_libs: [
70        "android.hardware.graphics.allocator@2.0",
71        "android.hardware.graphics.mapper@2.0",
72        "android.hardware.configstore@1.0",
73	"android.hardware.configstore-utils",
74        "libbase",
75        "libnativeloader",
76        "libcutils",
77        "libhardware",
78        "libhidlbase",
79        "libhidltransport",
80        "libhwbinder",
81        "libsync",
82        "libutils",
83        "liblog",
84    ],
85
86    static_libs: [
87        "libarect",
88        "libgrallocusage",
89        "libmath",
90    ],
91
92    export_static_lib_headers: [
93        "libarect",
94        "libmath",
95    ],
96}
97
98subdirs = ["tests"]
99