| Christopher Ferris | 9323b72 | 2017-03-03 17:43:14 -0800 | [diff] [blame] | 1 | // | 
 | 2 | // Copyright (C) 2017 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: "libdemangle_defaults", | 
 | 19 |  | 
 | 20 |     host_supported: true, | 
 | 21 |  | 
 | 22 |     cflags: [ | 
 | 23 |         "-Wall", | 
 | 24 |         "-Werror", | 
 | 25 |         "-Wextra", | 
 | 26 |     ], | 
| Dan Willemsen | 0f04867 | 2017-09-19 17:53:12 -0700 | [diff] [blame] | 27 |  | 
 | 28 |     target: { | 
 | 29 |         linux_bionic: { | 
 | 30 |             enabled: true, | 
 | 31 |         }, | 
 | 32 |     }, | 
| Christopher Ferris | 9323b72 | 2017-03-03 17:43:14 -0800 | [diff] [blame] | 33 | } | 
 | 34 |  | 
 | 35 | cc_library { | 
 | 36 |     name: "libdemangle", | 
 | 37 |     defaults: ["libdemangle_defaults"], | 
| Jiyong Park | 8944432 | 2017-06-14 18:58:22 +0900 | [diff] [blame] | 38 |     vendor_available: true, | 
| Jiyong Park | a0e7504 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 39 |     recovery_available: true, | 
| Christopher Ferris | 9323b72 | 2017-03-03 17:43:14 -0800 | [diff] [blame] | 40 |  | 
 | 41 |     srcs: [ | 
 | 42 |         "Demangler.cpp", | 
 | 43 |     ], | 
 | 44 |  | 
 | 45 |     local_include_dirs: [ | 
| Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 46 |         "include", | 
| Christopher Ferris | 9323b72 | 2017-03-03 17:43:14 -0800 | [diff] [blame] | 47 |     ], | 
 | 48 |  | 
 | 49 |     export_include_dirs: [ | 
| Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 50 |         "include", | 
| Christopher Ferris | 9323b72 | 2017-03-03 17:43:14 -0800 | [diff] [blame] | 51 |     ], | 
 | 52 | } | 
 | 53 |  | 
| Christopher Ferris | a11dc8f | 2017-03-13 15:54:55 -0700 | [diff] [blame] | 54 | cc_binary { | 
 | 55 |     name: "demangle", | 
 | 56 |     defaults: ["libdemangle_defaults"], | 
 | 57 |     srcs: ["demangle.cpp"], | 
 | 58 |     host_supported: true, | 
 | 59 |  | 
 | 60 |     shared_libs: ["libdemangle"], | 
 | 61 | } | 
 | 62 |  | 
| Christopher Ferris | 9323b72 | 2017-03-03 17:43:14 -0800 | [diff] [blame] | 63 | //------------------------------------------------------------------------- | 
 | 64 | // Unit Tests | 
 | 65 | //------------------------------------------------------------------------- | 
 | 66 | cc_test { | 
 | 67 |     name: "libdemangle_test", | 
 | 68 |     defaults: ["libdemangle_defaults"], | 
 | 69 |  | 
 | 70 |     srcs: [ | 
 | 71 |         "DemangleTest.cpp", | 
 | 72 |     ], | 
 | 73 |  | 
 | 74 |     cflags: [ | 
 | 75 |         "-O0", | 
 | 76 |         "-g", | 
 | 77 |     ], | 
 | 78 |  | 
 | 79 |     shared_libs: [ | 
 | 80 |         "libdemangle", | 
 | 81 |     ], | 
| Elliott Hughes | 40fdf3f | 2018-04-27 16:12:06 -0700 | [diff] [blame] | 82 |  | 
 | 83 |     test_suites: ["device-tests"], | 
| Elliott Hughes | 03d183a | 2018-05-03 10:06:45 -0700 | [diff] [blame] | 84 |     required: [ | 
 | 85 |         "libdemangle", | 
 | 86 |     ], | 
| Christopher Ferris | 9323b72 | 2017-03-03 17:43:14 -0800 | [diff] [blame] | 87 | } |