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 10gralloc_defaults { 11 name: "allocator_srcs", 12 soong_config_variables: { 13 mapper_version: { 14 mapper4: { 15 srcs: ["GrallocAllocator.cpp"], 16 shared_libs: [ 17 "android.hardware.graphics.allocator-V1-ndk", 18 "android.hardware.graphics.mapper@4.0", 19 ], 20 }, 21 mapper5: { 22 srcs: ["GrallocAllocator2.cpp"], 23 shared_libs: [ 24 "android.hardware.graphics.allocator-V2-ndk", 25 ], 26 27 }, 28 }, 29 }, 30} 31 32cc_library_shared { 33 name: "android.hardware.graphics.allocator-aidl-impl", 34 proprietary: true, 35 relative_install_path: "hw", 36 defaults: [ 37 "arm_gralloc_api_defaults", 38 "arm_gralloc_defaults", 39 "arm_gralloc_version_defaults", 40 "allocator_srcs", 41 ], 42 shared_libs: [ 43 "android.hardware.graphics.allocator@4.0", 44 "libbinder_ndk", 45 "libhidlbase", 46 ], 47 static_libs: [ 48 "libaidlcommonsupport", 49 ], 50 srcs: [ 51 ":libgralloc_hidl_common_shared_metadata", 52 ":libgralloc_hidl_common_allocator", 53 ], 54 include_dirs: [ 55 "hardware/google/gchips/include", 56 ], 57} 58