blob: b29c1d51579776e0772b8f19c32caf47e1c9df2c [file] [log] [blame]
// Copyright 2010 The Android Open Source Project
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
cc_library_headers {
name: "libgui_headers",
vendor_available: true,
export_include_dirs: ["include"],
cc_library_shared {
name: "libgui",
vendor_available: false,
vndk: {
enabled: true,
double_loadable: true,
clang: true,
cflags: [
cppflags: [
// The static constructors and destructors in this library have not been noted to
// introduce significant overheads
// We only care about compiling as C++14
// We don't need to enumerate every case in a switch as long as a default case
// is present
// Allow calling variadic macros without a __VA_ARGS__ list
// Don't warn about struct padding
// We are aware of the risks inherent in comparing floats for equality
// Pure abstract classes trigger this warning
// Allow four-character integer literals
// Allow documentation warnings
// Allow implicit instantiation for templated class function
// Allow explicitly marking struct as packed even when unnecessary
product_variables: {
eng: {
cppflags: [
srcs: [
shared_libs: [
"libbufferhubqueue", // TODO(b/70046255): Remove this once BufferHub is integrated into libgui.
// bufferhub is not used when building libgui for vendors
target: {
vendor: {
cflags: ["-DNO_BUFFERHUB"],
exclude_srcs: [
exclude_shared_libs: [
header_libs: [
export_shared_lib_headers: [
export_header_lib_headers: [
export_include_dirs: [
subdirs = ["tests"]