Alec Mouri | 9b133ca | 2023-11-14 19:00:01 +0000 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_native_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_native_license"], |
John Reck | 38bc8a8 | 2024-02-21 17:08:27 -0500 | [diff] [blame] | 8 | default_team: "trendy_team_android_core_graphics_stack", |
Alec Mouri | 9b133ca | 2023-11-14 19:00:01 +0000 | [diff] [blame] | 9 | } |
| 10 | |
| 11 | cc_defaults { |
| 12 | name: "libsurfaceflinger_common_defaults", |
| 13 | defaults: [ |
| 14 | "android.hardware.graphics.composer3-ndk_shared", |
| 15 | "surfaceflinger_defaults", |
| 16 | ], |
| 17 | shared_libs: [ |
| 18 | "libSurfaceFlingerProp", |
| 19 | "server_configurable_flags", |
Dennis Shen | 247dda2 | 2024-06-07 21:06:40 +0000 | [diff] [blame] | 20 | "libaconfig_storage_read_api_cc", |
Vishnu Nair | 47b6e68 | 2024-07-12 18:46:07 +0000 | [diff] [blame] | 21 | "libtracing_perfetto", |
Alec Mouri | 9b133ca | 2023-11-14 19:00:01 +0000 | [diff] [blame] | 22 | ], |
| 23 | static_libs: [ |
Leon Scroggins III | 10c6293 | 2024-02-01 15:35:19 -0500 | [diff] [blame] | 24 | "librenderengine_includes", |
Alec Mouri | 9b133ca | 2023-11-14 19:00:01 +0000 | [diff] [blame] | 25 | ], |
| 26 | srcs: [ |
| 27 | "FlagManager.cpp", |
| 28 | ], |
| 29 | local_include_dirs: ["include"], |
| 30 | export_include_dirs: ["include"], |
Vishnu Nair | 47b6e68 | 2024-07-12 18:46:07 +0000 | [diff] [blame] | 31 | export_shared_lib_headers: ["libtracing_perfetto"], |
Alec Mouri | 9b133ca | 2023-11-14 19:00:01 +0000 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | cc_library_static { |
| 35 | name: "libsurfaceflinger_common", |
| 36 | defaults: [ |
| 37 | "libsurfaceflinger_common_defaults", |
| 38 | ], |
| 39 | static_libs: [ |
| 40 | "libsurfaceflingerflags", |
Sally Qi | 952acc1 | 2024-12-03 17:53:56 +0000 | [diff] [blame^] | 41 | "aconfig_hardware_flags_c_lib", |
Matt Buckley | ffc31d1 | 2024-02-28 16:51:28 +0000 | [diff] [blame] | 42 | "android.os.flags-aconfig-cc", |
Ady Abraham | 354ccde | 2024-03-21 10:40:28 -0700 | [diff] [blame] | 43 | "android.server.display.flags-aconfig-cc", |
Ady Abraham | 1d0cae9 | 2024-06-14 13:41:12 -0700 | [diff] [blame] | 44 | "libguiflags_no_apex", |
Alec Mouri | 9b133ca | 2023-11-14 19:00:01 +0000 | [diff] [blame] | 45 | ], |
| 46 | } |
| 47 | |
| 48 | cc_library_static { |
| 49 | name: "libsurfaceflinger_common_test", |
| 50 | defaults: [ |
| 51 | "libsurfaceflinger_common_defaults", |
| 52 | ], |
| 53 | static_libs: [ |
| 54 | "libsurfaceflingerflags_test", |
Sally Qi | 952acc1 | 2024-12-03 17:53:56 +0000 | [diff] [blame^] | 55 | "aconfig_hardware_flags_c_lib", |
Matt Buckley | ffc31d1 | 2024-02-28 16:51:28 +0000 | [diff] [blame] | 56 | "android.os.flags-aconfig-cc-test", |
Ady Abraham | 354ccde | 2024-03-21 10:40:28 -0700 | [diff] [blame] | 57 | "android.server.display.flags-aconfig-cc", |
Ady Abraham | 1d0cae9 | 2024-06-14 13:41:12 -0700 | [diff] [blame] | 58 | "libguiflags_no_apex", |
Matt Buckley | ffc31d1 | 2024-02-28 16:51:28 +0000 | [diff] [blame] | 59 | ], |
| 60 | } |
| 61 | |
| 62 | cc_defaults { |
| 63 | name: "libsurfaceflinger_common_deps", |
| 64 | shared_libs: [ |
| 65 | "server_configurable_flags", |
Dennis Shen | 247dda2 | 2024-06-07 21:06:40 +0000 | [diff] [blame] | 66 | "libaconfig_storage_read_api_cc", |
Vishnu Nair | 47b6e68 | 2024-07-12 18:46:07 +0000 | [diff] [blame] | 67 | "libtracing_perfetto", |
Matt Buckley | ffc31d1 | 2024-02-28 16:51:28 +0000 | [diff] [blame] | 68 | ], |
| 69 | static_libs: [ |
| 70 | "libsurfaceflinger_common", |
| 71 | "libsurfaceflingerflags", |
Sally Qi | 952acc1 | 2024-12-03 17:53:56 +0000 | [diff] [blame^] | 72 | "aconfig_hardware_flags_c_lib", |
Matt Buckley | ffc31d1 | 2024-02-28 16:51:28 +0000 | [diff] [blame] | 73 | "android.os.flags-aconfig-cc", |
Ady Abraham | 354ccde | 2024-03-21 10:40:28 -0700 | [diff] [blame] | 74 | "android.server.display.flags-aconfig-cc", |
Ady Abraham | 1d0cae9 | 2024-06-14 13:41:12 -0700 | [diff] [blame] | 75 | "libguiflags_no_apex", |
Matt Buckley | ffc31d1 | 2024-02-28 16:51:28 +0000 | [diff] [blame] | 76 | ], |
| 77 | } |
| 78 | |
| 79 | cc_defaults { |
| 80 | name: "libsurfaceflinger_common_test_deps", |
| 81 | shared_libs: [ |
| 82 | "server_configurable_flags", |
Dennis Shen | 247dda2 | 2024-06-07 21:06:40 +0000 | [diff] [blame] | 83 | "libaconfig_storage_read_api_cc", |
Vishnu Nair | 47b6e68 | 2024-07-12 18:46:07 +0000 | [diff] [blame] | 84 | "libtracing_perfetto", |
Matt Buckley | ffc31d1 | 2024-02-28 16:51:28 +0000 | [diff] [blame] | 85 | ], |
| 86 | static_libs: [ |
| 87 | "libsurfaceflinger_common_test", |
| 88 | "libsurfaceflingerflags_test", |
Sally Qi | 952acc1 | 2024-12-03 17:53:56 +0000 | [diff] [blame^] | 89 | "aconfig_hardware_flags_c_lib", |
Matt Buckley | ffc31d1 | 2024-02-28 16:51:28 +0000 | [diff] [blame] | 90 | "android.os.flags-aconfig-cc-test", |
Ady Abraham | 354ccde | 2024-03-21 10:40:28 -0700 | [diff] [blame] | 91 | "android.server.display.flags-aconfig-cc", |
Ady Abraham | 1d0cae9 | 2024-06-14 13:41:12 -0700 | [diff] [blame] | 92 | "libguiflags_no_apex", |
Alec Mouri | 9b133ca | 2023-11-14 19:00:01 +0000 | [diff] [blame] | 93 | ], |
| 94 | } |