Jiyong Park | a3f8840 | 2017-05-08 13:00:02 +0900 | [diff] [blame] | 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 | |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 15 | package { |
| 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 Patten | 93ef636 | 2025-01-10 16:47:27 -0700 | [diff] [blame] | 24 | aconfig_declarations { |
| 25 | name: "graphicsenv_flags", |
| 26 | package: "com.android.graphics.graphicsenv.flags", |
| 27 | container: "system", |
| 28 | srcs: ["graphicsenv_flags.aconfig"], |
| 29 | } |
| 30 | |
| 31 | cc_aconfig_library { |
| 32 | name: "graphicsenv_flags_c_lib", |
| 33 | aconfig_declarations: "graphicsenv_flags", |
| 34 | } |
| 35 | |
Jiyong Park | a3f8840 | 2017-05-08 13:00:02 +0900 | [diff] [blame] | 36 | cc_library_shared { |
| 37 | name: "libgraphicsenv", |
| 38 | |
Tim Van Patten | 93ef636 | 2025-01-10 16:47:27 -0700 | [diff] [blame] | 39 | defaults: [ |
| 40 | "aconfig_lib_cc_static_link.defaults", |
| 41 | ], |
| 42 | |
Jiyong Park | a3f8840 | 2017-05-08 13:00:02 +0900 | [diff] [blame] | 43 | srcs: [ |
Tim Van Patten | 0b6b81d | 2025-01-13 10:19:19 -0700 | [diff] [blame] | 44 | "FeatureOverrides.cpp", |
Yiwei Zhang | f40fb10 | 2019-02-27 21:05:06 -0800 | [diff] [blame] | 45 | "GpuStatsInfo.cpp", |
Jiyong Park | a3f8840 | 2017-05-08 13:00:02 +0900 | [diff] [blame] | 46 | "GraphicsEnv.cpp", |
Cody Northrop | 5d32e62 | 2022-11-01 13:54:57 -0600 | [diff] [blame] | 47 | "IGpuService.cpp", |
Jiyong Park | a3f8840 | 2017-05-08 13:00:02 +0900 | [diff] [blame] | 48 | ], |
| 49 | |
Cody Northrop | 5d32e62 | 2022-11-01 13:54:57 -0600 | [diff] [blame] | 50 | cflags: [ |
| 51 | "-Wall", |
| 52 | "-Werror", |
| 53 | ], |
Chih-Hung Hsieh | 687a0d1 | 2017-10-05 15:20:11 -0700 | [diff] [blame] | 54 | |
Tim Van Patten | 93ef636 | 2025-01-10 16:47:27 -0700 | [diff] [blame] | 55 | static_libs: [ |
| 56 | "graphicsenv_flags_c_lib", |
| 57 | ], |
| 58 | |
Jiyong Park | a3f8840 | 2017-05-08 13:00:02 +0900 | [diff] [blame] | 59 | shared_libs: [ |
Yiwei Zhang | 64d8921 | 2018-11-27 19:58:29 -0800 | [diff] [blame] | 60 | "libbase", |
Yiwei Zhang | cb9d4e4 | 2019-02-06 20:22:59 -0800 | [diff] [blame] | 61 | "libbinder", |
Cody Northrop | 629ce4e | 2018-10-15 07:22:09 -0600 | [diff] [blame] | 62 | "libcutils", |
dimitry | 6d23529 | 2019-03-19 12:29:27 +0100 | [diff] [blame] | 63 | "libdl_android", |
Yiwei Zhang | 64d8921 | 2018-11-27 19:58:29 -0800 | [diff] [blame] | 64 | "liblog", |
Yiwei Zhang | cb9d4e4 | 2019-02-06 20:22:59 -0800 | [diff] [blame] | 65 | "libutils", |
Tim Van Patten | 93ef636 | 2025-01-10 16:47:27 -0700 | [diff] [blame] | 66 | "server_configurable_flags", |
Jiyong Park | a3f8840 | 2017-05-08 13:00:02 +0900 | [diff] [blame] | 67 | ], |
| 68 | |
Yiwei Zhang | 49b9ac7 | 2019-08-05 16:57:17 -0700 | [diff] [blame] | 69 | header_libs: [ |
Paul Duffin | 0802618 | 2019-09-12 15:01:28 +0100 | [diff] [blame] | 70 | "libnativeloader-headers", |
Yiwei Zhang | 49b9ac7 | 2019-08-05 16:57:17 -0700 | [diff] [blame] | 71 | ], |
| 72 | |
Jiyong Park | a3f8840 | 2017-05-08 13:00:02 +0900 | [diff] [blame] | 73 | export_include_dirs: ["include"], |
Cody Northrop | 5d32e62 | 2022-11-01 13:54:57 -0600 | [diff] [blame] | 74 | |
| 75 | product_variables: { |
| 76 | // `debuggable` is set for eng and userdebug builds |
| 77 | debuggable: { |
| 78 | cflags: [ |
| 79 | "-DANDROID_DEBUGGABLE", |
| 80 | ], |
| 81 | }, |
| 82 | }, |
Jiyong Park | a3f8840 | 2017-05-08 13:00:02 +0900 | [diff] [blame] | 83 | } |