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 ramdisk_available: true, 32 vendor_ramdisk_available: true, 33 recovery_available: true, 34 srcs: ["logwrap.cpp"], 35 shared_libs: [ 36 "libcutils", 37 "liblog", 38 ], 39 header_libs: ["libbase_headers"], 40 export_include_dirs: ["include"], 41 local_include_dirs: ["include"], 42} 43 44// ======================================================== 45// Executable 46// ======================================================== 47 48cc_defaults { 49 name: "logwrapper_common", 50 defaults: ["logwrapper_defaults"], 51 local_include_dirs: ["include"], 52 srcs: [ 53 "logwrap.cpp", 54 "logwrapper.cpp", 55 ], 56 header_libs: ["libbase_headers"], 57 shared_libs: ["libcutils", "liblog"], 58} 59 60cc_binary { 61 name: "logwrapper", 62 defaults: ["logwrapper_common"], 63} 64 65cc_binary { 66 name: "logwrapper_vendor", 67 defaults: ["logwrapper_common"], 68 stem: "logwrapper", 69 vendor: true, 70} 71 72// ======================================================== 73// Benchmark 74// ======================================================== 75 76cc_benchmark { 77 name: "logwrap_fork_execvp_benchmark", 78 defaults: ["logwrapper_defaults"], 79 srcs: [ 80 "logwrap_fork_execvp_benchmark.cpp", 81 ], 82 shared_libs: [ 83 "libbase", 84 "libcutils", 85 "liblog", 86 "liblogwrap", 87 ], 88} 89