blob: dce77782298a38f22b1ed12ee8c03bdf5cd38156 [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: [
Tim Van Patten0b6b81d2025-01-13 10:19:19 -070044 "FeatureOverrides.cpp",
Yiwei Zhangf40fb102019-02-27 21:05:06 -080045 "GpuStatsInfo.cpp",
Jiyong Parka3f88402017-05-08 13:00:02 +090046 "GraphicsEnv.cpp",
Cody Northrop5d32e622022-11-01 13:54:57 -060047 "IGpuService.cpp",
Jiyong Parka3f88402017-05-08 13:00:02 +090048 ],
49
Cody Northrop5d32e622022-11-01 13:54:57 -060050 cflags: [
51 "-Wall",
52 "-Werror",
53 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070054
Tim Van Patten93ef6362025-01-10 16:47:27 -070055 static_libs: [
56 "graphicsenv_flags_c_lib",
57 ],
58
Jiyong Parka3f88402017-05-08 13:00:02 +090059 shared_libs: [
Yiwei Zhang64d89212018-11-27 19:58:29 -080060 "libbase",
Yiwei Zhangcb9d4e42019-02-06 20:22:59 -080061 "libbinder",
Cody Northrop629ce4e2018-10-15 07:22:09 -060062 "libcutils",
dimitry6d235292019-03-19 12:29:27 +010063 "libdl_android",
Yiwei Zhang64d89212018-11-27 19:58:29 -080064 "liblog",
Yiwei Zhangcb9d4e42019-02-06 20:22:59 -080065 "libutils",
Tim Van Patten93ef6362025-01-10 16:47:27 -070066 "server_configurable_flags",
Jiyong Parka3f88402017-05-08 13:00:02 +090067 ],
68
Yiwei Zhang49b9ac72019-08-05 16:57:17 -070069 header_libs: [
Paul Duffin08026182019-09-12 15:01:28 +010070 "libnativeloader-headers",
Yiwei Zhang49b9ac72019-08-05 16:57:17 -070071 ],
72
Jiyong Parka3f88402017-05-08 13:00:02 +090073 export_include_dirs: ["include"],
Cody Northrop5d32e622022-11-01 13:54:57 -060074
75 product_variables: {
76 // `debuggable` is set for eng and userdebug builds
77 debuggable: {
78 cflags: [
79 "-DANDROID_DEBUGGABLE",
80 ],
81 },
82 },
Jiyong Parka3f88402017-05-08 13:00:02 +090083}