blob: a4e55992ce12af1ba7cad225b89485d846ec7fe1 [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",
11 defaults: ["libsync_defaults"],
12}
13
14// libsync_recovery is only intended for the recovery binary.
15// Future versions of the kernel WILL require an updated libsync, and will break
16// anything statically linked against the current libsync.
17cc_library_static {
18 name: "libsync_recovery",
19 defaults: ["libsync_defaults"],
20}
21
22cc_test {
23 name: "sync_test",
24 defaults: ["libsync_defaults"],
25 gtest: false,
26 srcs: ["sync_test.c"],
27}
28
29cc_test {
30 name: "sync-unit-tests",
31 shared_libs: ["libsync"],
32 srcs: ["tests/sync_test.cpp"],
33 cflags: [
34 "-g",
35 "-Wall",
36 "-Werror",
Dan Willemsen194edf72016-08-26 15:01:36 -070037 "-Wno-missing-field-initializers",
38 "-Wno-sign-compare",
39 ],
40 clang: true,
41}