blob: 4bafb085430ca8c927c1421cd6bef8601aa36113 [file] [log] [blame]
Dan Willemsen194edf72016-08-26 15:01:36 -07001cc_defaults {
2 name: "libsync_defaults",
3 srcs: ["sync.c"],
4 local_include_dirs: ["include"],
5 export_include_dirs: ["include"],
6 cflags: ["-Werror"],
7}
8
9cc_library_shared {
10 name: "libsync",
Steven Moreland9990de12017-04-13 23:27:20 -070011 vendor_available: true,
Dan Willemsen194edf72016-08-26 15:01:36 -070012 defaults: ["libsync_defaults"],
13}
14
15// libsync_recovery is only intended for the recovery binary.
16// Future versions of the kernel WILL require an updated libsync, and will break
17// anything statically linked against the current libsync.
18cc_library_static {
19 name: "libsync_recovery",
20 defaults: ["libsync_defaults"],
21}
22
23cc_test {
24 name: "sync_test",
25 defaults: ["libsync_defaults"],
26 gtest: false,
27 srcs: ["sync_test.c"],
28}
29
30cc_test {
31 name: "sync-unit-tests",
32 shared_libs: ["libsync"],
33 srcs: ["tests/sync_test.cpp"],
34 cflags: [
35 "-g",
36 "-Wall",
37 "-Werror",
Dan Willemsen194edf72016-08-26 15:01:36 -070038 "-Wno-missing-field-initializers",
39 "-Wno-sign-compare",
40 ],
41 clang: true,
42}