Yifan Hong | 098323b | 2019-03-04 18:20:02 -0800 | [diff] [blame] | 1 | // 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 Hong | 53e0deb | 2019-03-22 17:01:08 -0700 | [diff] [blame] | 15 | cc_library { |
Yifan Hong | 098323b | 2019-03-04 18:20:02 -0800 | [diff] [blame] | 16 | name: "libcgrouprc", |
| 17 | host_supported: true, |
| 18 | recovery_available: true, |
Yifan Hong | 53e0deb | 2019-03-22 17:01:08 -0700 | [diff] [blame] | 19 | // 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, |
dimitry | 49c1f6e | 2019-05-16 14:19:09 +0200 | [diff] [blame] | 24 | native_bridge_supported: true, |
Colin Cross | 6a2b166 | 2020-10-19 13:38:05 -0700 | [diff] [blame] | 25 | llndk_stubs: "libcgrouprc.llndk", |
Yifan Hong | 098323b | 2019-03-04 18:20:02 -0800 | [diff] [blame] | 26 | srcs: [ |
| 27 | "cgroup_controller.cpp", |
| 28 | "cgroup_file.cpp", |
| 29 | ], |
| 30 | cflags: [ |
| 31 | "-Wall", |
| 32 | "-Werror", |
| 33 | ], |
| 34 | export_include_dirs: [ |
| 35 | "include", |
| 36 | ], |
| 37 | header_libs: [ |
| 38 | "libprocessgroup_headers", |
| 39 | ], |
| 40 | shared_libs: [ |
| 41 | "libbase", |
| 42 | ], |
| 43 | static_libs: [ |
| 44 | "libcgrouprc_format", |
| 45 | ], |
| 46 | stubs: { |
Suren Baghdasaryan | fa7a05f | 2019-05-08 17:59:55 -0700 | [diff] [blame] | 47 | symbol_file: "libcgrouprc.llndk.txt", |
Yifan Hong | 098323b | 2019-03-04 18:20:02 -0800 | [diff] [blame] | 48 | versions: ["29"], |
| 49 | }, |
Yifan Hong | 5ece395 | 2019-04-03 14:44:10 -0700 | [diff] [blame] | 50 | target: { |
| 51 | linux: { |
Suren Baghdasaryan | fa7a05f | 2019-05-08 17:59:55 -0700 | [diff] [blame] | 52 | version_script: "libcgrouprc.llndk.txt", |
Yifan Hong | 5ece395 | 2019-04-03 14:44:10 -0700 | [diff] [blame] | 53 | }, |
| 54 | }, |
Yifan Hong | 098323b | 2019-03-04 18:20:02 -0800 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | llndk_library { |
Colin Cross | 6a2b166 | 2020-10-19 13:38:05 -0700 | [diff] [blame] | 58 | name: "libcgrouprc.llndk", |
Suren Baghdasaryan | fa7a05f | 2019-05-08 17:59:55 -0700 | [diff] [blame] | 59 | symbol_file: "libcgrouprc.llndk.txt", |
dimitry | 49c1f6e | 2019-05-16 14:19:09 +0200 | [diff] [blame] | 60 | native_bridge_supported: true, |
Yifan Hong | 098323b | 2019-03-04 18:20:02 -0800 | [diff] [blame] | 61 | export_include_dirs: [ |
| 62 | "include", |
| 63 | ], |
| 64 | } |