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