Daniel Rosenberg | 9dfb4f6 | 2021-06-10 03:53:52 +0000 | [diff] [blame] | 1 | // Copyright 2020 The Android Open Source Project |
| 2 | |
Bob Badour | 8a23710 | 2021-07-07 12:15:27 -0700 | [diff] [blame] | 3 | package { |
| 4 | default_applicable_licenses: ["external_exfatprogs_license"], |
| 5 | } |
| 6 | |
| 7 | // Added automatically by a large-scale-change that took the approach of |
| 8 | // 'apply every license found to every target'. While this makes sure we respect |
| 9 | // every license restriction, it may not be entirely correct. |
| 10 | // |
| 11 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 12 | // |
| 13 | // Please consider splitting the single license below into multiple licenses, |
| 14 | // taking care not to lose any license_kind information, and overriding the |
| 15 | // default license using the 'licenses: [...]' property on targets as needed. |
| 16 | // |
| 17 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 18 | // to attach the license to, and including a comment whether the files may be |
| 19 | // used in the current project. |
| 20 | // See: http://go/android-license-faq |
| 21 | license { |
| 22 | name: "external_exfatprogs_license", |
| 23 | visibility: [":__subpackages__"], |
| 24 | license_kinds: [ |
| 25 | "SPDX-license-identifier-GPL", |
| 26 | "SPDX-license-identifier-GPL-2.0", |
| 27 | "SPDX-license-identifier-LGPL", |
| 28 | ], |
| 29 | license_text: [ |
| 30 | "COPYING", |
| 31 | ], |
| 32 | } |
| 33 | |
Daniel Rosenberg | 9dfb4f6 | 2021-06-10 03:53:52 +0000 | [diff] [blame] | 34 | cc_library_headers { |
| 35 | name: "libexfatprogs-headers", |
| 36 | export_include_dirs: [ |
| 37 | "include", |
| 38 | "mkfs", |
| 39 | "fsck", |
| 40 | "tune", |
| 41 | "label", |
| 42 | "dump", |
| 43 | ], |
| 44 | } |
| 45 | |
| 46 | cc_defaults { |
| 47 | name: "exfatprogs-defaults", |
| 48 | header_libs: ["libexfatprogs-headers"], |
| 49 | export_header_lib_headers: ["libexfatprogs-headers"], |
Daniel Rosenberg | b0d3894 | 2021-06-10 03:53:52 +0000 | [diff] [blame] | 50 | cflags: [ |
| 51 | "-D_FILE_OFFSET_BITS=64", |
| 52 | "-Wno-unused-parameter", |
| 53 | ], |
Daniel Rosenberg | 9dfb4f6 | 2021-06-10 03:53:52 +0000 | [diff] [blame] | 54 | } |