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 { 24 name: "libsync", 25 recovery_available: true, 26 defaults: ["libsync_defaults"], 27} 28 29llndk_library { 30 name: "libsync", 31 symbol_file: "libsync.map.txt", 32 export_include_dirs: ["include"], 33} 34 35cc_test { 36 name: "sync-unit-tests", 37 shared_libs: ["libsync"], 38 srcs: ["tests/sync_test.cpp"], 39 cflags: [ 40 "-g", 41 "-Wall", 42 "-Werror", 43 "-Wno-missing-field-initializers", 44 "-Wno-sign-compare", 45 ], 46} 47