xref: /aosp_15_r20/frameworks/native/services/surfaceflinger/common/Android.bp (revision 38e8c45f13ce32b0dcecb25141ffecaf386fa17f)
1*38e8c45fSAndroid Build Coastguard Workerpackage {
2*38e8c45fSAndroid Build Coastguard Worker    // See: http://go/android-license-faq
3*38e8c45fSAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
4*38e8c45fSAndroid Build Coastguard Worker    // all of the 'license_kinds' from "frameworks_native_license"
5*38e8c45fSAndroid Build Coastguard Worker    // to get the below license kinds:
6*38e8c45fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
7*38e8c45fSAndroid Build Coastguard Worker    default_applicable_licenses: ["frameworks_native_license"],
8*38e8c45fSAndroid Build Coastguard Worker    default_team: "trendy_team_android_core_graphics_stack",
9*38e8c45fSAndroid Build Coastguard Worker}
10*38e8c45fSAndroid Build Coastguard Worker
11*38e8c45fSAndroid Build Coastguard Workercc_defaults {
12*38e8c45fSAndroid Build Coastguard Worker    name: "libsurfaceflinger_common_defaults",
13*38e8c45fSAndroid Build Coastguard Worker    defaults: [
14*38e8c45fSAndroid Build Coastguard Worker        "android.hardware.graphics.composer3-ndk_shared",
15*38e8c45fSAndroid Build Coastguard Worker        "surfaceflinger_defaults",
16*38e8c45fSAndroid Build Coastguard Worker    ],
17*38e8c45fSAndroid Build Coastguard Worker    shared_libs: [
18*38e8c45fSAndroid Build Coastguard Worker        "libSurfaceFlingerProp",
19*38e8c45fSAndroid Build Coastguard Worker        "server_configurable_flags",
20*38e8c45fSAndroid Build Coastguard Worker        "libaconfig_storage_read_api_cc",
21*38e8c45fSAndroid Build Coastguard Worker        "libtracing_perfetto",
22*38e8c45fSAndroid Build Coastguard Worker    ],
23*38e8c45fSAndroid Build Coastguard Worker    static_libs: [
24*38e8c45fSAndroid Build Coastguard Worker        "librenderengine_includes",
25*38e8c45fSAndroid Build Coastguard Worker    ],
26*38e8c45fSAndroid Build Coastguard Worker    srcs: [
27*38e8c45fSAndroid Build Coastguard Worker        "FlagManager.cpp",
28*38e8c45fSAndroid Build Coastguard Worker    ],
29*38e8c45fSAndroid Build Coastguard Worker    local_include_dirs: ["include"],
30*38e8c45fSAndroid Build Coastguard Worker    export_include_dirs: ["include"],
31*38e8c45fSAndroid Build Coastguard Worker    export_shared_lib_headers: ["libtracing_perfetto"],
32*38e8c45fSAndroid Build Coastguard Worker}
33*38e8c45fSAndroid Build Coastguard Worker
34*38e8c45fSAndroid Build Coastguard Workercc_library_static {
35*38e8c45fSAndroid Build Coastguard Worker    name: "libsurfaceflinger_common",
36*38e8c45fSAndroid Build Coastguard Worker    defaults: [
37*38e8c45fSAndroid Build Coastguard Worker        "libsurfaceflinger_common_defaults",
38*38e8c45fSAndroid Build Coastguard Worker    ],
39*38e8c45fSAndroid Build Coastguard Worker    static_libs: [
40*38e8c45fSAndroid Build Coastguard Worker        "libsurfaceflingerflags",
41*38e8c45fSAndroid Build Coastguard Worker        "aconfig_hardware_flags_c_lib",
42*38e8c45fSAndroid Build Coastguard Worker        "android.os.flags-aconfig-cc",
43*38e8c45fSAndroid Build Coastguard Worker        "android.server.display.flags-aconfig-cc",
44*38e8c45fSAndroid Build Coastguard Worker        "libguiflags_no_apex",
45*38e8c45fSAndroid Build Coastguard Worker    ],
46*38e8c45fSAndroid Build Coastguard Worker}
47*38e8c45fSAndroid Build Coastguard Worker
48*38e8c45fSAndroid Build Coastguard Workercc_library_static {
49*38e8c45fSAndroid Build Coastguard Worker    name: "libsurfaceflinger_common_test",
50*38e8c45fSAndroid Build Coastguard Worker    defaults: [
51*38e8c45fSAndroid Build Coastguard Worker        "libsurfaceflinger_common_defaults",
52*38e8c45fSAndroid Build Coastguard Worker    ],
53*38e8c45fSAndroid Build Coastguard Worker    static_libs: [
54*38e8c45fSAndroid Build Coastguard Worker        "libsurfaceflingerflags_test",
55*38e8c45fSAndroid Build Coastguard Worker        "aconfig_hardware_flags_c_lib",
56*38e8c45fSAndroid Build Coastguard Worker        "android.os.flags-aconfig-cc-test",
57*38e8c45fSAndroid Build Coastguard Worker        "android.server.display.flags-aconfig-cc",
58*38e8c45fSAndroid Build Coastguard Worker        "libguiflags_no_apex",
59*38e8c45fSAndroid Build Coastguard Worker    ],
60*38e8c45fSAndroid Build Coastguard Worker}
61*38e8c45fSAndroid Build Coastguard Worker
62*38e8c45fSAndroid Build Coastguard Workercc_defaults {
63*38e8c45fSAndroid Build Coastguard Worker    name: "libsurfaceflinger_common_deps",
64*38e8c45fSAndroid Build Coastguard Worker    shared_libs: [
65*38e8c45fSAndroid Build Coastguard Worker        "server_configurable_flags",
66*38e8c45fSAndroid Build Coastguard Worker        "libaconfig_storage_read_api_cc",
67*38e8c45fSAndroid Build Coastguard Worker        "libtracing_perfetto",
68*38e8c45fSAndroid Build Coastguard Worker    ],
69*38e8c45fSAndroid Build Coastguard Worker    static_libs: [
70*38e8c45fSAndroid Build Coastguard Worker        "libsurfaceflinger_common",
71*38e8c45fSAndroid Build Coastguard Worker        "libsurfaceflingerflags",
72*38e8c45fSAndroid Build Coastguard Worker        "aconfig_hardware_flags_c_lib",
73*38e8c45fSAndroid Build Coastguard Worker        "android.os.flags-aconfig-cc",
74*38e8c45fSAndroid Build Coastguard Worker        "android.server.display.flags-aconfig-cc",
75*38e8c45fSAndroid Build Coastguard Worker        "libguiflags_no_apex",
76*38e8c45fSAndroid Build Coastguard Worker    ],
77*38e8c45fSAndroid Build Coastguard Worker}
78*38e8c45fSAndroid Build Coastguard Worker
79*38e8c45fSAndroid Build Coastguard Workercc_defaults {
80*38e8c45fSAndroid Build Coastguard Worker    name: "libsurfaceflinger_common_test_deps",
81*38e8c45fSAndroid Build Coastguard Worker    shared_libs: [
82*38e8c45fSAndroid Build Coastguard Worker        "server_configurable_flags",
83*38e8c45fSAndroid Build Coastguard Worker        "libaconfig_storage_read_api_cc",
84*38e8c45fSAndroid Build Coastguard Worker        "libtracing_perfetto",
85*38e8c45fSAndroid Build Coastguard Worker    ],
86*38e8c45fSAndroid Build Coastguard Worker    static_libs: [
87*38e8c45fSAndroid Build Coastguard Worker        "libsurfaceflinger_common_test",
88*38e8c45fSAndroid Build Coastguard Worker        "libsurfaceflingerflags_test",
89*38e8c45fSAndroid Build Coastguard Worker        "aconfig_hardware_flags_c_lib",
90*38e8c45fSAndroid Build Coastguard Worker        "android.os.flags-aconfig-cc-test",
91*38e8c45fSAndroid Build Coastguard Worker        "android.server.display.flags-aconfig-cc",
92*38e8c45fSAndroid Build Coastguard Worker        "libguiflags_no_apex",
93*38e8c45fSAndroid Build Coastguard Worker    ],
94*38e8c45fSAndroid Build Coastguard Worker}
95