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 header_libs: [ 11 "libstatssocket_headers", 12 ], 13 export_header_lib_headers: [ 14 "libstatssocket_headers", 15 ], 16 apex_available: ["//apex_available:platform"], 17 srcs: ["libstatssocket_lazy.cpp"], 18} 19 20cc_test { 21 name: "libstatssocket_lazy_test", 22 srcs: [ 23 "tests/libstatssocket_lazy_test.cpp", 24 ], 25 static_libs: ["libstatssocket_lazy"], 26 shared_libs: ["liblog"], 27 cflags: [ 28 "-Wall", 29 "-Werror", 30 ], 31 test_suites: ["device-tests", "mts-statsd"], 32 test_config: "libstatssocket_lazy_test.xml", 33 // TODO(b/153588990): Remove when the build system properly separates. 34 // 32bit and 64bit architectures. 35 compile_multilib: "both", 36 multilib: { 37 lib64: { 38 suffix: "64", 39 }, 40 lib32: { 41 suffix: "32", 42 }, 43 }, 44} 45