1// 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 15package { 16 default_applicable_licenses: ["frameworks_native_license"], 17 default_team: "trendy_team_android_core_graphics_stack", 18} 19 20cc_defaults { 21 name: "nativewindow_benchmark_defaults_cc", 22 shared_libs: ["libnativewindow"], 23 static_libs: [ 24 "libbase", 25 "libgoogle-benchmark-main", 26 ], 27 test_suites: [ 28 "device-tests", 29 "NativeWindowBenchmarks", 30 ], 31} 32 33cc_benchmark { 34 name: "nativewindow_buffer_benchmarks_cc", 35 srcs: ["buffer_benchmarks.cc"], 36 defaults: ["nativewindow_benchmark_defaults_cc"], 37} 38 39rust_defaults { 40 name: "nativewindow_benchmark_defaults_rs", 41 rustlibs: [ 42 "libnativewindow_rs", 43 "libcriterion", 44 ], 45 test_suites: [ 46 "device-tests", 47 "NativeWindowBenchmarks", 48 ], 49} 50 51rust_benchmark { 52 name: "nativewindow_buffer_benchmarks_rs", 53 srcs: ["buffer_benchmarks.rs"], 54 defaults: ["nativewindow_benchmark_defaults_rs"], 55} 56