# Copyright (c) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("//drivers/adapter/uhdf2/uhdf.gni") ohos_executable("acm_test") { include_dirs = [ "//utils/native/base/include", "$hdf_framework_path/core/manager/include", "$hdf_framework_path/core/host/include", "$hdf_framework_path/core/shared/include", "$hdf_framework_path/include/osal", "$hdf_framework_path/include/utils", "$hdf_framework_path/include/core", "$hdf_framework_path/utils/include", "$hdf_framework_path/ability/sbuf/include", "$hdf_framework_path/include/config", "$hdf_framework_path/ability/config/hcs_parser/include", "$hdf_uhdf_path/ipc/include", "$hdf_uhdf_path/osal/include", "$hdf_uhdf_path/include/config", "$hdf_uhdf_path/include/host", "$hdf_uhdf_path/shared/include", "$hdf_uhdf_path/manager/include", "//drivers/peripheral/usb/interfaces/ddk/device", "//drivers/peripheral/usb/interfaces/ddk/common", "//drivers/peripheral/usb/gadget/function/include", ] sources = [ "acm_test.c" ] deps = [ "$hdf_uhdf_path/config:uhdf_hcs_pkg", "$hdf_uhdf_path/hdi:libhdi", "$hdf_uhdf_path/host:libhdf_host", "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", "$hdf_uhdf_path/osal:libhdf_utils", "//utils/native/base:utils", ] if (is_standard_system) { external_deps = [ "hiviewdfx_hilog_native:libhilog" ] } else { external_deps = [ "hilog:libhilog" ] } install_enable = false subsystem_name = "hdf" } ohos_executable("acm_read") { include_dirs = [ "//utils/native/base/include", "$hdf_framework_path/core/manager/include", "$hdf_framework_path/core/host/include", "$hdf_framework_path/core/shared/include", "$hdf_framework_path/include/osal", "$hdf_framework_path/include/utils", "$hdf_framework_path/include/core", "$hdf_framework_path/utils/include", "$hdf_framework_path/ability/sbuf/include", "$hdf_framework_path/include/config", "$hdf_framework_path/ability/config/hcs_parser/include", "$hdf_uhdf_path/ipc/include", "$hdf_uhdf_path/osal/include", "$hdf_uhdf_path/include/config", "$hdf_uhdf_path/include/host", "$hdf_uhdf_path/shared/include", "$hdf_uhdf_path/manager/include", "//drivers/peripheral/usb/interfaces/ddk/device", "//drivers/peripheral/usb/interfaces/ddk/common", "//drivers/peripheral/usb/gadget/function/include", ] sources = [ "acm_read.c" ] deps = [ "$hdf_uhdf_path/config:uhdf_hcs_pkg", "$hdf_uhdf_path/hdi:libhdi", "$hdf_uhdf_path/host:libhdf_host", "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", "$hdf_uhdf_path/osal:libhdf_utils", "//utils/native/base:utils", ] if (is_standard_system) { external_deps = [ "hiviewdfx_hilog_native:libhilog" ] } else { external_deps = [ "hilog:libhilog" ] } install_enable = false subsystem_name = "hdf" } ohos_executable("acm_write") { include_dirs = [ "//utils/native/base/include", "$hdf_framework_path/core/manager/include", "$hdf_framework_path/core/host/include", "$hdf_framework_path/core/shared/include", "$hdf_framework_path/include/osal", "$hdf_framework_path/include/utils", "$hdf_framework_path/include/core", "$hdf_framework_path/utils/include", "$hdf_framework_path/ability/sbuf/include", "$hdf_framework_path/include/config", "$hdf_framework_path/ability/config/hcs_parser/include", "$hdf_uhdf_path/ipc/include", "$hdf_uhdf_path/osal/include", "$hdf_uhdf_path/include/config", "$hdf_uhdf_path/include/host", "$hdf_uhdf_path/shared/include", "$hdf_uhdf_path/manager/include", "//drivers/peripheral/usb/interfaces/ddk/device", "//drivers/peripheral/usb/interfaces/ddk/common", "//drivers/peripheral/usb/gadget/function/include", ] sources = [ "acm_write.c" ] deps = [ "$hdf_uhdf_path/config:uhdf_hcs_pkg", "$hdf_uhdf_path/hdi:libhdi", "$hdf_uhdf_path/host:libhdf_host", "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", "$hdf_uhdf_path/osal:libhdf_utils", "//utils/native/base:utils", ] if (is_standard_system) { external_deps = [ "hiviewdfx_hilog_native:libhilog" ] } else { external_deps = [ "hilog:libhilog" ] } install_enable = false subsystem_name = "hdf" } ohos_executable("acm_speed_write") { include_dirs = [ "//utils/native/base/include", "$hdf_framework_path/core/manager/include", "$hdf_framework_path/core/host/include", "$hdf_framework_path/core/shared/include", "$hdf_framework_path/include/osal", "$hdf_framework_path/include/utils", "$hdf_framework_path/include/core", "$hdf_framework_path/utils/include", "$hdf_framework_path/ability/sbuf/include", "$hdf_framework_path/include/config", "$hdf_framework_path/ability/config/hcs_parser/include", "$hdf_uhdf_path/ipc/include", "$hdf_uhdf_path/osal/include", "$hdf_uhdf_path/include/config", "$hdf_uhdf_path/include/host", "$hdf_uhdf_path/shared/include", "$hdf_uhdf_path/manager/include", "//drivers/peripheral/usb/interfaces/ddk/device", "//drivers/peripheral/usb/interfaces/ddk/common", "//drivers/peripheral/usb/gadget/function/include", ] sources = [ "acm_speed_write.c" ] deps = [ "$hdf_uhdf_path/config:uhdf_hcs_pkg", "$hdf_uhdf_path/hdi:libhdi", "$hdf_uhdf_path/host:libhdf_host", "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", "$hdf_uhdf_path/osal:libhdf_utils", "//utils/native/base:utils", ] if (is_standard_system) { external_deps = [ "hiviewdfx_hilog_native:libhilog" ] } else { external_deps = [ "hilog:libhilog" ] } install_enable = false subsystem_name = "hdf" } ohos_executable("acm_speed_read") { include_dirs = [ "//utils/native/base/include", "$hdf_framework_path/core/manager/include", "$hdf_framework_path/core/host/include", "$hdf_framework_path/core/shared/include", "$hdf_framework_path/include/osal", "$hdf_framework_path/include/utils", "$hdf_framework_path/include/core", "$hdf_framework_path/utils/include", "$hdf_framework_path/ability/sbuf/include", "$hdf_framework_path/include/config", "$hdf_framework_path/ability/config/hcs_parser/include", "$hdf_uhdf_path/ipc/include", "$hdf_uhdf_path/osal/include", "$hdf_uhdf_path/include/config", "$hdf_uhdf_path/include/host", "$hdf_uhdf_path/shared/include", "$hdf_uhdf_path/manager/include", "//drivers/peripheral/usb/interfaces/ddk/device", "//drivers/peripheral/usb/interfaces/ddk/common", "//drivers/peripheral/usb/gadget/function/include", ] sources = [ "acm_speed_read.c" ] deps = [ "$hdf_uhdf_path/config:uhdf_hcs_pkg", "$hdf_uhdf_path/hdi:libhdi", "$hdf_uhdf_path/host:libhdf_host", "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", "$hdf_uhdf_path/osal:libhdf_utils", "//utils/native/base:utils", ] if (is_standard_system) { external_deps = [ "hiviewdfx_hilog_native:libhilog" ] } else { external_deps = [ "hilog:libhilog" ] } install_enable = false subsystem_name = "hdf" } ohos_executable("prop_test") { include_dirs = [ "//utils/native/base/include", "$hdf_framework_path/core/manager/include", "$hdf_framework_path/core/host/include", "$hdf_framework_path/core/shared/include", "$hdf_framework_path/include/osal", "$hdf_framework_path/include/utils", "$hdf_framework_path/include/core", "$hdf_framework_path/utils/include", "$hdf_framework_path/ability/sbuf/include", "$hdf_framework_path/include/config", "$hdf_framework_path/ability/config/hcs_parser/include", "$hdf_uhdf_path/ipc/include", "$hdf_uhdf_path/osal/include", "$hdf_uhdf_path/include/config", "$hdf_uhdf_path/include/host", "$hdf_uhdf_path/shared/include", "$hdf_uhdf_path/manager/include", "//drivers/peripheral/usb/interfaces/ddk/device", "//drivers/peripheral/usb/interfaces/ddk/common", "//drivers/peripheral/usb/gadget/function/include", ] sources = [ "prop_test.c" ] deps = [ "$hdf_uhdf_path/config:uhdf_hcs_pkg", "$hdf_uhdf_path/hdi:libhdi", "$hdf_uhdf_path/host:libhdf_host", "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", "$hdf_uhdf_path/osal:libhdf_utils", "//utils/native/base:utils", ] if (is_standard_system) { external_deps = [ "hiviewdfx_hilog_native:libhilog" ] } else { external_deps = [ "hilog:libhilog" ] } install_enable = false subsystem_name = "hdf" }