blob: 8b307941370bb627cedd99c238d82bea9376cb7b [file] [log] [blame]
Dan Willemsen7d295312018-11-16 23:08:20 -08001// We only build the static library at the moment.
Bob Badour32cccff2021-02-12 17:32:33 -08002package {
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
20license {
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 Willemsen7d295312018-11-16 23:08:20 -080032cc_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 Dorokhine7ff04302022-02-23 23:59:27 -080070 min_sdk_version: "14",
Jiyong Parkbd276cc2020-04-28 17:10:45 +090071 apex_available: [
72 "//apex_available:platform",
Alexander Dorokhine9f463d42021-06-18 15:13:35 -070073 "com.android.appsearch",
Jiyong Parkbd276cc2020-04-28 17:10:45 +090074 "com.android.extservices",
75 ],
Dan Willemsen7d295312018-11-16 23:08:20 -080076}