1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5soong_config_module_type_import { 6 from: "hardware/google/gchips/gralloc4/Android.bp", 7 module_types: ["gralloc_defaults"], 8} 9 10cc_defaults { 11 name: "allocator_gralloc4_defaults", 12 init_rc: [ 13 "android.hardware.graphics.allocator-aidl-service.rc", 14 ], 15 vintf_fragments: ["manifest_gralloc_aidl.xml"], 16 shared_libs: [ 17 "android.hardware.graphics.allocator-V1-ndk", 18 "android.hardware.graphics.allocator-aidl-impl", 19 ], 20 required: [ 21 "android.hardware.graphics.allocator-aidl-impl", 22 ], 23} 24 25cc_defaults { 26 name: "allocator_gralloc5_defaults", 27 init_rc: [ 28 "android.hardware.graphics.allocator2-aidl-service.rc", 29 ], 30 vintf_fragments: ["manifest_gralloc_aidl2.xml"], 31 shared_libs: [ 32 "android.hardware.graphics.allocator-V2-ndk", 33 "android.hardware.graphics.allocator-aidl-impl", 34 ], 35 required: [ 36 "android.hardware.graphics.allocator-aidl-impl", 37 ], 38} 39 40// Should only be used in pixel_gralloc_allocator because of 'stem' 41gralloc_defaults { 42 name: "allocator_version_defaults", 43 soong_config_variables: { 44 mapper_version: { 45 mapper4: { 46 stem: "android.hardware.graphics.allocator-V1-service", 47 defaults: ["allocator_gralloc4_defaults"], 48 }, 49 mapper5: { 50 stem: "android.hardware.graphics.allocator-V2-service", 51 defaults: ["allocator_gralloc5_defaults"], 52 }, 53 }, 54 }, 55} 56 57cc_binary { 58 name: "pixel_gralloc_allocator", 59 proprietary: true, 60 relative_install_path: "hw", 61 srcs: [ 62 "service.cpp", 63 ], 64 defaults: [ 65 "allocator_version_defaults", 66 "arm_gralloc_version_defaults", 67 ], 68 header_libs: [ 69 "libgralloc_headers", 70 ], 71 shared_libs: [ 72 "libbinder_ndk", 73 "liblog", 74 "libutils", 75 ], 76 static_libs: [ 77 "libaidlcommonsupport", 78 ], 79} 80