Eric Jeong | 01a3e59 | 2021-09-14 14:59:55 -0700 | [diff] [blame] | 1 | // Copyright (C) 2021 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 | |
| 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
| 19 | cc_defaults { |
| 20 | name: "libsysfsmonitor_defaults", |
| 21 | cflags: [ |
| 22 | "-Wall", |
| 23 | "-Wno-missing-field-initializers", |
| 24 | "-Werror", |
| 25 | "-Wno-unused-variable", |
| 26 | "-Wunused-parameter", |
| 27 | ], |
| 28 | shared_libs: [ |
| 29 | "libbase", |
| 30 | "liblog", |
| 31 | "libutils", |
| 32 | ], |
| 33 | } |
| 34 | |
| 35 | cc_library { |
| 36 | name: "libsysfsmonitor", |
| 37 | srcs: [ |
| 38 | "src/SysfsMonitor.cpp", |
| 39 | ], |
| 40 | defaults: [ |
| 41 | "libsysfsmonitor_defaults", |
| 42 | ], |
| 43 | export_include_dirs: [ |
| 44 | "src", |
| 45 | ], |
| 46 | } |
| 47 | |
| 48 | cc_test { |
| 49 | name: "libsysfsmonitor_test", |
| 50 | srcs: [ |
| 51 | "tests/SysfsMonitorTest.cpp", |
| 52 | ], |
| 53 | defaults: [ |
| 54 | "libsysfsmonitor_defaults", |
| 55 | ], |
| 56 | static_libs: [ |
| 57 | "libgtest", |
| 58 | "libsysfsmonitor", |
| 59 | ], |
| 60 | } |