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 | |
Bob Badour | d69ad69 | 2021-02-16 19:02:14 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
Yifan Hong | 53e0deb | 2019-03-22 17:01:08 -0700 | [diff] [blame] | 19 | cc_library { |
Yifan Hong | 098323b | 2019-03-04 18:20:02 -0800 | [diff] [blame] | 20 | name: "libcgrouprc", |
| 21 | host_supported: true, |
Yifan Hong | 89d1c19 | 2020-10-21 18:07:28 -0700 | [diff] [blame] | 22 | ramdisk_available: true, |
| 23 | vendor_ramdisk_available: true, |
Yifan Hong | 53e0deb | 2019-03-22 17:01:08 -0700 | [diff] [blame] | 24 | // Do not ever mark this as vendor_available; otherwise, vendor modules |
| 25 | // that links to the static library will behave unexpectedly. All on-device |
| 26 | // modules should use libprocessgroup which links to the LL-NDK library |
| 27 | // defined below. The static library is built for tests. |
| 28 | vendor_available: false, |
dimitry | 49c1f6e | 2019-05-16 14:19:09 +0200 | [diff] [blame] | 29 | native_bridge_supported: true, |
Colin Cross | 176ec1b | 2021-04-21 19:13:41 -0700 | [diff] [blame] | 30 | llndk: { |
| 31 | symbol_file: "libcgrouprc.map.txt", |
| 32 | }, |
Yifan Hong | 098323b | 2019-03-04 18:20:02 -0800 | [diff] [blame] | 33 | srcs: [ |
T.J. Mercier | 9c53c80 | 2024-08-01 21:47:29 +0000 | [diff] [blame] | 34 | "a_cgroup_controller.cpp", |
| 35 | "a_cgroup_file.cpp", |
Yifan Hong | 098323b | 2019-03-04 18:20:02 -0800 | [diff] [blame] | 36 | ], |
| 37 | cflags: [ |
| 38 | "-Wall", |
| 39 | "-Werror", |
| 40 | ], |
| 41 | export_include_dirs: [ |
| 42 | "include", |
| 43 | ], |
| 44 | header_libs: [ |
| 45 | "libprocessgroup_headers", |
| 46 | ], |
| 47 | shared_libs: [ |
| 48 | "libbase", |
| 49 | ], |
| 50 | static_libs: [ |
T.J. Mercier | a09ee8e | 2024-10-08 23:41:27 +0000 | [diff] [blame] | 51 | "libjsoncpp", |
| 52 | "libprocessgroup_util", |
Yifan Hong | 098323b | 2019-03-04 18:20:02 -0800 | [diff] [blame] | 53 | ], |
| 54 | stubs: { |
Jiyong Park | 9ae5dab | 2021-02-04 21:02:23 +0900 | [diff] [blame] | 55 | symbol_file: "libcgrouprc.map.txt", |
Yifan Hong | 098323b | 2019-03-04 18:20:02 -0800 | [diff] [blame] | 56 | versions: ["29"], |
| 57 | }, |
Yifan Hong | 5ece395 | 2019-04-03 14:44:10 -0700 | [diff] [blame] | 58 | target: { |
| 59 | linux: { |
Jiyong Park | 9ae5dab | 2021-02-04 21:02:23 +0900 | [diff] [blame] | 60 | version_script: "libcgrouprc.map.txt", |
Yifan Hong | 5ece395 | 2019-04-03 14:44:10 -0700 | [diff] [blame] | 61 | }, |
| 62 | }, |
Yifan Hong | 098323b | 2019-03-04 18:20:02 -0800 | [diff] [blame] | 63 | } |