Debian Codegraph @

media/mca/filterpacks/Android.bp

raw
1 // Copyright (C) 2011 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 //
15
16 package {
17 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "frameworks_base_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["frameworks_base_license"],
23 }
24
25 cc_library_static {
26 name: "libfilterpack_base",
27 srcs: [
28 "native/base/geometry.cpp",
29 "native/base/time_util.cpp",
30 ],
31
32 cflags: [
33 "-DANDROID",
34 "-Wall",
35 "-Werror",
36 "-Wunused",
37 "-Wunreachable-code",
38 ],
39 }
40
41 cc_library_shared {
42 name: "libfilterpack_imageproc",
43
44 srcs: [
45 "native/imageproc/brightness.c",
46 "native/imageproc/contrast.c",
47 "native/imageproc/invert.c",
48 "native/imageproc/to_rgba.c",
49 ],
50
51 shared_libs: [
52 "liblog",
53 "libutils",
54 "libfilterfw",
55 ],
56
57 cflags: [
58 "-Wall",
59 "-Werror",
60 "-Wunused",
61 "-Wunreachable-code",
62
63 // Bug: http://b/29823425 Disable constant-conversion warning triggered in
64 // native/imageproc/to_rgba.c
65 "-Wno-constant-conversion",
66 ],
67 }