Dan Willemsen | 7d29531 | 2018-11-16 23:08:20 -0800 | [diff] [blame] | 1 | // We only build the static library at the moment. |
Bob Badour | 32cccff | 2021-02-12 17:32:33 -0800 | [diff] [blame] | 2 | package { |
| 3 | default_applicable_licenses: ["external_libutf_license"], |
| 4 | } |
| 5 | |
| 6 | // Added automatically by a large-scale-change that took the approach of |
| 7 | // 'apply every license found to every target'. While this makes sure we respect |
| 8 | // every license restriction, it may not be entirely correct. |
| 9 | // |
| 10 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 11 | // |
| 12 | // Please consider splitting the single license below into multiple licenses, |
| 13 | // taking care not to lose any license_kind information, and overriding the |
| 14 | // default license using the 'licenses: [...]' property on targets as needed. |
| 15 | // |
| 16 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 17 | // to attach the license to, and including a comment whether the files may be |
| 18 | // used in the current project. |
| 19 | // See: http://go/android-license-faq |
| 20 | license { |
| 21 | name: "external_libutf_license", |
| 22 | visibility: [":__subpackages__"], |
| 23 | license_kinds: [ |
| 24 | "SPDX-license-identifier-LPL-1.02", |
| 25 | "SPDX-license-identifier-MIT", |
| 26 | ], |
| 27 | license_text: [ |
| 28 | "NOTICE", |
| 29 | ], |
| 30 | } |
| 31 | |
Dan Willemsen | 7d29531 | 2018-11-16 23:08:20 -0800 | [diff] [blame] | 32 | cc_library_static { |
| 33 | name: "libutf", |
| 34 | srcs: [ |
| 35 | "rune.c", |
| 36 | "runestrcat.c", |
| 37 | "runestrchr.c", |
| 38 | "runestrcmp.c", |
| 39 | "runestrcpy.c", |
| 40 | "runestrdup.c", |
| 41 | "runestrlen.c", |
| 42 | "runestrecpy.c", |
| 43 | "runestrncat.c", |
| 44 | "runestrncmp.c", |
| 45 | "runestrncpy.c", |
| 46 | "runestrrchr.c", |
| 47 | "runestrstr.c", |
| 48 | "runetype.c", |
| 49 | "utfecpy.c", |
| 50 | "utflen.c", |
| 51 | "utfnlen.c", |
| 52 | "utfrrune.c", |
| 53 | "utfrune.c", |
| 54 | "utfutf.c", |
| 55 | ], |
| 56 | cflags: [ |
| 57 | "-O3", |
| 58 | "-Wall", |
| 59 | "-Wno-missing-braces", |
| 60 | "-Wno-parentheses", |
| 61 | "-Wno-switch", |
| 62 | ], |
| 63 | export_include_dirs: ["."], |
| 64 | arch: { |
| 65 | arm: { |
| 66 | instruction_set: "arm", |
| 67 | }, |
| 68 | }, |
| 69 | sdk_version: "14", |
Alexander Dorokhine | 7ff0430 | 2022-02-23 23:59:27 -0800 | [diff] [blame] | 70 | min_sdk_version: "14", |
Jiyong Park | bd276cc | 2020-04-28 17:10:45 +0900 | [diff] [blame] | 71 | apex_available: [ |
| 72 | "//apex_available:platform", |
Alexander Dorokhine | 9f463d4 | 2021-06-18 15:13:35 -0700 | [diff] [blame] | 73 | "com.android.appsearch", |
Jiyong Park | bd276cc | 2020-04-28 17:10:45 +0900 | [diff] [blame] | 74 | "com.android.extservices", |
| 75 | ], |
Dan Willemsen | 7d29531 | 2018-11-16 23:08:20 -0800 | [diff] [blame] | 76 | } |