1ndk_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", 11 symbol_file: "libsync.map.txt", 12 first_version: "26", 13} 14 15cc_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 28llndk_library { 29 name: "libsync", 30 symbol_file: "libsync.map.txt", 31 export_include_dirs: ["include"], 32} 33 34// 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 { 43 name: "sync_test", 44 defaults: ["libsync_defaults"], 45 gtest: false, 46 srcs: ["sync_test.c"], 47} 48 49cc_test { 50 name: "sync-unit-tests", 51 shared_libs: ["libsync"], 52 srcs: ["tests/sync_test.cpp"], 53 cflags: [ 54 "-g", 55 "-Wall", 56 "-Werror", 57 "-Wno-missing-field-initializers", 58 "-Wno-sign-compare", 59 ], 60} 61