1// Lazy loading version of libstatssocket that can be used by code 2// that is running before the statsd APEX is mounted and 3// libstatssocket.so is available. 4package { 5 default_applicable_licenses: ["Android-Apache-2.0"], 6} 7 8cc_library_static { 9 name: "libstatssocket_lazy", 10 local_include_dirs: [ 11 "include", 12 ], 13 export_include_dirs: [ 14 "include", 15 ], 16 header_libs: [ 17 "libstatssocket_headers", 18 ], 19 export_header_lib_headers: [ 20 "libstatssocket_headers", 21 ], 22 apex_available: ["//apex_available:platform"], 23 srcs: ["libstatssocket_lazy.cpp"], 24} 25 26cc_test { 27 name: "libstatssocket_lazy_test", 28 srcs: [ 29 "tests/libstatssocket_lazy_test.cpp", 30 ], 31 static_libs: ["libstatssocket_lazy"], 32 shared_libs: ["liblog"], 33 cflags: [ 34 "-Wall", 35 "-Werror", 36 ], 37 test_suites: [ 38 "device-tests", 39 ], 40 test_config: "libstatssocket_lazy_test.xml", 41 // TODO(b/153588990): Remove when the build system properly separates. 42 // 32bit and 64bit architectures. 43 compile_multilib: "both", 44 multilib: { 45 lib64: { 46 suffix: "64", 47 }, 48 lib32: { 49 suffix: "32", 50 }, 51 }, 52} 53