blob: 257d42deb4b3ade0b6a8b5d99abc2d6a31cb39d6 [file] [log] [blame]
Jesse Hall081806e2017-02-11 22:50:02 -08001ndk_headers {
2 name: "libsync_headers",
3 from: "include/ndk",
4 to: "android",
5 srcs: ["include/ndk/sync.h"],
6 license: "NOTICE",
7}
8
9ndk_library {
Steven Morelanddb9b2602017-04-10 12:58:03 -070010 name: "libsync",
Jesse Hall081806e2017-02-11 22:50:02 -080011 symbol_file: "libsync.map.txt",
12 first_version: "26",
13}
14
Dan Willemsen194edf72016-08-26 15:01:36 -070015cc_defaults {
16 name: "libsync_defaults",
17 srcs: ["sync.c"],
18 local_include_dirs: ["include"],
19 export_include_dirs: ["include"],
20 cflags: ["-Werror"],
21}
22
23cc_library_shared {
24 name: "libsync",
Steven Morelandd0b26ed2017-04-13 23:27:20 -070025 vendor_available: true,
Dan Willemsen194edf72016-08-26 15:01:36 -070026 defaults: ["libsync_defaults"],
27}
28
29// libsync_recovery is only intended for the recovery binary.
30// Future versions of the kernel WILL require an updated libsync, and will break
31// anything statically linked against the current libsync.
32cc_library_static {
33 name: "libsync_recovery",
34 defaults: ["libsync_defaults"],
35}
36
37cc_test {
38 name: "sync_test",
39 defaults: ["libsync_defaults"],
40 gtest: false,
41 srcs: ["sync_test.c"],
42}
43
44cc_test {
45 name: "sync-unit-tests",
46 shared_libs: ["libsync"],
47 srcs: ["tests/sync_test.cpp"],
48 cflags: [
49 "-g",
50 "-Wall",
51 "-Werror",
Dan Willemsen194edf72016-08-26 15:01:36 -070052 "-Wno-missing-field-initializers",
53 "-Wno-sign-compare",
54 ],
55 clang: true,
56}