blob: 0af75bb465ca09716da9011357591b5ec9b814fc [file] [log] [blame]
Yifan Hong098323b2019-03-04 18:20:02 -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
Yifan Hong53e0deb2019-03-22 17:01:08 -070015cc_library {
Yifan Hong098323b2019-03-04 18:20:02 -080016 name: "libcgrouprc",
17 host_supported: true,
18 recovery_available: true,
Yifan Hong53e0deb2019-03-22 17:01:08 -070019 // Do not ever mark this as vendor_available; otherwise, vendor modules
20 // that links to the static library will behave unexpectedly. All on-device
21 // modules should use libprocessgroup which links to the LL-NDK library
22 // defined below. The static library is built for tests.
23 vendor_available: false,
dimitry49c1f6e2019-05-16 14:19:09 +020024 native_bridge_supported: true,
Yifan Hong098323b2019-03-04 18:20:02 -080025 srcs: [
26 "cgroup_controller.cpp",
27 "cgroup_file.cpp",
28 ],
29 cflags: [
30 "-Wall",
31 "-Werror",
32 ],
33 export_include_dirs: [
34 "include",
35 ],
36 header_libs: [
37 "libprocessgroup_headers",
38 ],
39 shared_libs: [
40 "libbase",
41 ],
42 static_libs: [
43 "libcgrouprc_format",
44 ],
45 stubs: {
Suren Baghdasaryanfa7a05f2019-05-08 17:59:55 -070046 symbol_file: "libcgrouprc.llndk.txt",
Yifan Hong098323b2019-03-04 18:20:02 -080047 versions: ["29"],
48 },
Yifan Hong5ece3952019-04-03 14:44:10 -070049 target: {
50 linux: {
Suren Baghdasaryanfa7a05f2019-05-08 17:59:55 -070051 version_script: "libcgrouprc.llndk.txt",
Yifan Hong5ece3952019-04-03 14:44:10 -070052 },
53 },
Yifan Hong098323b2019-03-04 18:20:02 -080054}
55
56llndk_library {
57 name: "libcgrouprc",
Suren Baghdasaryanfa7a05f2019-05-08 17:59:55 -070058 symbol_file: "libcgrouprc.llndk.txt",
dimitry49c1f6e2019-05-16 14:19:09 +020059 native_bridge_supported: true,
Yifan Hong098323b2019-03-04 18:20:02 -080060 export_include_dirs: [
61 "include",
62 ],
63}