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", |
Steven Moreland | 9990de1 | 2017-04-13 23:27:20 -0700 | [diff] [blame^] | 11 | vendor_available: true, |
Dan Willemsen | 194edf7 | 2016-08-26 15:01:36 -0700 | [diff] [blame] | 12 | defaults: ["libsync_defaults"], |
| 13 | } |
| 14 | |
| 15 | // libsync_recovery is only intended for the recovery binary. |
| 16 | // Future versions of the kernel WILL require an updated libsync, and will break |
| 17 | // anything statically linked against the current libsync. |
| 18 | cc_library_static { |
| 19 | name: "libsync_recovery", |
| 20 | defaults: ["libsync_defaults"], |
| 21 | } |
| 22 | |
| 23 | cc_test { |
| 24 | name: "sync_test", |
| 25 | defaults: ["libsync_defaults"], |
| 26 | gtest: false, |
| 27 | srcs: ["sync_test.c"], |
| 28 | } |
| 29 | |
| 30 | cc_test { |
| 31 | name: "sync-unit-tests", |
| 32 | shared_libs: ["libsync"], |
| 33 | srcs: ["tests/sync_test.cpp"], |
| 34 | cflags: [ |
| 35 | "-g", |
| 36 | "-Wall", |
| 37 | "-Werror", |
Dan Willemsen | 194edf7 | 2016-08-26 15:01:36 -0700 | [diff] [blame] | 38 | "-Wno-missing-field-initializers", |
| 39 | "-Wno-sign-compare", |
| 40 | ], |
| 41 | clang: true, |
| 42 | } |