1package {
2    default_applicable_licenses: ["system_core_libsync_license"],
3}
4
5// Added automatically by a large-scale-change
6// See: http://go/android-license-faq
7license {
8    name: "system_core_libsync_license",
9    visibility: [":__subpackages__"],
10    license_kinds: [
11        "SPDX-license-identifier-Apache-2.0",
12    ],
13    license_text: [
14        "NOTICE",
15    ],
16}
17
18ndk_headers {
19    name: "libsync_headers",
20    from: "include/ndk",
21    to: "android",
22    srcs: ["include/ndk/sync.h"],
23    license: "NOTICE",
24}
25
26ndk_library {
27    name: "libsync",
28    symbol_file: "libsync.map.txt",
29    first_version: "26",
30}
31
32cc_defaults {
33    name: "libsync_defaults",
34    srcs: ["sync.c"],
35    local_include_dirs: ["include"],
36    export_include_dirs: ["include"],
37    cflags: ["-Werror"],
38}
39
40cc_library {
41    name: "libsync",
42    recovery_available: true,
43    native_bridge_supported: true,
44    defaults: ["libsync_defaults"],
45    llndk: {
46        symbol_file: "libsync.map.txt",
47    },
48    stubs: {
49        symbol_file: "libsync.map.txt",
50        versions: [
51            "26",
52        ],
53    },
54}
55
56cc_test {
57    name: "sync-unit-tests",
58    shared_libs: ["libsync"],
59    srcs: ["tests/sync_test.cpp"],
60    cflags: [
61        "-g",
62        "-Wall",
63        "-Werror",
64        "-Wno-missing-field-initializers",
65        "-Wno-sign-compare",
66    ],
67}
68