• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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
14base_root = "../../../../../../../"
15import("//build/ohos.gni")
16import("//build/ohos_var.gni")
17import("//build/test.gni")
18import("//test/xts/tools/build/suite.gni")
19import("$base_root/drivers/peripheral/camera/camera.gni")
20module_output_path = "hats/camera"
21
22ohos_moduletest_suite("HatsHdfCameraEnumTest") {
23  configs = [ ":hdf_cameraenum" ]
24  module_out_path = module_output_path
25  sources = [ "./src/camera_metadata_enum_test.cpp" ]
26  deps = [
27    "//third_party/googletest:gmock_main",
28    "//third_party/googletest:gtest",
29    "//third_party/googletest:gtest_main",
30  ]
31
32  if (is_standard_system) {
33    external_deps = [
34      "c_utils:utils",
35      "hdf_core:libhdf_host",
36      "hdf_core:libhdf_ipc_adapter",
37      "hdf_core:libhdf_utils",
38      "hdf_core:libhdi",
39      "hilog:libhilog",
40      "ipc:ipc_single",
41    ]
42  } else {
43    external_deps = [ "hilog:libhilog" ]
44  }
45
46  external_deps += [
47    "drivers_interface_camera:libcamera_proxy_1.3",
48    "graphic_surface:surface",
49  ]
50
51  subsystem_name = "hdf"
52  part_name = "drivers_interface_camera"
53}
54config("hdf_cameraenum") {
55  include_dirs = [
56    "./include",
57    "//third_party/googletest/googletest/include",
58    "$camera_path/../../interfaces/include",
59    "$camera_path/include",
60  ]
61}
62