blob: 83b0a7fcf85ec3397be911c61ccab85e40e7d0d0 [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",
62 ],
63 target: {
64 darwin: {
65 enabled: false,
66 },
67 windows: {
68 enabled: false,
69 },
70 },
71
Elliott Hughesdc699a22018-02-16 17:58:14 -080072 shared_libs: [
73 "libbase",
74 "libprocinfo",
75 ],
Josh Gao911d7292016-10-28 15:23:25 -070076
77 compile_multilib: "both",
78 multilib: {
79 lib32: {
80 suffix: "32",
81 },
82 lib64: {
83 suffix: "64",
84 },
85 },
86}