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 | |
Chih-Hung Hsieh | 122352d | 2017-10-02 15:20:07 -0700 | [diff] [blame] | 17 | cc_defaults { |
| 18 | name: "libprocinfo_defaults", |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 19 | cflags: [ |
| 20 | "-Wall", |
| 21 | "-Werror", |
| 22 | "-Wextra", |
| 23 | ], |
Chih-Hung Hsieh | 122352d | 2017-10-02 15:20:07 -0700 | [diff] [blame] | 24 | } |
Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 25 | |
| 26 | cc_library { |
| 27 | name: "libprocinfo", |
Chih-Hung Hsieh | 122352d | 2017-10-02 15:20:07 -0700 | [diff] [blame] | 28 | defaults: ["libprocinfo_defaults"], |
Jayant Chowdhary | 4362e5b | 2017-05-17 14:15:06 -0700 | [diff] [blame] | 29 | vendor_available: true, |
Justin Yun | 6a7e882 | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 30 | vndk: { |
| 31 | enabled: true, |
| 32 | }, |
Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 33 | host_supported: true, |
| 34 | srcs: [ |
| 35 | "process.cpp", |
| 36 | ], |
Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 37 | |
| 38 | local_include_dirs: ["include"], |
| 39 | export_include_dirs: ["include"], |
| 40 | shared_libs: ["libbase"], |
| 41 | target: { |
| 42 | darwin: { |
| 43 | enabled: false, |
| 44 | }, |
Dan Willemsen | e0cd1e0 | 2017-03-15 15:23:36 -0700 | [diff] [blame] | 45 | linux_bionic: { |
| 46 | enabled: true, |
| 47 | }, |
Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 48 | windows: { |
| 49 | enabled: false, |
| 50 | }, |
| 51 | }, |
| 52 | } |
| 53 | |
| 54 | // Tests |
| 55 | // ------------------------------------------------------------------------------ |
| 56 | cc_test { |
| 57 | name: "libprocinfo_test", |
Chih-Hung Hsieh | 122352d | 2017-10-02 15:20:07 -0700 | [diff] [blame] | 58 | defaults: ["libprocinfo_defaults"], |
Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 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 | |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 72 | shared_libs: [ |
| 73 | "libbase", |
| 74 | "libprocinfo", |
| 75 | ], |
Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 76 | |
| 77 | compile_multilib: "both", |
| 78 | multilib: { |
| 79 | lib32: { |
| 80 | suffix: "32", |
| 81 | }, |
| 82 | lib64: { |
| 83 | suffix: "64", |
| 84 | }, |
| 85 | }, |
| 86 | } |