| Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 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 | libprocinfo_cppflags = [ | 
 | 18 |     "-Wall", | 
 | 19 |     "-Wextra", | 
 | 20 |     "-Werror", | 
 | 21 | ] | 
 | 22 |  | 
 | 23 | cc_library { | 
 | 24 |     name: "libprocinfo", | 
| Jayant Chowdhary | 4362e5b | 2017-05-17 14:15:06 -0700 | [diff] [blame] | 25 |     vendor_available: true, | 
| Justin Yun | 6a7e882 | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 26 |     vndk: { | 
 | 27 |         enabled: true, | 
 | 28 |     }, | 
| Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 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 |         }, | 
| Dan Willemsen | e0cd1e0 | 2017-03-15 15:23:36 -0700 | [diff] [blame] | 42 |         linux_bionic: { | 
 | 43 |             enabled: true, | 
 | 44 |         }, | 
| Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 45 |         windows: { | 
 | 46 |             enabled: false, | 
 | 47 |         }, | 
 | 48 |     }, | 
 | 49 | } | 
 | 50 |  | 
 | 51 | // Tests | 
 | 52 | // ------------------------------------------------------------------------------ | 
 | 53 | cc_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 | } |