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", |
| 19 | cflags: ["-Wall", "-Werror", "-Wextra"], |
| 20 | } |
Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 21 | |
| 22 | cc_library { |
| 23 | name: "libprocinfo", |
Chih-Hung Hsieh | 122352d | 2017-10-02 15:20:07 -0700 | [diff] [blame] | 24 | defaults: ["libprocinfo_defaults"], |
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 | ], |
Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 33 | |
| 34 | local_include_dirs: ["include"], |
| 35 | export_include_dirs: ["include"], |
| 36 | shared_libs: ["libbase"], |
| 37 | target: { |
| 38 | darwin: { |
| 39 | enabled: false, |
| 40 | }, |
Dan Willemsen | e0cd1e0 | 2017-03-15 15:23:36 -0700 | [diff] [blame] | 41 | linux_bionic: { |
| 42 | enabled: true, |
| 43 | }, |
Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 44 | windows: { |
| 45 | enabled: false, |
| 46 | }, |
| 47 | }, |
| 48 | } |
| 49 | |
| 50 | // Tests |
| 51 | // ------------------------------------------------------------------------------ |
| 52 | cc_test { |
| 53 | name: "libprocinfo_test", |
Chih-Hung Hsieh | 122352d | 2017-10-02 15:20:07 -0700 | [diff] [blame] | 54 | defaults: ["libprocinfo_defaults"], |
Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 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 | |
Josh Gao | 911d729 | 2016-10-28 15:23:25 -0700 | [diff] [blame] | 68 | 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 | } |