blob: 15d01729097bf3bddc73ad21ca1b40f81db98f8d [file] [log] [blame]
Yifan Hong98a61dd2019-02-08 12:34:48 -08001// Copyright (C) 2019 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
15prebuilt_etc {
16 name: "cgroups.json",
17 src: "cgroups.json",
18}
19
20prebuilt_etc {
21 name: "cgroups.recovery.json",
22 filename: "cgroups.json",
23 recovery: true,
24 src: "cgroups.recovery.json",
25}
26
27prebuilt_etc {
28 name: "task_profiles.json",
29 src: "task_profiles.json",
30}
Yifan Hong72ff5852019-02-13 14:32:34 -080031
32cc_library_static {
33 name: "libprocessgroup_proto",
34 host_supported: true,
35 srcs: [
36 "cgroups.proto",
37 "task_profiles.proto",
38 ],
39 proto: {
40 type: "full",
41 export_proto_headers: true,
42 },
43 cflags: [
44 "-Wall",
45 "-Werror",
46 "-Wno-unused-parameter",
47 ],
48}
49
50cc_test_host {
51 name: "libprocessgroup_proto_test",
52 srcs: [
53 "test.cpp",
54 ],
55 static_libs: [
56 "libbase",
57 "libgmock",
58 "liblog",
59 "libjsoncpp",
60 "libjsonpbverify",
61 "libjsonpbparse",
62 "libprocessgroup_proto",
63 ],
64 shared_libs: [
65 "libprotobuf-cpp-full",
66 ],
67 cflags: [
68 "-Wall",
69 "-Werror",
70 "-Wno-unused-parameter",
71 ],
72 data: [
73 "cgroups.json",
74 "cgroups.recovery.json",
75 "task_profiles.json",
76 ],
77 test_suites: [
78 "general-tests",
79 ],
80}