• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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/test.gni")
15
16module_output_path = "hdf_core/load_vdi"
17ohos_unittest("hdf_load_vdi_test") {
18  module_out_path = module_output_path
19
20  include_dirs = [ "../../../../../framework/core/host/test/sample" ]
21
22  sources =
23      [ "../../../../../framework/core/host/test/unittest/hdf_vdi_test.cpp" ]
24  if (target_cpu == "arm64" || target_cpu == "x86_64") {
25    resource_config_file = "../../resource/load_vdi/arch64/ohos_test.xml"
26  } else {
27    resource_config_file = "../../resource/load_vdi/arch32/ohos_test.xml"
28  }
29  deps = [
30    ":libvdi_sample1_driver",
31    ":libvdi_sample1_symbol",
32    ":libvdi_sample2_driver",
33    "../../../host:libhdf_host",
34    "../../../utils:libhdf_utils",
35  ]
36  external_deps = [
37    "c_utils:utils",
38    "hilog:libhilog",
39  ]
40}
41
42ohos_shared_library("libvdi_sample1_driver") {
43  include_dirs = [ "../../../../../framework/core/host/test/sample" ]
44
45  sources =
46      [ "../../../../../framework/core/host/test/sample/vdi_sample1_driver.c" ]
47  install_images = [ chipset_base_dir ]
48  subsystem_name = "hdf"
49  part_name = "hdf_core"
50  deps = [
51    "../../../host:libhdf_host",
52    "../../../utils:libhdf_utils",
53  ]
54  external_deps = [ "hilog:libhilog" ]
55}
56
57ohos_shared_library("libvdi_sample1_symbol") {
58  include_dirs = [ "../../../../../framework/core/host/test/sample" ]
59
60  sources =
61      [ "../../../../../framework/core/host/test/sample/vdi_sample1_symbol.c" ]
62  install_images = [ chipset_base_dir ]
63  subsystem_name = "hdf"
64  part_name = "hdf_core"
65  deps = [
66    "../../../host:libhdf_host",
67    "../../../utils:libhdf_utils",
68  ]
69  external_deps = [ "hilog:libhilog" ]
70}
71
72ohos_shared_library("libvdi_sample2_driver") {
73  include_dirs = [ "../../../../../framework/core/host/test/sample" ]
74
75  sources = [
76    "../../../../../framework/core/host/test/sample/vdi_sample2_driver.cpp",
77  ]
78  install_images = [ chipset_base_dir ]
79  subsystem_name = "hdf"
80  part_name = "hdf_core"
81  deps = [
82    "../../../host:libhdf_host",
83    "../../../utils:libhdf_utils",
84  ]
85  external_deps = [ "hilog:libhilog" ]
86}
87