blob: 27cda9361e11e2d865adad22fc80f6ab830d22a6 [file] [log] [blame]
Josh Gao788a35d2016-10-28 15:23:25 -07001//
2// Copyright (C) 2015 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Chih-Hung Hsiehf6522a82017-10-02 15:20:07 -070017cc_defaults {
18 name: "libprocinfo_defaults",
Elliott Hughesb40eb702018-02-16 17:58:14 -080019 cflags: [
20 "-Wall",
21 "-Werror",
22 "-Wextra",
23 ],
Chih-Hung Hsiehf6522a82017-10-02 15:20:07 -070024}
Josh Gao788a35d2016-10-28 15:23:25 -070025
26cc_library {
27 name: "libprocinfo",
Chih-Hung Hsiehf6522a82017-10-02 15:20:07 -070028 defaults: ["libprocinfo_defaults"],
Jayant Chowdharye53a0252017-05-17 14:15:06 -070029 vendor_available: true,
Jiyong Parkafb04832018-05-24 14:11:00 +090030 recovery_available: true,
Justin Yunca63d942017-07-24 15:19:45 +090031 vndk: {
32 enabled: true,
33 },
Jooyung Hanbfc99d62019-01-18 18:10:14 +090034 double_loadable: true,
Josh Gao788a35d2016-10-28 15:23:25 -070035 host_supported: true,
36 srcs: [
37 "process.cpp",
38 ],
Josh Gao788a35d2016-10-28 15:23:25 -070039
40 local_include_dirs: ["include"],
41 export_include_dirs: ["include"],
42 shared_libs: ["libbase"],
43 target: {
44 darwin: {
45 enabled: false,
46 },
Dan Willemsen04b1ffb2017-03-15 15:23:36 -070047 linux_bionic: {
48 enabled: true,
49 },
Josh Gao788a35d2016-10-28 15:23:25 -070050 windows: {
51 enabled: false,
52 },
53 },
54}
55
56// Tests
57// ------------------------------------------------------------------------------
58cc_test {
59 name: "libprocinfo_test",
Chih-Hung Hsiehf6522a82017-10-02 15:20:07 -070060 defaults: ["libprocinfo_defaults"],
Josh Gao788a35d2016-10-28 15:23:25 -070061 host_supported: true,
62 srcs: [
63 "process_test.cpp",
Yabin Cui9581aea2018-05-10 17:19:12 -070064 "process_map_test.cpp",
Josh Gao788a35d2016-10-28 15:23:25 -070065 ],
66 target: {
67 darwin: {
68 enabled: false,
69 },
70 windows: {
71 enabled: false,
72 },
73 },
74
Elliott Hughesb40eb702018-02-16 17:58:14 -080075 shared_libs: [
76 "libbase",
77 "libprocinfo",
78 ],
Josh Gao788a35d2016-10-28 15:23:25 -070079
80 compile_multilib: "both",
81 multilib: {
82 lib32: {
83 suffix: "32",
84 },
85 lib64: {
86 suffix: "64",
87 },
88 },
Elliott Hughes4ee366c2018-04-27 16:12:06 -070089
Yabin Cui9581aea2018-05-10 17:19:12 -070090 data: [
91 "testdata/*",
92 ],
93
Elliott Hughes4ee366c2018-04-27 16:12:06 -070094 test_suites: ["device-tests"],
Josh Gao788a35d2016-10-28 15:23:25 -070095}
Yabin Cui9581aea2018-05-10 17:19:12 -070096
97cc_benchmark {
98 name: "libprocinfo_benchmark",
99 defaults: ["libprocinfo_defaults"],
Yabin Cui9581aea2018-05-10 17:19:12 -0700100 srcs: [
101 "process_map_benchmark.cpp",
102 ],
Yabin Cui9581aea2018-05-10 17:19:12 -0700103 shared_libs: [
104 "libbacktrace",
105 "libbase",
106 "libprocinfo",
107 "libunwindstack",
108 ],
109 compile_multilib: "both",
110 multilib: {
111 lib32: {
112 suffix: "32",
113 },
114 lib64: {
115 suffix: "64",
116 },
117 },
118
119 data: [
120 "testdata/*",
121 ],
122}