Dan Albert | 7ce8df3 | 2016-09-23 16:43:49 -0700 | [diff] [blame] | 1 | // Copyright (C) 2016 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Colin Cross | 02a8657 | 2017-10-07 18:38:31 -0700 | [diff] [blame] | 15 | cc_library_shared { |
| 16 | name: "libjnigraphics", |
| 17 | |
| 18 | cflags: [ |
| 19 | "-Wall", |
| 20 | "-Werror", |
| 21 | "-Wunused", |
| 22 | "-Wunreachable-code", |
| 23 | ], |
| 24 | |
| 25 | // our source files |
| 26 | // |
| 27 | srcs: ["bitmap.cpp"], |
| 28 | |
| 29 | shared_libs: [ |
| 30 | "libandroid_runtime", |
| 31 | ], |
Ian Pedowitz | 0c3c4d1 | 2018-01-18 16:24:11 -0800 | [diff] [blame] | 32 | |
| 33 | arch: { |
| 34 | arm: { |
| 35 | // TODO: This is to work around b/24465209. Remove after root cause is fixed |
Chih-Hung Hsieh | eeb1ea8 | 2018-05-22 21:37:08 -0700 | [diff] [blame] | 36 | pack_relocations: false, |
Ian Pedowitz | 0c3c4d1 | 2018-01-18 16:24:11 -0800 | [diff] [blame] | 37 | ldflags: ["-Wl,--hash-style=both"], |
| 38 | }, |
| 39 | }, |
Colin Cross | 02a8657 | 2017-10-07 18:38:31 -0700 | [diff] [blame] | 40 | } |
| 41 | |
Dan Albert | 7ce8df3 | 2016-09-23 16:43:49 -0700 | [diff] [blame] | 42 | // The headers module is in frameworks/native/Android.bp. |
| 43 | ndk_library { |
Dan Willemsen | 3dcf031 | 2017-04-07 15:48:45 -0700 | [diff] [blame] | 44 | name: "libjnigraphics", |
Dan Albert | 7ce8df3 | 2016-09-23 16:43:49 -0700 | [diff] [blame] | 45 | symbol_file: "libjnigraphics.map.txt", |
| 46 | first_version: "9", |
Dan Albert | 98e462d | 2017-01-05 16:01:14 -0800 | [diff] [blame] | 47 | unversioned_until: "current", |
Dan Albert | 7ce8df3 | 2016-09-23 16:43:49 -0700 | [diff] [blame] | 48 | } |