• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
14import("//build/lite/config/test.gni")
15
16unittest("hdf_peripheral_sensor_test_performance") {
17  output_extension = "bin"
18  output_dir = "$root_out_dir/test/unittest/hdf"
19  include_dirs = [
20    "//third_party/bounds_checking_function/include",
21    "//drivers/framework/include/platform",
22    "//drivers/framework/include/core",
23    "//drivers/framework/include/osal",
24    "//drivers/framework/include/utils",
25    "//drivers/peripheral/sensor/interfaces/include",
26    "//drivers/adapter/uhdf/posix/include",
27    "//drivers/framework/test/unittest/include",
28  ]
29
30  sources = [ "./common/hdf_sensor_performance_test.cpp" ]
31  cflags = [
32    "-Wall",
33    "-Wextra",
34    "-Werror",
35    "-fsigned-char",
36    "-fno-common",
37    "-fno-strict-aliasing",
38  ]
39  if (ohos_build_compiler != "clang") {
40    cflags += [
41      "-Wno-format",
42      "-Wno-format-extra-args",
43    ]
44  }
45  deps = [
46    "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
47    "//drivers/adapter/uhdf/manager:hdf_core",
48    "//drivers/adapter/uhdf/posix:hdf_posix_osal",
49    "//drivers/adapter/uhdf/test/unittest/common:hdf_test_common",
50    "//drivers/peripheral/sensor/hal:hdi_sensor",
51  ]
52  public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
53}
54