• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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    vendor_available: true,
26    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        },
39        linux_bionic: {
40            enabled: true,
41        },
42        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}
78