blob: b293da4ad15c84c9eade63aa8f1d852bb9a846e9 [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 {
10 name: "libsync.ndk",
11 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
28// libsync_recovery is only intended for the recovery binary.
29// Future versions of the kernel WILL require an updated libsync, and will break
30// anything statically linked against the current libsync.
31cc_library_static {
32 name: "libsync_recovery",
33 defaults: ["libsync_defaults"],
34}
35
36cc_test {
37 name: "sync_test",
38 defaults: ["libsync_defaults"],
39 gtest: false,
40 srcs: ["sync_test.c"],
41}
42
43cc_test {
44 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 ],
54 clang: true,
55}