Yifan Hong | 98a61dd | 2019-02-08 12:34:48 -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 { |
Yihan Dong | 900ef7b | 2024-10-12 08:52:31 +0000 | [diff] [blame] | 16 | default_team: "trendy_team_android_kernel", |
Bob Badour | d69ad69 | 2021-02-16 19:02:14 -0800 | [diff] [blame] | 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
| 19 | |
Yifan Hong | 98a61dd | 2019-02-08 12:34:48 -0800 | [diff] [blame] | 20 | prebuilt_etc { |
| 21 | name: "cgroups.json", |
| 22 | src: "cgroups.json", |
| 23 | } |
| 24 | |
| 25 | prebuilt_etc { |
| 26 | name: "cgroups.recovery.json", |
| 27 | filename: "cgroups.json", |
| 28 | recovery: true, |
| 29 | src: "cgroups.recovery.json", |
| 30 | } |
| 31 | |
| 32 | prebuilt_etc { |
| 33 | name: "task_profiles.json", |
| 34 | src: "task_profiles.json", |
| 35 | } |
Yifan Hong | 72ff585 | 2019-02-13 14:32:34 -0800 | [diff] [blame] | 36 | |
Yifan Hong | e8e2756 | 2019-03-04 15:23:34 -0800 | [diff] [blame] | 37 | cc_defaults { |
| 38 | name: "libprocessgroup_test_defaults", |
| 39 | cflags: [ |
| 40 | "-Wall", |
| 41 | "-Werror", |
| 42 | |
| 43 | // Needed for headers from libprotobuf. |
| 44 | "-Wno-unused-parameter", |
| 45 | ], |
| 46 | } |
| 47 | |
Yifan Hong | 72ff585 | 2019-02-13 14:32:34 -0800 | [diff] [blame] | 48 | cc_library_static { |
| 49 | name: "libprocessgroup_proto", |
| 50 | host_supported: true, |
Yifan Hong | e8e2756 | 2019-03-04 15:23:34 -0800 | [diff] [blame] | 51 | defaults: ["libprocessgroup_test_defaults"], |
Yifan Hong | 72ff585 | 2019-02-13 14:32:34 -0800 | [diff] [blame] | 52 | srcs: [ |
| 53 | "cgroups.proto", |
| 54 | "task_profiles.proto", |
| 55 | ], |
| 56 | proto: { |
| 57 | type: "full", |
| 58 | export_proto_headers: true, |
| 59 | }, |
Yifan Hong | 72ff585 | 2019-02-13 14:32:34 -0800 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | cc_test_host { |
| 63 | name: "libprocessgroup_proto_test", |
Yifan Hong | e8e2756 | 2019-03-04 15:23:34 -0800 | [diff] [blame] | 64 | defaults: ["libprocessgroup_test_defaults"], |
Yifan Hong | 72ff585 | 2019-02-13 14:32:34 -0800 | [diff] [blame] | 65 | srcs: [ |
| 66 | "test.cpp", |
| 67 | ], |
| 68 | static_libs: [ |
| 69 | "libbase", |
| 70 | "libgmock", |
| 71 | "liblog", |
| 72 | "libjsoncpp", |
| 73 | "libjsonpbverify", |
| 74 | "libjsonpbparse", |
| 75 | "libprocessgroup_proto", |
| 76 | ], |
| 77 | shared_libs: [ |
| 78 | "libprotobuf-cpp-full", |
| 79 | ], |
Yifan Hong | 72ff585 | 2019-02-13 14:32:34 -0800 | [diff] [blame] | 80 | data: [ |
| 81 | "cgroups.json", |
| 82 | "cgroups.recovery.json", |
| 83 | "task_profiles.json", |
| 84 | ], |
Yifan Hong | 72ff585 | 2019-02-13 14:32:34 -0800 | [diff] [blame] | 85 | } |
Yifan Hong | e8e2756 | 2019-03-04 15:23:34 -0800 | [diff] [blame] | 86 | |
| 87 | cc_test { |
| 88 | name: "vts_processgroup_validate_test", |
| 89 | defaults: ["libprocessgroup_test_defaults"], |
| 90 | srcs: [ |
| 91 | "test_vendor.cpp", |
| 92 | ], |
| 93 | static_libs: [ |
Yifan Hong | 2572f23 | 2020-05-07 12:41:45 -0700 | [diff] [blame] | 94 | "libbase", |
Yifan Hong | e8e2756 | 2019-03-04 15:23:34 -0800 | [diff] [blame] | 95 | "libgmock", |
Yifan Hong | 2572f23 | 2020-05-07 12:41:45 -0700 | [diff] [blame] | 96 | "liblog", |
| 97 | "libjsoncpp", |
Yifan Hong | e8e2756 | 2019-03-04 15:23:34 -0800 | [diff] [blame] | 98 | "libjsonpbverify", |
| 99 | "libjsonpbparse", |
| 100 | "libprocessgroup_proto", |
| 101 | ], |
| 102 | shared_libs: [ |
Yifan Hong | e8e2756 | 2019-03-04 15:23:34 -0800 | [diff] [blame] | 103 | "libprotobuf-cpp-full", |
| 104 | ], |
Dan Shi | 63a07aa | 2020-04-27 13:32:48 -0700 | [diff] [blame] | 105 | test_suites: [ |
| 106 | "vts", |
| 107 | ], |
Yifan Hong | e8e2756 | 2019-03-04 15:23:34 -0800 | [diff] [blame] | 108 | } |