blob: c95563dff05c19dce7ba1391e73e4547aaabe0a3 [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 Parkb87f8842017-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 {
Dan Willemsen194edf72016-08-26 15:01:36 -070043 name: "sync-unit-tests",
44 shared_libs: ["libsync"],
45 srcs: ["tests/sync_test.cpp"],
46 cflags: [
47 "-g",
48 "-Wall",
49 "-Werror",
Dan Willemsen194edf72016-08-26 15:01:36 -070050 "-Wno-missing-field-initializers",
51 "-Wno-sign-compare",
52 ],
Dan Willemsen194edf72016-08-26 15:01:36 -070053}