Bob Badour | 3e2ecbd | 2021-02-12 17:52:26 -0800 | [diff] [blame^] | 1 | package { |
| 2 | default_applicable_licenses: ["external_pffft_license"], |
| 3 | } |
| 4 | |
| 5 | // Added automatically by a large-scale-change that took the approach of |
| 6 | // 'apply every license found to every target'. While this makes sure we respect |
| 7 | // every license restriction, it may not be entirely correct. |
| 8 | // |
| 9 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 10 | // |
| 11 | // Please consider splitting the single license below into multiple licenses, |
| 12 | // taking care not to lose any license_kind information, and overriding the |
| 13 | // default license using the 'licenses: [...]' property on targets as needed. |
| 14 | // |
| 15 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 16 | // to attach the license to, and including a comment whether the files may be |
| 17 | // used in the current project. |
| 18 | // |
| 19 | // large-scale-change filtered out the below license kinds as false-positives: |
| 20 | // SPDX-license-identifier-GPL |
| 21 | // See: http://go/android-license-faq |
| 22 | license { |
| 23 | name: "external_pffft_license", |
| 24 | visibility: [":__subpackages__"], |
| 25 | license_kinds: [ |
| 26 | "SPDX-license-identifier-Apache-2.0", |
| 27 | "SPDX-license-identifier-BSD", |
| 28 | "SPDX-license-identifier-MIT", |
| 29 | ], |
| 30 | license_text: [ |
| 31 | "LICENSE.txt", |
| 32 | ], |
| 33 | } |
| 34 | |
Jorge E. Moreira | f620dcc | 2020-06-22 11:54:50 -0700 | [diff] [blame] | 35 | cc_library_static { |
| 36 | name: "libpffft", |
Harish Mahendrakar | 799b561 | 2020-09-22 21:39:23 -0700 | [diff] [blame] | 37 | // vendor needed for libpreprocessing effects. |
| 38 | vendor: true, |
Jorge E. Moreira | f620dcc | 2020-06-22 11:54:50 -0700 | [diff] [blame] | 39 | srcs: [ |
| 40 | "pffft.c", |
Jiyong Park | 8d3268f | 2020-09-22 13:19:11 +0900 | [diff] [blame] | 41 | "pffft_common.c", |
Jorge E. Moreira | f620dcc | 2020-06-22 11:54:50 -0700 | [diff] [blame] | 42 | ], |
| 43 | local_include_dirs: ["."], |
| 44 | export_include_dirs: ["."], |
| 45 | host_supported: true, |
Jorge E. Moreira | f620dcc | 2020-06-22 11:54:50 -0700 | [diff] [blame] | 46 | visibility: ["//external/webrtc:__subpackages__"], |
Harish Mahendrakar | 799b561 | 2020-09-22 21:39:23 -0700 | [diff] [blame] | 47 | cflags: [ |
| 48 | "-Wno-#pragma-messages", |
| 49 | ], |
Jiyong Park | 8d3268f | 2020-09-22 13:19:11 +0900 | [diff] [blame] | 50 | arch: { |
Harish Mahendrakar | 799b561 | 2020-09-22 21:39:23 -0700 | [diff] [blame] | 51 | arm: { |
| 52 | cflags: ["-DPFFFT_ENABLE_NEON"], |
| 53 | }, |
Jiyong Park | 8d3268f | 2020-09-22 13:19:11 +0900 | [diff] [blame] | 54 | arm64: { |
| 55 | cflags: ["-DPFFFT_ENABLE_NEON"], |
Jiyong Park | 94eba54 | 2020-09-18 16:29:45 +0900 | [diff] [blame] | 56 | }, |
| 57 | }, |
Jorge E. Moreira | f620dcc | 2020-06-22 11:54:50 -0700 | [diff] [blame] | 58 | } |