blob: 1fde45bb1a320c1f8108f5da0933d9012bcfdbac [file] [log] [blame]
Jiyong Parka3f88402017-05-08 13:00:02 +09001// 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
Bob Badour3306e492021-02-25 15:35:37 -080015package {
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
Tim Van Patten93ef6362025-01-10 16:47:27 -070024aconfig_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
Jiyong Parka3f88402017-05-08 13:00:02 +090036cc_library_shared {
37 name: "libgraphicsenv",
38
Tim Van Patten93ef6362025-01-10 16:47:27 -070039 defaults: [
40 "aconfig_lib_cc_static_link.defaults",
41 ],
42
Jiyong Parka3f88402017-05-08 13:00:02 +090043 srcs: [
Yiwei Zhangf40fb102019-02-27 21:05:06 -080044 "GpuStatsInfo.cpp",
Jiyong Parka3f88402017-05-08 13:00:02 +090045 "GraphicsEnv.cpp",
Cody Northrop5d32e622022-11-01 13:54:57 -060046 "IGpuService.cpp",
Jiyong Parka3f88402017-05-08 13:00:02 +090047 ],
48
Cody Northrop5d32e622022-11-01 13:54:57 -060049 cflags: [
50 "-Wall",
51 "-Werror",
52 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070053
Tim Van Patten93ef6362025-01-10 16:47:27 -070054 static_libs: [
55 "graphicsenv_flags_c_lib",
56 ],
57
Jiyong Parka3f88402017-05-08 13:00:02 +090058 shared_libs: [
Yiwei Zhang64d89212018-11-27 19:58:29 -080059 "libbase",
Yiwei Zhangcb9d4e42019-02-06 20:22:59 -080060 "libbinder",
Cody Northrop629ce4e2018-10-15 07:22:09 -060061 "libcutils",
dimitry6d235292019-03-19 12:29:27 +010062 "libdl_android",
Yiwei Zhang64d89212018-11-27 19:58:29 -080063 "liblog",
Yiwei Zhangcb9d4e42019-02-06 20:22:59 -080064 "libutils",
Tim Van Patten93ef6362025-01-10 16:47:27 -070065 "server_configurable_flags",
Jiyong Parka3f88402017-05-08 13:00:02 +090066 ],
67
Yiwei Zhang49b9ac72019-08-05 16:57:17 -070068 header_libs: [
Paul Duffin08026182019-09-12 15:01:28 +010069 "libnativeloader-headers",
Yiwei Zhang49b9ac72019-08-05 16:57:17 -070070 ],
71
Jiyong Parka3f88402017-05-08 13:00:02 +090072 export_include_dirs: ["include"],
Cody Northrop5d32e622022-11-01 13:54:57 -060073
74 product_variables: {
75 // `debuggable` is set for eng and userdebug builds
76 debuggable: {
77 cflags: [
78 "-DANDROID_DEBUGGABLE",
79 ],
80 },
81 },
Jiyong Parka3f88402017-05-08 13:00:02 +090082}