blob: aedaa38679e8b3bfae2bcc2280c33ea7c7f81db4 [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,
Josh Gao911d7292016-10-28 15:23:25 -070026 host_supported: true,
27 srcs: [
28 "process.cpp",
29 ],
30 cppflags: libprocinfo_cppflags,
31
32 local_include_dirs: ["include"],
33 export_include_dirs: ["include"],
34 shared_libs: ["libbase"],
35 target: {
36 darwin: {
37 enabled: false,
38 },
Dan Willemsene0cd1e02017-03-15 15:23:36 -070039 linux_bionic: {
40 enabled: true,
41 },
Josh Gao911d7292016-10-28 15:23:25 -070042 windows: {
43 enabled: false,
44 },
45 },
46}
47
48// Tests
49// ------------------------------------------------------------------------------
50cc_test {
51 name: "libprocinfo_test",
52 host_supported: true,
53 srcs: [
54 "process_test.cpp",
55 ],
56 target: {
57 darwin: {
58 enabled: false,
59 },
60 windows: {
61 enabled: false,
62 },
63 },
64
65 cppflags: libprocinfo_cppflags,
66 shared_libs: ["libbase", "libprocinfo"],
67
68 compile_multilib: "both",
69 multilib: {
70 lib32: {
71 suffix: "32",
72 },
73 lib64: {
74 suffix: "64",
75 },
76 },
77}