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