blob: 15b473c2a6ab82b07c47e086bf93d31aa12ef640 [file] [log] [blame]
Dan Albert7ce8df32016-09-23 16:43:49 -07001// 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 Cross02a86572017-10-07 18:38:31 -070015cc_library_shared {
16 name: "libjnigraphics",
17
18 cflags: [
19 "-Wall",
20 "-Werror",
21 "-Wunused",
22 "-Wunreachable-code",
23 ],
24
25 // our source files
26 //
Leon Scroggins III9732e292019-12-16 10:26:57 -050027 srcs: [
Leon Scroggins III9732e292019-12-16 10:26:57 -050028 "aassetstreamadaptor.cpp",
Leon Scroggins III407b5442019-11-22 17:10:20 -050029 "bitmap.cpp",
30 "imagedecoder.cpp",
Leon Scroggins III9732e292019-12-16 10:26:57 -050031 ],
Colin Cross02a86572017-10-07 18:38:31 -070032
33 shared_libs: [
Leon Scroggins III9732e292019-12-16 10:26:57 -050034 "libandroid",
Colin Cross02a86572017-10-07 18:38:31 -070035 "libandroid_runtime",
Leon Scroggins III407b5442019-11-22 17:10:20 -050036 "libhwui",
Leon Scroggins III9732e292019-12-16 10:26:57 -050037 "liblog",
Colin Cross02a86572017-10-07 18:38:31 -070038 ],
Ian Pedowitz0c3c4d12018-01-18 16:24:11 -080039
Derek Sollenbergeree538a32020-02-19 11:51:17 -050040 header_libs: [ "libhwui_internal_headers" ],
41
Leon Scroggins III407b5442019-11-22 17:10:20 -050042 static_libs: ["libarect"],
43
Ian Pedowitz0c3c4d12018-01-18 16:24:11 -080044 arch: {
45 arm: {
46 // TODO: This is to work around b/24465209. Remove after root cause is fixed
Chih-Hung Hsieheeb1ea82018-05-22 21:37:08 -070047 pack_relocations: false,
Ian Pedowitz0c3c4d12018-01-18 16:24:11 -080048 ldflags: ["-Wl,--hash-style=both"],
49 },
50 },
dimitry761fe1b2018-11-15 16:37:14 +010051 version_script: "libjnigraphics.map.txt",
Colin Cross02a86572017-10-07 18:38:31 -070052}
53
Dan Albert7ce8df32016-09-23 16:43:49 -070054// The headers module is in frameworks/native/Android.bp.
55ndk_library {
Dan Willemsen3dcf0312017-04-07 15:48:45 -070056 name: "libjnigraphics",
Dan Albert7ce8df32016-09-23 16:43:49 -070057 symbol_file: "libjnigraphics.map.txt",
58 first_version: "9",
Dan Albert98e462d2017-01-05 16:01:14 -080059 unversioned_until: "current",
Dan Albert7ce8df32016-09-23 16:43:49 -070060}