blob: 1cfabd5becc6babc86cf9d3f791f32333af565a1 [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
Chih-Hung Hsieh122352d2017-10-02 15:20:07 -070017cc_defaults {
18 name: "libprocinfo_defaults",
19 cflags: ["-Wall", "-Werror", "-Wextra"],
20}
Josh Gao911d7292016-10-28 15:23:25 -070021
22cc_library {
23 name: "libprocinfo",
Chih-Hung Hsieh122352d2017-10-02 15:20:07 -070024 defaults: ["libprocinfo_defaults"],
Jayant Chowdhary4362e5b2017-05-17 14:15:06 -070025 vendor_available: true,
Justin Yun6a7e8822017-07-24 15:19:45 +090026 vndk: {
27 enabled: true,
28 },
Josh Gao911d7292016-10-28 15:23:25 -070029 host_supported: true,
30 srcs: [
31 "process.cpp",
32 ],
Josh Gao911d7292016-10-28 15:23:25 -070033
34 local_include_dirs: ["include"],
35 export_include_dirs: ["include"],
36 shared_libs: ["libbase"],
37 target: {
38 darwin: {
39 enabled: false,
40 },
Dan Willemsene0cd1e02017-03-15 15:23:36 -070041 linux_bionic: {
42 enabled: true,
43 },
Josh Gao911d7292016-10-28 15:23:25 -070044 windows: {
45 enabled: false,
46 },
47 },
48}
49
50// Tests
51// ------------------------------------------------------------------------------
52cc_test {
53 name: "libprocinfo_test",
Chih-Hung Hsieh122352d2017-10-02 15:20:07 -070054 defaults: ["libprocinfo_defaults"],
Josh Gao911d7292016-10-28 15:23:25 -070055 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
Josh Gao911d7292016-10-28 15:23:25 -070068 shared_libs: ["libbase", "libprocinfo"],
69
70 compile_multilib: "both",
71 multilib: {
72 lib32: {
73 suffix: "32",
74 },
75 lib64: {
76 suffix: "64",
77 },
78 },
79}