Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 1 | cc_library_static { |
| 2 | name: "libpdx", |
| 3 | clang: true, |
| 4 | cflags: [ |
| 5 | "-Wall", |
| 6 | "-Wextra", |
| 7 | "-Werror", |
Alex Vakulenko | 5a244ed | 2017-06-09 16:29:04 -0700 | [diff] [blame] | 8 | "-DLOG_TAG=\"libpdx\"", |
| 9 | "-DTRACE=0", |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 10 | ], |
Chih-Hung Hsieh | 94574f2 | 2018-02-07 21:14:19 -0800 | [diff] [blame^] | 11 | arch: { |
| 12 | arm: { |
| 13 | instruction_set: "arm", |
| 14 | }, |
| 15 | }, |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 16 | export_include_dirs: ["private"], |
| 17 | local_include_dirs: ["private"], |
| 18 | srcs: [ |
| 19 | "client.cpp", |
| 20 | "service.cpp", |
Alex Vakulenko | 5a244ed | 2017-06-09 16:29:04 -0700 | [diff] [blame] | 21 | "service_dispatcher.cpp", |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 22 | "status.cpp", |
| 23 | ], |
Jiwen 'Steve' Cai | 0f95084 | 2018-01-16 17:05:54 -0800 | [diff] [blame] | 24 | shared_libs: [ |
| 25 | "libbinder", |
| 26 | "libcutils", |
| 27 | "libutils", |
| 28 | "liblog", |
| 29 | ], |
| 30 | vendor_available: false, |
| 31 | vndk: { |
| 32 | enabled: true, |
| 33 | }, |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | cc_test { |
| 37 | name: "pdx_tests", |
| 38 | clang: true, |
| 39 | cflags: [ |
| 40 | "-Wall", |
| 41 | "-Wextra", |
| 42 | "-Werror", |
| 43 | ], |
| 44 | srcs: [ |
| 45 | "client_tests.cpp", |
| 46 | "mock_tests.cpp", |
| 47 | "serialization_tests.cpp", |
| 48 | "service_tests.cpp", |
| 49 | "status_tests.cpp", |
| 50 | "thread_local_buffer_tests.cpp", |
| 51 | "variant_tests.cpp", |
| 52 | ], |
| 53 | static_libs: [ |
Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 54 | "libcutils", |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 55 | "libgmock", |
| 56 | "libpdx", |
| 57 | "liblog", |
| 58 | "libutils", |
Jiyong Park | 059ceb2 | 2017-05-27 15:29:41 +0900 | [diff] [blame] | 59 | "libvndksupport", |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 60 | ], |
| 61 | } |
| 62 | |
| 63 | // Code analysis target. |
| 64 | cc_test { |
| 65 | name: "pdx_encoder_performance_test", |
| 66 | clang: true, |
| 67 | cflags: [ |
| 68 | "-Wall", |
| 69 | "-Wextra", |
| 70 | "-Werror", |
| 71 | "-O2", |
| 72 | ], |
| 73 | srcs: [ |
| 74 | "encoder_performance_test.cpp", |
| 75 | ], |
| 76 | static_libs: [ |
| 77 | "libpdx", |
| 78 | ], |
| 79 | } |