blob: 78d1912d2485e7cd287abe1197e2b7f46f98a5f8 [file] [log] [blame]
Dichen Zhang85b37562022-10-11 11:08:28 -07001// Copyright 2022 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
15package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_native_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_native_license"],
22}
23
Dichen Zhangb27d06d2022-12-14 19:57:50 +000024cc_library {
Dichen Zhang85b37562022-10-11 11:08:28 -070025 name: "libjpegrecoverymap",
Dichen Zhang72fd2b12022-11-01 06:11:50 +000026 host_supported: true,
Dichen Zhang85b37562022-10-11 11:08:28 -070027
28 export_include_dirs: ["include"],
29 local_include_dirs: ["include"],
30
31 srcs: [
Dichen Zhang761b52d2023-02-10 22:38:38 +000032 "jpegr.cpp",
Nick Deakinf6bca5a2022-11-04 10:43:43 -040033 "recoverymapmath.cpp",
Dichen Zhang761b52d2023-02-10 22:38:38 +000034 "jpegrutils.cpp",
Dichen Zhang85b37562022-10-11 11:08:28 -070035 ],
Dichen Zhang6947d532022-10-22 02:16:21 +000036
37 shared_libs: [
Dichen Zhang72fd2b12022-11-01 06:11:50 +000038 "libimage_io",
Nick Deakinf6bca5a2022-11-04 10:43:43 -040039 "libjpeg",
Dichen Zhangb27d06d2022-12-14 19:57:50 +000040 "libjpegencoder",
41 "libjpegdecoder",
Dichen Zhang53751272023-01-17 19:09:01 -080042 "liblog",
Dichen Zhang6947d532022-10-22 02:16:21 +000043 ],
Dichen Zhang6438a192023-01-29 07:51:15 +000044
45 static_libs: ["libskia"],
Dichen Zhang4a66b3c2022-10-19 18:04:47 +000046}
47
Dichen Zhangb27d06d2022-12-14 19:57:50 +000048cc_library {
Dichen Zhang4a66b3c2022-10-19 18:04:47 +000049 name: "libjpegencoder",
Dichen Zhangb27d06d2022-12-14 19:57:50 +000050 host_supported: true,
Dichen Zhang4a66b3c2022-10-19 18:04:47 +000051
52 shared_libs: [
53 "libjpeg",
Dichen Zhangb27d06d2022-12-14 19:57:50 +000054 "liblog",
Dichen Zhang4a66b3c2022-10-19 18:04:47 +000055 ],
56
57 export_include_dirs: ["include"],
58
59 srcs: [
Dichen Zhang02dd0592023-02-10 20:16:57 +000060 "jpegencoderhelper.cpp",
Dichen Zhang4a66b3c2022-10-19 18:04:47 +000061 ],
Dichen Zhang0d12ba82022-10-19 20:44:51 +000062}
63
Dichen Zhangb27d06d2022-12-14 19:57:50 +000064cc_library {
Dichen Zhang0d12ba82022-10-19 20:44:51 +000065 name: "libjpegdecoder",
Dichen Zhangb27d06d2022-12-14 19:57:50 +000066 host_supported: true,
Dichen Zhang0d12ba82022-10-19 20:44:51 +000067
68 shared_libs: [
69 "libjpeg",
Dichen Zhangb27d06d2022-12-14 19:57:50 +000070 "liblog",
Dichen Zhang0d12ba82022-10-19 20:44:51 +000071 ],
72
73 export_include_dirs: ["include"],
74
75 srcs: [
Dichen Zhang02dd0592023-02-10 20:16:57 +000076 "jpegdecoderhelper.cpp",
Dichen Zhang0d12ba82022-10-19 20:44:51 +000077 ],
Nick Deakinf6bca5a2022-11-04 10:43:43 -040078}