1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14HDF_CORE_PATH = "../../../../hdf_core"
15import("//build/lite/config/test.gni")
16
17unittest("hdf_peripheral_sensor_test_performance") {
18  output_extension = "bin"
19  output_dir = "$root_out_dir/test/unittest/hdf"
20  include_dirs = [ "../../interfaces/include" ]
21
22  sources = [ "./common/hdf_sensor_performance_test.cpp" ]
23  cflags = [
24    "-Wall",
25    "-Wextra",
26    "-Werror",
27    "-fsigned-char",
28    "-fno-common",
29    "-fno-strict-aliasing",
30  ]
31  if (ohos_build_compiler != "clang") {
32    cflags += [
33      "-Wno-format",
34      "-Wno-format-extra-args",
35    ]
36  }
37  public_deps = [
38    "$HDF_CORE_PATH/adapter/uhdf/manager:hdf_core",
39    "$HDF_CORE_PATH/adapter/uhdf/posix:hdf_posix_osal",
40    "$HDF_CORE_PATH/adapter/uhdf/test/unittest/common:hdf_test_common",
41    "../../hal:hdi_sensor",
42    "//third_party/bounds_checking_function:libsec_shared",
43  ]
44  external_deps = [ "hilog_lite:hilog_shared" ]
45}
46