blob: d776b3d8e05d2233bfe4fced6370f4ed46838fd6 [file] [log] [blame]
Josh Gao911d7292016-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 Hsieh122352d2017-10-02 15:20:07 -070017cc_defaults {
18 name: "libprocinfo_defaults",
Elliott Hughesdc699a22018-02-16 17:58:14 -080019 cflags: [
20 "-Wall",
21 "-Werror",
22 "-Wextra",
23 ],
Chih-Hung Hsieh122352d2017-10-02 15:20:07 -070024}
Josh Gao911d7292016-10-28 15:23:25 -070025
26cc_library {
27 name: "libprocinfo",
Chih-Hung Hsieh122352d2017-10-02 15:20:07 -070028 defaults: ["libprocinfo_defaults"],
Jayant Chowdhary4362e5b2017-05-17 14:15:06 -070029 vendor_available: true,
Justin Yun6a7e8822017-07-24 15:19:45 +090030 vndk: {
31 enabled: true,
32 },
Josh Gao911d7292016-10-28 15:23:25 -070033 host_supported: true,
34 srcs: [
35 "process.cpp",
36 ],
Josh Gao911d7292016-10-28 15:23:25 -070037
38 local_include_dirs: ["include"],
39 export_include_dirs: ["include"],
40 shared_libs: ["libbase"],
41 target: {
42 darwin: {
43 enabled: false,
44 },
Dan Willemsene0cd1e02017-03-15 15:23:36 -070045 linux_bionic: {
46 enabled: true,
47 },
Josh Gao911d7292016-10-28 15:23:25 -070048 windows: {
49 enabled: false,
50 },
51 },
52}
53
54// Tests
55// ------------------------------------------------------------------------------
56cc_test {
57 name: "libprocinfo_test",
Chih-Hung Hsieh122352d2017-10-02 15:20:07 -070058 defaults: ["libprocinfo_defaults"],
Josh Gao911d7292016-10-28 15:23:25 -070059 host_supported: true,
60 srcs: [
61 "process_test.cpp",
Yabin Cui3841acc2018-05-10 17:19:12 -070062 "process_map_test.cpp",
Josh Gao911d7292016-10-28 15:23:25 -070063 ],
64 target: {
65 darwin: {
66 enabled: false,
67 },
68 windows: {
69 enabled: false,
70 },
71 },
72
Elliott Hughesdc699a22018-02-16 17:58:14 -080073 shared_libs: [
74 "libbase",
75 "libprocinfo",
76 ],
Josh Gao911d7292016-10-28 15:23:25 -070077
78 compile_multilib: "both",
79 multilib: {
80 lib32: {
81 suffix: "32",
82 },
83 lib64: {
84 suffix: "64",
85 },
86 },
Elliott Hughes40fdf3f2018-04-27 16:12:06 -070087
Yabin Cui3841acc2018-05-10 17:19:12 -070088 data: [
89 "testdata/*",
90 ],
91
Elliott Hughes40fdf3f2018-04-27 16:12:06 -070092 test_suites: ["device-tests"],
Josh Gao911d7292016-10-28 15:23:25 -070093}
Yabin Cui3841acc2018-05-10 17:19:12 -070094
95cc_benchmark {
96 name: "libprocinfo_benchmark",
97 defaults: ["libprocinfo_defaults"],
Yabin Cui3841acc2018-05-10 17:19:12 -070098 srcs: [
99 "process_map_benchmark.cpp",
100 ],
Yabin Cui3841acc2018-05-10 17:19:12 -0700101 shared_libs: [
102 "libbacktrace",
103 "libbase",
104 "libprocinfo",
105 "libunwindstack",
106 ],
107 compile_multilib: "both",
108 multilib: {
109 lib32: {
110 suffix: "32",
111 },
112 lib64: {
113 suffix: "64",
114 },
115 },
116
117 data: [
118 "testdata/*",
119 ],
120}