blob: b568ee5da5a9dd886f672486123161bec6addc51 [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
17libprocinfo_cppflags = [
18 "-Wall",
19 "-Wextra",
20 "-Werror",
21]
22
23cc_library {
24 name: "libprocinfo",
Jayant Chowdhary4362e5b2017-05-17 14:15:06 -070025 vendor_available: true,
Justin Yun6a7e8822017-07-24 15:19:45 +090026 vndk: {
27 enabled: true,
28 },
Josh Gao911d7292016-10-28 15:23:25 -070029 host_supported: true,
30 srcs: [
31 "process.cpp",
32 ],
33 cppflags: libprocinfo_cppflags,
34
35 local_include_dirs: ["include"],
36 export_include_dirs: ["include"],
37 shared_libs: ["libbase"],
38 target: {
39 darwin: {
40 enabled: false,
41 },
Dan Willemsene0cd1e02017-03-15 15:23:36 -070042 linux_bionic: {
43 enabled: true,
44 },
Josh Gao911d7292016-10-28 15:23:25 -070045 windows: {
46 enabled: false,
47 },
48 },
49}
50
51// Tests
52// ------------------------------------------------------------------------------
53cc_test {
54 name: "libprocinfo_test",
55 host_supported: true,
56 srcs: [
57 "process_test.cpp",
58 ],
59 target: {
60 darwin: {
61 enabled: false,
62 },
63 windows: {
64 enabled: false,
65 },
66 },
67
68 cppflags: libprocinfo_cppflags,
69 shared_libs: ["libbase", "libprocinfo"],
70
71 compile_multilib: "both",
72 multilib: {
73 lib32: {
74 suffix: "32",
75 },
76 lib64: {
77 suffix: "64",
78 },
79 },
80}