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 17 cc_defaults { 18 name: "libprocinfo_defaults", 19 cflags: [ 20 "-Wall", 21 "-Werror", 22 "-Wextra", 23 ], 24 } 25 26 cc_library { 27 name: "libprocinfo", 28 defaults: ["libprocinfo_defaults"], 29 vendor_available: true, 30 vndk: { 31 enabled: true, 32 }, 33 host_supported: true, 34 srcs: [ 35 "process.cpp", 36 ], 37 38 local_include_dirs: ["include"], 39 export_include_dirs: ["include"], 40 shared_libs: ["libbase"], 41 target: { 42 darwin: { 43 enabled: false, 44 }, 45 linux_bionic: { 46 enabled: true, 47 }, 48 windows: { 49 enabled: false, 50 }, 51 }, 52 } 53 54 // Tests 55 // ------------------------------------------------------------------------------ 56 cc_test { 57 name: "libprocinfo_test", 58 defaults: ["libprocinfo_defaults"], 59 host_supported: true, 60 srcs: [ 61 "process_test.cpp", 62 ], 63 target: { 64 darwin: { 65 enabled: false, 66 }, 67 windows: { 68 enabled: false, 69 }, 70 }, 71 72 shared_libs: [ 73 "libbase", 74 "libprocinfo", 75 ], 76 77 compile_multilib: "both", 78 multilib: { 79 lib32: { 80 suffix: "32", 81 }, 82 lib64: { 83 suffix: "64", 84 }, 85 }, 86 } 87