blob: 8e17f1b1b3ad0ad151f11f75a47d32e5f5b9e1a8 [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 },
38 windows: {
39 enabled: false,
40 },
41 },
42}
43
44// Tests
45// ------------------------------------------------------------------------------
46cc_test {
47 name: "libprocinfo_test",
48 host_supported: true,
49 srcs: [
50 "process_test.cpp",
51 ],
52 target: {
53 darwin: {
54 enabled: false,
55 },
56 windows: {
57 enabled: false,
58 },
59 },
60
61 cppflags: libprocinfo_cppflags,
62 shared_libs: ["libbase", "libprocinfo"],
63
64 compile_multilib: "both",
65 multilib: {
66 lib32: {
67 suffix: "32",
68 },
69 lib64: {
70 suffix: "64",
71 },
72 },
73}