Bob Badour | d69ad69 | 2021-02-16 19:02:14 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Bart Van Assche | a823bee | 2022-08-08 11:12:55 -0700 | [diff] [blame^] | 5 | cc_defaults { |
| 6 | name: "libprocessgroup_defaults", |
| 7 | cpp_std: "gnu++20", |
| 8 | cflags: [ |
| 9 | "-Wall", |
| 10 | "-Werror", |
| 11 | "-Wexit-time-destructors", |
| 12 | "-Wno-unused-parameter", |
| 13 | ], |
| 14 | } |
| 15 | |
Suren Baghdasaryan | 1bd127b | 2019-01-25 05:30:52 +0000 | [diff] [blame] | 16 | cc_library_headers { |
| 17 | name: "libprocessgroup_headers", |
| 18 | vendor_available: true, |
Justin Yun | feef4d3 | 2020-11-11 19:17:40 +0900 | [diff] [blame] | 19 | product_available: true, |
Yifan Hong | 67c71a1 | 2020-10-28 10:49:35 -0700 | [diff] [blame] | 20 | ramdisk_available: true, |
| 21 | vendor_ramdisk_available: true, |
Suren Baghdasaryan | 1bd127b | 2019-01-25 05:30:52 +0000 | [diff] [blame] | 22 | recovery_available: true, |
| 23 | host_supported: true, |
dimitry | 49c1f6e | 2019-05-16 14:19:09 +0200 | [diff] [blame] | 24 | native_bridge_supported: true, |
Suren Baghdasaryan | 1bd127b | 2019-01-25 05:30:52 +0000 | [diff] [blame] | 25 | export_include_dirs: ["include"], |
| 26 | target: { |
| 27 | linux_bionic: { |
| 28 | enabled: true, |
| 29 | }, |
| 30 | windows: { |
| 31 | enabled: true, |
| 32 | }, |
| 33 | }, |
Jiyong Park | e3d371e | 2020-04-08 22:37:42 +0900 | [diff] [blame] | 34 | apex_available: [ |
| 35 | "//apex_available:platform", |
| 36 | "//apex_available:anyapex", |
| 37 | ], |
Jooyung Han | 4f55f3e | 2020-04-16 18:48:33 +0900 | [diff] [blame] | 38 | min_sdk_version: "29", |
Suren Baghdasaryan | 1bd127b | 2019-01-25 05:30:52 +0000 | [diff] [blame] | 39 | } |
| 40 | |
Steven Moreland | 419ce36 | 2017-04-19 14:12:52 -0700 | [diff] [blame] | 41 | cc_library { |
Suren Baghdasaryan | 1bd127b | 2019-01-25 05:30:52 +0000 | [diff] [blame] | 42 | srcs: [ |
Suren Baghdasaryan | 82b72a5 | 2018-12-21 11:41:50 -0800 | [diff] [blame] | 43 | "cgroup_map.cpp", |
Suren Baghdasaryan | 1bd127b | 2019-01-25 05:30:52 +0000 | [diff] [blame] | 44 | "processgroup.cpp", |
| 45 | "sched_policy.cpp", |
Suren Baghdasaryan | 82b72a5 | 2018-12-21 11:41:50 -0800 | [diff] [blame] | 46 | "task_profiles.cpp", |
Suren Baghdasaryan | 1bd127b | 2019-01-25 05:30:52 +0000 | [diff] [blame] | 47 | ], |
Steven Moreland | 419ce36 | 2017-04-19 14:12:52 -0700 | [diff] [blame] | 48 | name: "libprocessgroup", |
Tom Cherry | 574a081 | 2018-02-23 13:04:40 -0800 | [diff] [blame] | 49 | host_supported: true, |
Steven Moreland | b495b0d | 2019-06-17 12:44:39 -0700 | [diff] [blame] | 50 | native_bridge_supported: true, |
Yifan Hong | 89d1c19 | 2020-10-21 18:07:28 -0700 | [diff] [blame] | 51 | ramdisk_available: true, |
| 52 | vendor_ramdisk_available: true, |
Tom Cherry | 1151d15 | 2018-07-24 13:45:09 -0700 | [diff] [blame] | 53 | recovery_available: true, |
Suren Baghdasaryan | 7bf4381 | 2019-01-25 05:29:55 +0000 | [diff] [blame] | 54 | vendor_available: true, |
Justin Yun | feef4d3 | 2020-11-11 19:17:40 +0900 | [diff] [blame] | 55 | product_available: true, |
Suren Baghdasaryan | 1bd127b | 2019-01-25 05:30:52 +0000 | [diff] [blame] | 56 | vndk: { |
| 57 | enabled: true, |
| 58 | support_system_process: true, |
| 59 | }, |
Suren Baghdasaryan | 9491078 | 2019-01-25 05:32:52 +0000 | [diff] [blame] | 60 | shared_libs: [ |
| 61 | "libbase", |
Yifan Hong | 53e0deb | 2019-03-22 17:01:08 -0700 | [diff] [blame] | 62 | "libcgrouprc", |
Vic Yang | d167cb2 | 2019-05-08 12:50:56 -0700 | [diff] [blame] | 63 | ], |
| 64 | static_libs: [ |
Suren Baghdasaryan | 82b72a5 | 2018-12-21 11:41:50 -0800 | [diff] [blame] | 65 | "libjsoncpp", |
Suren Baghdasaryan | 9491078 | 2019-01-25 05:32:52 +0000 | [diff] [blame] | 66 | ], |
Suren Baghdasaryan | 7bf4381 | 2019-01-25 05:29:55 +0000 | [diff] [blame] | 67 | // for cutils/android_filesystem_config.h |
Suren Baghdasaryan | 1bd127b | 2019-01-25 05:30:52 +0000 | [diff] [blame] | 68 | header_libs: [ |
| 69 | "libcutils_headers", |
| 70 | "libprocessgroup_headers", |
| 71 | ], |
Steven Moreland | 419ce36 | 2017-04-19 14:12:52 -0700 | [diff] [blame] | 72 | export_include_dirs: ["include"], |
Suren Baghdasaryan | 1bd127b | 2019-01-25 05:30:52 +0000 | [diff] [blame] | 73 | export_header_lib_headers: [ |
| 74 | "libprocessgroup_headers", |
| 75 | ], |
Bart Van Assche | a823bee | 2022-08-08 11:12:55 -0700 | [diff] [blame^] | 76 | defaults: ["libprocessgroup_defaults"], |
Jiyong Park | e3d371e | 2020-04-08 22:37:42 +0900 | [diff] [blame] | 77 | apex_available: [ |
| 78 | "//apex_available:platform", |
| 79 | "//apex_available:anyapex", |
| 80 | ], |
Jooyung Han | 4f55f3e | 2020-04-16 18:48:33 +0900 | [diff] [blame] | 81 | min_sdk_version: "29", |
Steven Moreland | 419ce36 | 2017-04-19 14:12:52 -0700 | [diff] [blame] | 82 | } |
Bart Van Assche | 59af680 | 2022-01-24 21:08:57 +0000 | [diff] [blame] | 83 | |
| 84 | cc_test { |
| 85 | name: "task_profiles_test", |
| 86 | host_supported: true, |
Bart Van Assche | a823bee | 2022-08-08 11:12:55 -0700 | [diff] [blame^] | 87 | defaults: ["libprocessgroup_defaults"], |
Bart Van Assche | 59af680 | 2022-01-24 21:08:57 +0000 | [diff] [blame] | 88 | srcs: [ |
| 89 | "task_profiles_test.cpp", |
| 90 | ], |
| 91 | header_libs: [ |
| 92 | "libcutils_headers", |
| 93 | "libprocessgroup_headers", |
| 94 | ], |
| 95 | shared_libs: [ |
| 96 | "libbase", |
| 97 | "libcgrouprc", |
| 98 | "libprocessgroup", |
| 99 | ], |
| 100 | static_libs: [ |
| 101 | "libgmock", |
| 102 | ], |
| 103 | } |