blob: 3fae5e66940387a68fb5db783a052e3db92c8ef6 [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",
25 defaults: ["libsync_defaults"],
26}
27
Jiyong Park058e0912017-08-14 15:21:28 +090028llndk_library {
29 name: "libsync",
30 symbol_file: "libsync.map.txt",
31 export_include_dirs: ["include"],
32}
33
Dan Willemsen194edf72016-08-26 15:01:36 -070034// libsync_recovery is only intended for the recovery binary.
35// Future versions of the kernel WILL require an updated libsync, and will break
36// anything statically linked against the current libsync.
37cc_library_static {
38 name: "libsync_recovery",
39 defaults: ["libsync_defaults"],
40}
41
42cc_test {
43 name: "sync_test",
44 defaults: ["libsync_defaults"],
45 gtest: false,
46 srcs: ["sync_test.c"],
47}
48
49cc_test {
50 name: "sync-unit-tests",
51 shared_libs: ["libsync"],
52 srcs: ["tests/sync_test.cpp"],
53 cflags: [
54 "-g",
55 "-Wall",
56 "-Werror",
Dan Willemsen194edf72016-08-26 15:01:36 -070057 "-Wno-missing-field-initializers",
58 "-Wno-sign-compare",
59 ],
Dan Willemsen194edf72016-08-26 15:01:36 -070060}