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