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/ohos.gni") 15import("//drivers/adapter/uhdf2/uhdf.gni") 16 17ohos_executable("acm_test") { 18 include_dirs = [ 19 "//utils/native/base/include", 20 "$hdf_framework_path/core/manager/include", 21 "$hdf_framework_path/core/host/include", 22 "$hdf_framework_path/core/shared/include", 23 "$hdf_framework_path/include/osal", 24 "$hdf_framework_path/include/utils", 25 "$hdf_framework_path/include/core", 26 "$hdf_framework_path/utils/include", 27 "$hdf_framework_path/ability/sbuf/include", 28 "$hdf_framework_path/include/config", 29 "$hdf_framework_path/ability/config/hcs_parser/include", 30 "$hdf_uhdf_path/ipc/include", 31 "$hdf_uhdf_path/osal/include", 32 "$hdf_uhdf_path/include/config", 33 "$hdf_uhdf_path/include/host", 34 "$hdf_uhdf_path/shared/include", 35 "$hdf_uhdf_path/manager/include", 36 "//drivers/peripheral/usb/interfaces/ddk/device", 37 "//drivers/peripheral/usb/interfaces/ddk/common", 38 "//drivers/peripheral/usb/gadget/function/include", 39 ] 40 41 sources = [ "acm_test.c" ] 42 43 deps = [ 44 "$hdf_uhdf_path/config:uhdf_hcs_pkg", 45 "$hdf_uhdf_path/hdi:libhdi", 46 "$hdf_uhdf_path/host:libhdf_host", 47 "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", 48 "$hdf_uhdf_path/osal:libhdf_utils", 49 "//utils/native/base:utils", 50 ] 51 52 if (is_standard_system) { 53 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 54 } else { 55 external_deps = [ "hilog:libhilog" ] 56 } 57 58 install_enable = false 59 subsystem_name = "hdf" 60} 61 62ohos_executable("acm_read") { 63 include_dirs = [ 64 "//utils/native/base/include", 65 "$hdf_framework_path/core/manager/include", 66 "$hdf_framework_path/core/host/include", 67 "$hdf_framework_path/core/shared/include", 68 "$hdf_framework_path/include/osal", 69 "$hdf_framework_path/include/utils", 70 "$hdf_framework_path/include/core", 71 "$hdf_framework_path/utils/include", 72 "$hdf_framework_path/ability/sbuf/include", 73 "$hdf_framework_path/include/config", 74 "$hdf_framework_path/ability/config/hcs_parser/include", 75 "$hdf_uhdf_path/ipc/include", 76 "$hdf_uhdf_path/osal/include", 77 "$hdf_uhdf_path/include/config", 78 "$hdf_uhdf_path/include/host", 79 "$hdf_uhdf_path/shared/include", 80 "$hdf_uhdf_path/manager/include", 81 "//drivers/peripheral/usb/interfaces/ddk/device", 82 "//drivers/peripheral/usb/interfaces/ddk/common", 83 "//drivers/peripheral/usb/gadget/function/include", 84 ] 85 86 sources = [ "acm_read.c" ] 87 88 deps = [ 89 "$hdf_uhdf_path/config:uhdf_hcs_pkg", 90 "$hdf_uhdf_path/hdi:libhdi", 91 "$hdf_uhdf_path/host:libhdf_host", 92 "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", 93 "$hdf_uhdf_path/osal:libhdf_utils", 94 "//utils/native/base:utils", 95 ] 96 97 if (is_standard_system) { 98 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 99 } else { 100 external_deps = [ "hilog:libhilog" ] 101 } 102 103 install_enable = false 104 subsystem_name = "hdf" 105} 106 107ohos_executable("acm_write") { 108 include_dirs = [ 109 "//utils/native/base/include", 110 "$hdf_framework_path/core/manager/include", 111 "$hdf_framework_path/core/host/include", 112 "$hdf_framework_path/core/shared/include", 113 "$hdf_framework_path/include/osal", 114 "$hdf_framework_path/include/utils", 115 "$hdf_framework_path/include/core", 116 "$hdf_framework_path/utils/include", 117 "$hdf_framework_path/ability/sbuf/include", 118 "$hdf_framework_path/include/config", 119 "$hdf_framework_path/ability/config/hcs_parser/include", 120 "$hdf_uhdf_path/ipc/include", 121 "$hdf_uhdf_path/osal/include", 122 "$hdf_uhdf_path/include/config", 123 "$hdf_uhdf_path/include/host", 124 "$hdf_uhdf_path/shared/include", 125 "$hdf_uhdf_path/manager/include", 126 "//drivers/peripheral/usb/interfaces/ddk/device", 127 "//drivers/peripheral/usb/interfaces/ddk/common", 128 "//drivers/peripheral/usb/gadget/function/include", 129 ] 130 131 sources = [ "acm_write.c" ] 132 133 deps = [ 134 "$hdf_uhdf_path/config:uhdf_hcs_pkg", 135 "$hdf_uhdf_path/hdi:libhdi", 136 "$hdf_uhdf_path/host:libhdf_host", 137 "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", 138 "$hdf_uhdf_path/osal:libhdf_utils", 139 "//utils/native/base:utils", 140 ] 141 142 if (is_standard_system) { 143 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 144 } else { 145 external_deps = [ "hilog:libhilog" ] 146 } 147 148 install_enable = false 149 subsystem_name = "hdf" 150} 151 152ohos_executable("acm_speed_write") { 153 include_dirs = [ 154 "//utils/native/base/include", 155 "$hdf_framework_path/core/manager/include", 156 "$hdf_framework_path/core/host/include", 157 "$hdf_framework_path/core/shared/include", 158 "$hdf_framework_path/include/osal", 159 "$hdf_framework_path/include/utils", 160 "$hdf_framework_path/include/core", 161 "$hdf_framework_path/utils/include", 162 "$hdf_framework_path/ability/sbuf/include", 163 "$hdf_framework_path/include/config", 164 "$hdf_framework_path/ability/config/hcs_parser/include", 165 "$hdf_uhdf_path/ipc/include", 166 "$hdf_uhdf_path/osal/include", 167 "$hdf_uhdf_path/include/config", 168 "$hdf_uhdf_path/include/host", 169 "$hdf_uhdf_path/shared/include", 170 "$hdf_uhdf_path/manager/include", 171 "//drivers/peripheral/usb/interfaces/ddk/device", 172 "//drivers/peripheral/usb/interfaces/ddk/common", 173 "//drivers/peripheral/usb/gadget/function/include", 174 ] 175 176 sources = [ "acm_speed_write.c" ] 177 178 deps = [ 179 "$hdf_uhdf_path/config:uhdf_hcs_pkg", 180 "$hdf_uhdf_path/hdi:libhdi", 181 "$hdf_uhdf_path/host:libhdf_host", 182 "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", 183 "$hdf_uhdf_path/osal:libhdf_utils", 184 "//utils/native/base:utils", 185 ] 186 187 if (is_standard_system) { 188 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 189 } else { 190 external_deps = [ "hilog:libhilog" ] 191 } 192 193 install_enable = false 194 subsystem_name = "hdf" 195} 196 197ohos_executable("acm_speed_read") { 198 include_dirs = [ 199 "//utils/native/base/include", 200 "$hdf_framework_path/core/manager/include", 201 "$hdf_framework_path/core/host/include", 202 "$hdf_framework_path/core/shared/include", 203 "$hdf_framework_path/include/osal", 204 "$hdf_framework_path/include/utils", 205 "$hdf_framework_path/include/core", 206 "$hdf_framework_path/utils/include", 207 "$hdf_framework_path/ability/sbuf/include", 208 "$hdf_framework_path/include/config", 209 "$hdf_framework_path/ability/config/hcs_parser/include", 210 "$hdf_uhdf_path/ipc/include", 211 "$hdf_uhdf_path/osal/include", 212 "$hdf_uhdf_path/include/config", 213 "$hdf_uhdf_path/include/host", 214 "$hdf_uhdf_path/shared/include", 215 "$hdf_uhdf_path/manager/include", 216 "//drivers/peripheral/usb/interfaces/ddk/device", 217 "//drivers/peripheral/usb/interfaces/ddk/common", 218 "//drivers/peripheral/usb/gadget/function/include", 219 ] 220 221 sources = [ "acm_speed_read.c" ] 222 223 deps = [ 224 "$hdf_uhdf_path/config:uhdf_hcs_pkg", 225 "$hdf_uhdf_path/hdi:libhdi", 226 "$hdf_uhdf_path/host:libhdf_host", 227 "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", 228 "$hdf_uhdf_path/osal:libhdf_utils", 229 "//utils/native/base:utils", 230 ] 231 232 if (is_standard_system) { 233 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 234 } else { 235 external_deps = [ "hilog:libhilog" ] 236 } 237 238 install_enable = false 239 subsystem_name = "hdf" 240} 241 242ohos_executable("prop_test") { 243 include_dirs = [ 244 "//utils/native/base/include", 245 "$hdf_framework_path/core/manager/include", 246 "$hdf_framework_path/core/host/include", 247 "$hdf_framework_path/core/shared/include", 248 "$hdf_framework_path/include/osal", 249 "$hdf_framework_path/include/utils", 250 "$hdf_framework_path/include/core", 251 "$hdf_framework_path/utils/include", 252 "$hdf_framework_path/ability/sbuf/include", 253 "$hdf_framework_path/include/config", 254 "$hdf_framework_path/ability/config/hcs_parser/include", 255 "$hdf_uhdf_path/ipc/include", 256 "$hdf_uhdf_path/osal/include", 257 "$hdf_uhdf_path/include/config", 258 "$hdf_uhdf_path/include/host", 259 "$hdf_uhdf_path/shared/include", 260 "$hdf_uhdf_path/manager/include", 261 "//drivers/peripheral/usb/interfaces/ddk/device", 262 "//drivers/peripheral/usb/interfaces/ddk/common", 263 "//drivers/peripheral/usb/gadget/function/include", 264 ] 265 266 sources = [ "prop_test.c" ] 267 268 deps = [ 269 "$hdf_uhdf_path/config:uhdf_hcs_pkg", 270 "$hdf_uhdf_path/hdi:libhdi", 271 "$hdf_uhdf_path/host:libhdf_host", 272 "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", 273 "$hdf_uhdf_path/osal:libhdf_utils", 274 "//utils/native/base:utils", 275 ] 276 277 if (is_standard_system) { 278 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 279 } else { 280 external_deps = [ "hilog:libhilog" ] 281 } 282 283 install_enable = false 284 subsystem_name = "hdf" 285} 286