1// We only build the static library at the moment.
2package {
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
32cc_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",
70
71    apex_available: [
72        "//apex_available:platform",
73        "com.android.appsearch",
74        "com.android.extservices",
75    ],
76}
77