• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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
15// *** 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
48cc_library_static {
49    name: "libfft2d",
50    host_supported: true,
51    vendor_available: true,
52    sdk_version: "current",
53    min_sdk_version: "30",
54    srcs: [
55        "src/fft2d/fft2d/fftsg.c",
56        "src/fft2d/fft2d/fftsg2d.c",
57        "src/fft2d/fft2d/alloc.c",
58        "src/fft2d/fft2d/shrtdct.c",
59    ],
60    cflags: [
61        "-Wno-unused-parameter",
62        "-Wno-unused-function",
63    ],
64    export_include_dirs: ["src/fft2d"],
65    sanitize: {
66        integer_overflow: true,
67    },
68    apex_available: [
69        "//apex_available:platform",
70        "com.android.adservices",
71        "com.android.extservices",
72    ],
73}
74