blob: 6f844cf864327e5244b435d5ca2c3679043b8eed [file] [log] [blame]
Jim Shargo452c84e2023-08-07 16:46:45 +00001// Copyright (C) 2023 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_defaults {
16 name: "nativewindow_benchmark_defaults_cc",
17 shared_libs: ["libnativewindow"],
18 static_libs: [
19 "libbase",
20 "libgoogle-benchmark-main",
21 ],
22 test_suites: [
23 "device-tests",
24 "NativeWindowBenchmarks",
25 ],
26}
27
28cc_benchmark {
29 name: "nativewindow_buffer_benchmarks_cc",
30 srcs: ["buffer_benchmarks.cc"],
31 defaults: ["nativewindow_benchmark_defaults_cc"],
32}
33
34rust_defaults {
35 name: "nativewindow_benchmark_defaults_rs",
36 rustlibs: [
37 "libnativewindow_rs",
38 "libcriterion",
39 ],
40 test_suites: [
41 "device-tests",
42 "NativeWindowBenchmarks",
43 ],
44}
45
46rust_benchmark {
47 name: "nativewindow_buffer_benchmarks_rs",
48 srcs: ["buffer_benchmarks.rs"],
49 defaults: ["nativewindow_benchmark_defaults_rs"],
50}