1package { 2 default_applicable_licenses: ["system_core_libsync_license"], 3} 4 5// Added automatically by a large-scale-change 6// See: http://go/android-license-faq 7license { 8 name: "system_core_libsync_license", 9 visibility: [":__subpackages__"], 10 license_kinds: [ 11 "SPDX-license-identifier-Apache-2.0", 12 ], 13 license_text: [ 14 "NOTICE", 15 ], 16} 17 18ndk_headers { 19 name: "libsync_headers", 20 from: "include/ndk", 21 to: "android", 22 srcs: ["include/ndk/sync.h"], 23 license: "NOTICE", 24} 25 26ndk_library { 27 name: "libsync", 28 symbol_file: "libsync.map.txt", 29 first_version: "26", 30 export_header_libs: [ 31 "libsync_headers", 32 ], 33} 34 35cc_defaults { 36 name: "libsync_defaults", 37 srcs: ["sync.c"], 38 local_include_dirs: ["include"], 39 export_include_dirs: ["include"], 40 cflags: ["-Werror"], 41} 42 43cc_library { 44 name: "libsync", 45 recovery_available: true, 46 native_bridge_supported: true, 47 defaults: ["libsync_defaults"], 48 llndk: { 49 symbol_file: "libsync.map.txt", 50 }, 51 stubs: { 52 symbol_file: "libsync.map.txt", 53 versions: [ 54 "26", 55 ], 56 }, 57} 58 59cc_test { 60 name: "sync-unit-tests", 61 shared_libs: ["libsync"], 62 srcs: ["tests/sync_test.cpp"], 63 cflags: [ 64 "-g", 65 "-Wall", 66 "-Werror", 67 "-Wno-missing-field-initializers", 68 "-Wno-sign-compare", 69 ], 70} 71