blob: ab84150d503d9f10e708236ceeee444c4a90840e [file] [log] [blame]
Dan Willemsen3e963f92018-10-31 10:32:32 -07001//
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
17cc_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
35cc_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
48cc_test {
49 name: "logcat-unit-tests",
50 defaults: ["logcat-tests-defaults"],
Tom Cherry9e124332019-01-17 11:37:22 -080051 shared_libs: ["libbase"],
52 static_libs: ["liblog"],
Dan Willemsen3e963f92018-10-31 10:32:32 -070053 srcs: [
54 "logcat_test.cpp",
55 "logcatd_test.cpp",
56 ],
57}