Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 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 | |
| 17 | cc_defaults { |
| 18 | name: "logcat-tests-defaults", |
| 19 | cflags: [ |
| 20 | "-fstack-protector-all", |
| 21 | "-g", |
| 22 | "-Wall", |
| 23 | "-Wextra", |
| 24 | "-Werror", |
| 25 | "-fno-builtin", |
| 26 | ], |
| 27 | } |
| 28 | |
| 29 | // ----------------------------------------------------------------------------- |
| 30 | // Benchmarks |
| 31 | // ---------------------------------------------------------------------------- |
| 32 | |
| 33 | // Build benchmarks for the device. Run with: |
| 34 | // adb shell /data/nativetest/logcat-benchmarks/logcat-benchmarks |
| 35 | cc_benchmark { |
| 36 | name: "logcat-benchmarks", |
| 37 | defaults: ["logcat-tests-defaults"], |
| 38 | srcs: ["logcat_benchmark.cpp"], |
| 39 | shared_libs: ["libbase"], |
| 40 | } |
| 41 | |
| 42 | // ----------------------------------------------------------------------------- |
| 43 | // Unit tests. |
| 44 | // ----------------------------------------------------------------------------- |
| 45 | |
| 46 | // Build tests for the device (with .so). Run with: |
| 47 | // adb shell /data/nativetest/logcat-unit-tests/logcat-unit-tests |
| 48 | cc_test { |
| 49 | name: "logcat-unit-tests", |
| 50 | defaults: ["logcat-tests-defaults"], |
Tom Cherry | 9e12433 | 2019-01-17 11:37:22 -0800 | [diff] [blame] | 51 | shared_libs: ["libbase"], |
| 52 | static_libs: ["liblog"], |
Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 53 | srcs: [ |
| 54 | "logcat_test.cpp", |
| 55 | "logcatd_test.cpp", |
| 56 | ], |
| 57 | } |