1// 2// Copyright (C) 2013-2014 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 // A large-scale-change added 'default_applicable_licenses' to import 19 // the below license kinds from "system_logging_logcat_license": 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["system_logging_logcat_license"], 22} 23 24cc_defaults { 25 name: "logcat-tests-defaults", 26 cflags: [ 27 "-fstack-protector-all", 28 "-g", 29 "-Wall", 30 "-Wextra", 31 "-Werror", 32 "-fno-builtin", 33 ], 34} 35 36// ----------------------------------------------------------------------------- 37// Benchmarks 38// ---------------------------------------------------------------------------- 39 40// Build benchmarks for the device. Run with: 41// adb shell /data/nativetest/logcat-benchmarks/logcat-benchmarks 42cc_benchmark { 43 name: "logcat-benchmarks", 44 defaults: ["logcat-tests-defaults"], 45 srcs: ["logcat_benchmark.cpp"], 46 shared_libs: ["libbase"], 47} 48 49// ----------------------------------------------------------------------------- 50// Unit tests. 51// ----------------------------------------------------------------------------- 52 53// Build tests for the device (with .so). Run with: 54// adb shell /data/nativetest/logcat-unit-tests/logcat-unit-tests 55cc_test { 56 name: "logcat-unit-tests", 57 defaults: ["logcat-tests-defaults"], 58 shared_libs: ["libbase"], 59 static_libs: ["liblog"], 60 srcs: [ 61 "logcat_test.cpp", 62 "logcatd_test.cpp", 63 ], 64} 65