1package { 2 default_applicable_licenses: ["system_logging_logwrapper_license"], 3} 4 5// Added automatically by a large-scale-change 6license { 7 name: "system_logging_logwrapper_license", 8 visibility: [":__subpackages__"], 9 license_kinds: [ 10 "SPDX-license-identifier-Apache-2.0", 11 ], 12 license_text: [ 13 "NOTICE", 14 ], 15} 16 17cc_defaults { 18 name: "logwrapper_defaults", 19 cflags: [ 20 "-Werror", 21 ], 22} 23 24// ======================================================== 25// Static and shared library 26// ======================================================== 27 28cc_library { 29 name: "liblogwrap", 30 defaults: ["logwrapper_defaults"], 31 recovery_available: true, 32 srcs: ["logwrap.cpp"], 33 shared_libs: [ 34 "libcutils", 35 "liblog", 36 ], 37 header_libs: ["libbase_headers"], 38 export_include_dirs: ["include"], 39 local_include_dirs: ["include"], 40} 41 42// ======================================================== 43// Executable 44// ======================================================== 45 46cc_defaults { 47 name: "logwrapper_common", 48 defaults: ["logwrapper_defaults"], 49 local_include_dirs: ["include"], 50 srcs: [ 51 "logwrap.cpp", 52 "logwrapper.cpp", 53 ], 54 header_libs: ["libbase_headers"], 55 shared_libs: ["libcutils", "liblog"], 56} 57 58cc_binary { 59 name: "logwrapper", 60 defaults: ["logwrapper_common"], 61} 62 63cc_binary { 64 name: "logwrapper_vendor", 65 defaults: ["logwrapper_common"], 66 stem: "logwrapper", 67 vendor: true, 68} 69 70// ======================================================== 71// Benchmark 72// ======================================================== 73 74cc_benchmark { 75 name: "logwrap_fork_execvp_benchmark", 76 defaults: ["logwrapper_defaults"], 77 srcs: [ 78 "logwrap_fork_execvp_benchmark.cpp", 79 ], 80 shared_libs: [ 81 "libbase", 82 "libcutils", 83 "liblog", 84 "liblogwrap", 85 ], 86} 87