blob: 706a17f2b627348645c743ebf9977d51a38a9153 [file] [log] [blame]
Gang Wang878be622021-02-18 17:35:04 -05001// Copyright 2021 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
Bob Badour4d2dff82021-03-26 18:58:21 -070015// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
16// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
17// DEPENDING ON IT IN YOUR PROJECT. ***
18package {
19 default_applicable_licenses: ["external_fft2d_license"],
20}
21
22// Added automatically by a large-scale-change that took the approach of
23// 'apply every license found to every target'. While this makes sure we respect
24// every license restriction, it may not be entirely correct.
25//
26// e.g. GPL in an MIT project might only apply to the contrib/ directory.
27//
28// Please consider splitting the single license below into multiple licenses,
29// taking care not to lose any license_kind information, and overriding the
30// default license using the 'licenses: [...]' property on targets as needed.
31//
32// For unused files, consider creating a 'fileGroup' with "//visibility:private"
33// to attach the license to, and including a comment whether the files may be
34// used in the current project.
35// See: http://go/android-license-faq
36license {
37 name: "external_fft2d_license",
38 visibility: [":__subpackages__"],
39 license_kinds: [
40 "legacy_by_exception_only", // by exception only
41 "legacy_notice",
42 ],
43 license_text: [
44 "LICENSE",
45 ],
46}
47
Gang Wang878be622021-02-18 17:35:04 -050048cc_library_static {
49 name: "libfft2d",
50 sdk_version: "current",
51 min_sdk_version: "30",
52 srcs: [
53 "src/fft2d/fft2d/fftsg.c",
54 "src/fft2d/fft2d/fftsg2d.c",
55 "src/fft2d/fft2d/alloc.c",
56 "src/fft2d/fft2d/shrtdct.c"
57 ],
58 cflags: [
59 "-Wno-unused-parameter",
60 "-Wno-unused-function",
61 ],
62 export_include_dirs: ["src/fft2d"],
63 sanitize: {
64 integer_overflow: true,
65 },
66 apex_available: [
67 "//apex_available:platform",
68 "com.android.extservices",
69 ],
70}