blob: 15f03d0801133a0b5240575973d0749970828a22 [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,
Jiyong Parka0e75042018-05-24 14:11:00 +090030 recovery_available: true,
Justin Yun6a7e8822017-07-24 15:19:45 +090031 vndk: {
32 enabled: true,
33 },
Josh Gao911d7292016-10-28 15:23:25 -070034 host_supported: true,
35 srcs: [
36 "process.cpp",
37 ],
Josh Gao911d7292016-10-28 15:23:25 -070038
39 local_include_dirs: ["include"],
40 export_include_dirs: ["include"],
41 shared_libs: ["libbase"],
42 target: {
43 darwin: {
44 enabled: false,
45 },
Dan Willemsene0cd1e02017-03-15 15:23:36 -070046 linux_bionic: {
47 enabled: true,
48 },
Josh Gao911d7292016-10-28 15:23:25 -070049 windows: {
50 enabled: false,
51 },
52 },
53}
54
55// Tests
56// ------------------------------------------------------------------------------
57cc_test {
58 name: "libprocinfo_test",
Chih-Hung Hsieh122352d2017-10-02 15:20:07 -070059 defaults: ["libprocinfo_defaults"],
Josh Gao911d7292016-10-28 15:23:25 -070060 host_supported: true,
61 srcs: [
62 "process_test.cpp",
Yabin Cui3841acc2018-05-10 17:19:12 -070063 "process_map_test.cpp",
Josh Gao911d7292016-10-28 15:23:25 -070064 ],
65 target: {
66 darwin: {
67 enabled: false,
68 },
69 windows: {
70 enabled: false,
71 },
72 },
73
Elliott Hughesdc699a22018-02-16 17:58:14 -080074 shared_libs: [
75 "libbase",
76 "libprocinfo",
77 ],
Josh Gao911d7292016-10-28 15:23:25 -070078
79 compile_multilib: "both",
80 multilib: {
81 lib32: {
82 suffix: "32",
83 },
84 lib64: {
85 suffix: "64",
86 },
87 },
Elliott Hughes40fdf3f2018-04-27 16:12:06 -070088
Yabin Cui3841acc2018-05-10 17:19:12 -070089 data: [
90 "testdata/*",
91 ],
92
Elliott Hughes40fdf3f2018-04-27 16:12:06 -070093 test_suites: ["device-tests"],
Josh Gao911d7292016-10-28 15:23:25 -070094}
Yabin Cui3841acc2018-05-10 17:19:12 -070095
96cc_benchmark {
97 name: "libprocinfo_benchmark",
98 defaults: ["libprocinfo_defaults"],
Yabin Cui3841acc2018-05-10 17:19:12 -070099 srcs: [
100 "process_map_benchmark.cpp",
101 ],
Yabin Cui3841acc2018-05-10 17:19:12 -0700102 shared_libs: [
103 "libbacktrace",
104 "libbase",
105 "libprocinfo",
106 "libunwindstack",
107 ],
108 compile_multilib: "both",
109 multilib: {
110 lib32: {
111 suffix: "32",
112 },
113 lib64: {
114 suffix: "64",
115 },
116 },
117
118 data: [
119 "testdata/*",
120 ],
121}