blob: f8b0333daa244c0b5699626e2ebbac41e4c6c1fc [file] [log] [blame]
Jin Qiane4f1ec32017-08-15 16:26:53 -07001/*
2 * Copyright (C) 2017 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: "storaged_defaults",
19
20 shared_libs: [
21 "libbase",
22 "libbatteryservice",
23 "libbinder",
24 "libcutils",
25 "liblog",
26 "libsysutils",
27 "libutils",
28 ],
29
30 cflags: [
31 "-Wall",
32 "-Werror",
33 "-Wextra",
34 "-Wno-unused-parameter"
35 ],
36}
37
38cc_library_static {
39 name: "libstoraged",
40
41 defaults: ["storaged_defaults"],
42
43 srcs: [
44 "storaged.cpp",
45 "storaged_info.cpp",
46 "storaged_service.cpp",
47 "storaged_utils.cpp",
48 "storaged_uid_monitor.cpp",
49 ],
50
51 logtags: ["EventLogTags.logtags"],
52
53 export_include_dirs: ["include"],
54}
55
56cc_binary {
57 name: "storaged",
58
59 defaults: ["storaged_defaults"],
60
61 init_rc: ["storaged.rc"],
62
63 srcs: ["main.cpp"],
64
65 static_libs: ["libstoraged"],
66}
67
68/*
69 * Run with:
70 * adb shell /data/nativetest/storaged-unit-tests/storaged-unit-tests
71 */
72cc_test {
73 name: "storaged-unit-tests",
74
75 defaults: ["storaged_defaults"],
76
77 srcs: ["tests/storaged_test.cpp"],
78
79 static_libs: ["libstoraged"],
80}