| Dan Willemsen | 194edf7 | 2016-08-26 15:01:36 -0700 | [diff] [blame] | 1 | cc_defaults { | 
|  | 2 | name: "libsync_defaults", | 
|  | 3 | srcs: ["sync.c"], | 
|  | 4 | local_include_dirs: ["include"], | 
|  | 5 | export_include_dirs: ["include"], | 
|  | 6 | cflags: ["-Werror"], | 
|  | 7 | } | 
|  | 8 |  | 
|  | 9 | cc_library_shared { | 
|  | 10 | name: "libsync", | 
|  | 11 | defaults: ["libsync_defaults"], | 
|  | 12 | } | 
|  | 13 |  | 
|  | 14 | // libsync_recovery is only intended for the recovery binary. | 
|  | 15 | // Future versions of the kernel WILL require an updated libsync, and will break | 
|  | 16 | // anything statically linked against the current libsync. | 
|  | 17 | cc_library_static { | 
|  | 18 | name: "libsync_recovery", | 
|  | 19 | defaults: ["libsync_defaults"], | 
|  | 20 | } | 
|  | 21 |  | 
|  | 22 | cc_test { | 
|  | 23 | name: "sync_test", | 
|  | 24 | defaults: ["libsync_defaults"], | 
|  | 25 | gtest: false, | 
|  | 26 | srcs: ["sync_test.c"], | 
|  | 27 | } | 
|  | 28 |  | 
|  | 29 | cc_test { | 
|  | 30 | name: "sync-unit-tests", | 
|  | 31 | shared_libs: ["libsync"], | 
|  | 32 | srcs: ["tests/sync_test.cpp"], | 
|  | 33 | cflags: [ | 
|  | 34 | "-g", | 
|  | 35 | "-Wall", | 
|  | 36 | "-Werror", | 
| Dan Willemsen | 194edf7 | 2016-08-26 15:01:36 -0700 | [diff] [blame] | 37 | "-Wno-missing-field-initializers", | 
|  | 38 | "-Wno-sign-compare", | 
|  | 39 | ], | 
|  | 40 | clang: true, | 
|  | 41 | } |