blob: dbee5964d76ad0d4ff7bab9786d35985c4460387 [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",
Jerry Zhang9b663302018-07-17 12:15:57 -070039 recovery_available: true,
Dan Willemsen194edf72016-08-26 15:01:36 -070040 defaults: ["libsync_defaults"],
41}
42
43cc_test {
Dan Willemsen194edf72016-08-26 15:01:36 -070044 name: "sync-unit-tests",
45 shared_libs: ["libsync"],
46 srcs: ["tests/sync_test.cpp"],
47 cflags: [
48 "-g",
49 "-Wall",
50 "-Werror",
Dan Willemsen194edf72016-08-26 15:01:36 -070051 "-Wno-missing-field-initializers",
52 "-Wno-sign-compare",
53 ],
Dan Willemsen194edf72016-08-26 15:01:36 -070054}