1// Copyright (C) 2017 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 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "frameworks_native_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["frameworks_native_license"], 22} 23 24aconfig_declarations { 25 name: "graphicsenv_flags", 26 package: "com.android.graphics.graphicsenv.flags", 27 container: "system", 28 srcs: ["graphicsenv_flags.aconfig"], 29} 30 31cc_aconfig_library { 32 name: "graphicsenv_flags_c_lib", 33 aconfig_declarations: "graphicsenv_flags", 34} 35 36cc_library_shared { 37 name: "libgraphicsenv", 38 39 defaults: [ 40 "aconfig_lib_cc_static_link.defaults", 41 ], 42 43 srcs: [ 44 "FeatureOverrides.cpp", 45 "GpuStatsInfo.cpp", 46 "GraphicsEnv.cpp", 47 "IGpuService.cpp", 48 ], 49 50 cflags: [ 51 "-Wall", 52 "-Werror", 53 ], 54 55 static_libs: [ 56 "graphicsenv_flags_c_lib", 57 ], 58 59 shared_libs: [ 60 "libbase", 61 "libbinder", 62 "libcutils", 63 "libdl_android", 64 "liblog", 65 "libutils", 66 "server_configurable_flags", 67 ], 68 69 header_libs: [ 70 "libnativeloader-headers", 71 ], 72 73 export_include_dirs: ["include"], 74 75 product_variables: { 76 // `debuggable` is set for eng and userdebug builds 77 debuggable: { 78 cflags: [ 79 "-DANDROID_DEBUGGABLE", 80 ], 81 }, 82 }, 83} 84