# Copyright (c) 2022 Shenzhen Kaihong DID 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/hdf_core/adapter/uhdf2/uhdf.gni") ohos_executable("codec_decode_test_ipc") { sources = [ "//drivers/peripheral/codec/hal/v1.0/share_mem/src/ashmem_wrapper.cpp", "//drivers/peripheral/codec/hal/v1.0/share_mem/src/share_mem.c", "//drivers/peripheral/codec/hdi_service/codec_service_stub/codec_callback_stub.c", "codec_decode_test_ipc.c", "codec_gralloc_wrapper.cpp", "codec_utils.c", ] include_dirs = [ "//device/soc/${device_company}/${product_name}/hardware/codec/include", "//device/soc/${device_company}/${product_name}/hardware/mpp/include", "//drivers/peripheral/codec/interfaces/include", "//drivers/peripheral/codec/hal/v1.0/share_mem/include", "//drivers/peripheral/codec/hdi_service/codec_proxy", "//drivers/peripheral/codec/hdi_service/codec_service_stub", ] cflags_c = [ "-Wall", "-Wextra", "-Werror", "-Wno-predefined-identifier-outside-function", "-Wno-macro-redefined", "-Wno-format", "-Wno-unused-parameter", "-Wno-unused-variable", "-fsigned-char", "-fno-common", "-fno-strict-aliasing", ] deps = [ "//device/soc/${device_company}/${product_name}/hardware/codec:codec_oem_interface", "//device/soc/${device_company}/${product_name}/hardware/mpp:mpp", "//drivers/peripheral/codec/hdi_service:codec_client", ] if (is_standard_system) { external_deps = [ "c_utils:utils", "drivers_peripheral_display:hdi_gralloc_client", "graphic_chipsetsdk:buffer_handle", "hdf_core:libhdf_host", "hdf_core:libhdf_ipc_adapter", "hdf_core:libhdf_utils", "hdf_core:libhdi", "hiviewdfx_hilog_native:libhilog", ] } else { external_deps = [ "hilog:libhilog" ] } subsystem_name = "hdf" part_name = "drivers_peripheral_codec" } ohos_executable("codec_encode_test_ipc") { sources = [ "//drivers/peripheral/codec/hal/v1.0/share_mem/src/ashmem_wrapper.cpp", "//drivers/peripheral/codec/hal/v1.0/share_mem/src/share_mem.c", "//drivers/peripheral/codec/hdi_service/codec_service_stub/codec_callback_stub.c", "codec_encode_test_ipc.c", "codec_gralloc_wrapper.cpp", "codec_utils.c", ] include_dirs = [ "//device/soc/${device_company}/${product_name}/hardware/codec/include", "//device/soc/${device_company}/${product_name}/hardware/mpp/include", "//drivers/peripheral/codec/interfaces/include", "//drivers/peripheral/codec/hal/v1.0/share_mem/include", "//drivers/peripheral/codec/hdi_service/codec_proxy", "//drivers/peripheral/codec/hdi_service/codec_service_stub", ] cflags_c = [ "-Wall", "-Wextra", "-Werror", "-Wno-predefined-identifier-outside-function", "-Wno-macro-redefined", "-Wno-format", "-Wno-unused-parameter", "-Wno-unused-variable", "-fsigned-char", "-fno-common", "-fno-strict-aliasing", ] deps = [ "//device/soc/${device_company}/${product_name}/hardware/codec:codec_oem_interface", "//device/soc/${device_company}/${product_name}/hardware/mpp:mpp", "//drivers/peripheral/codec/hdi_service:codec_client", ] if (is_standard_system) { external_deps = [ "c_utils:utils", "drivers_peripheral_display:hdi_gralloc_client", "graphic_chipsetsdk:buffer_handle", "hdf_core:libhdf_host", "hdf_core:libhdf_ipc_adapter", "hdf_core:libhdf_utils", "hdf_core:libhdi", "hiviewdfx_hilog_native:libhilog", ] } else { external_deps = [ "hilog:libhilog" ] } subsystem_name = "hdf" part_name = "drivers_peripheral_codec" } group("codec_hdi_demo") { deps = [ ":codec_decode_test_ipc", ":codec_encode_test_ipc", ] }