• Home
  • 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    vndk: {
27        enabled: true,
28    },
29    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        },
42        linux_bionic: {
43            enabled: true,
44        },
45        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}
81