1// Copyright (C) 2018 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_test { 20 name: "lmkd_unit_test", 21 22 shared_libs: [ 23 "libbase", 24 "liblog", 25 "libcutils", 26 "libprocessgroup", 27 ], 28 29 static_libs: [ 30 "liblmkd_utils", 31 ], 32 33 target: { 34 android: { 35 srcs: ["lmkd_test.cpp"], 36 }, 37 }, 38 39 cflags: [ 40 "-Wall", 41 "-Wextra", 42 "-Werror", 43 ], 44 45 compile_multilib: "first", 46} 47 48cc_test { 49 name: "lmkd_tests", 50 test_suites: ["device-tests"], 51 require_root: true, 52 53 shared_libs: [ 54 "libbase", 55 "liblog", 56 "libcutils", 57 "libprocessgroup", 58 ], 59 60 static_libs: [ 61 "liblmkd_utils", 62 ], 63 64 target: { 65 android: { 66 srcs: ["lmkd_tests.cpp"], 67 }, 68 }, 69 70 cflags: [ 71 "-Wall", 72 "-Wextra", 73 "-Werror", 74 ], 75 76 compile_multilib: "first", 77} 78