• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2018 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_library_static {
18    name: "libdm",
19    defaults: ["fs_mgr_defaults"],
20    recovery_available: true,
21    host_supported: true,
22
23    export_include_dirs: ["include"],
24
25    srcs: [
26        "dm_table.cpp",
27        "dm_target.cpp",
28        "dm.cpp",
29        "loop_control.cpp",
30    ],
31
32    header_libs: [
33        "libbase_headers",
34        "liblog_headers",
35    ],
36    target: {
37        darwin: {
38            enabled: false,
39        },
40    },
41}
42
43cc_test {
44    name: "libdm_test",
45    defaults: ["fs_mgr_defaults"],
46    static_libs: [
47        "libdm",
48        "libbase",
49        "liblog",
50    ],
51    srcs: [
52        "dm_test.cpp",
53        "loop_control_test.cpp",
54        "test_util.cpp",
55    ]
56}
57