1package { 2 default_applicable_licenses: ["test_dittosuite_license"], 3} 4 5// See: http://go/android-license-faq 6license { 7 name: "test_dittosuite_license", 8 visibility: [":__subpackages__"], 9 license_kinds: [ 10 "SPDX-license-identifier-Apache-2.0", 11 ], 12 license_text: [ 13 "LICENSE", 14 ], 15} 16 17cc_defaults { 18 name: "dittobench_defaults", 19 local_include_dirs: [ 20 "test/include", 21 "include", 22 ], 23 generated_headers: ["dittosuite-proto"], 24 static_libs: ["dittosuite-proto", "libbase_ndk"], 25 shared_libs: ["libprotobuf-cpp-full", "liblog"], 26 cflags: [ 27 "-Wall", 28 "-Werror", 29 "-Wextra", 30 "-Wsign-compare", 31 ], 32 tidy: true, 33 /* 34 Silencing the tidy check warnings caused by 35 schema/benchmark.pb.h. 36 */ 37 tidy_checks: [ 38 "-bugprone-unhandled-self-assignment", 39 "-cert-msc32-c", 40 "-cert-msc51-cpp", 41 "-cert-oop54-cpp", 42 ], 43} 44 45cc_library { 46 name: "libdittosuite", 47 srcs: [ 48 "src/*.cpp", 49 ], 50 defaults: ["dittobench_defaults"], 51} 52 53cc_binary { 54 name: "dittobench", 55 srcs: ["dittobench.cpp"], 56 static_libs: ["libdittosuite"], 57 defaults: ["dittobench_defaults"], 58} 59 60cc_benchmark { 61 name: "dittobench_benchmark", 62 srcs: ["dittobench_benchmark.cpp"], 63 static_libs: [ 64 "libtestUtil", 65 "libdittosuite", 66 "libc++fs", 67 ], 68 shared_libs: [ 69 "libbase", 70 "libcutils", 71 "libutils", 72 "liblog", 73 ], 74 data: ["example/**/*.ditto"], 75 test_suites: ["device-tests"], 76 defaults: ["dittobench_defaults"], 77} 78 79cc_binary { 80 name: "dittotrace", 81 srcs: ["dittotrace.cpp"], 82 static_libs: ["libdittosuite"], 83 defaults: ["dittobench_defaults"], 84} 85 86cc_test { 87 name: "dittobench_test", 88 srcs: [ 89 "test/*.cpp", 90 ], 91 static_libs: ["libdittosuite", "libgmock"], 92 defaults: ["dittobench_defaults"], 93 data: ["example/*"], 94} 95