1# Copyright (c) 2022-2023 Shenzhen Kaihong DID 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") 15 16ohos_executable("codec_decode_test_ipc") { 17 sources = [ 18 "codec_decode_test_ipc.c", 19 "codec_gralloc_wrapper.cpp", 20 "codec_utils.c", 21 ] 22 23 cflags_c = [ 24 "-Wall", 25 "-Wextra", 26 "-Werror", 27 "-Wno-predefined-identifier-outside-function", 28 "-Wno-macro-redefined", 29 "-Wno-format", 30 "-Wno-unused-parameter", 31 "-Wno-unused-variable", 32 "-fsigned-char", 33 "-fno-common", 34 "-fno-strict-aliasing", 35 ] 36 37 if (is_standard_system) { 38 external_deps = [ 39 "c_utils:utils", 40 "drivers_interface_display:display_buffer_idl_headers", 41 "drivers_interface_display:display_composer_idl_headers", 42 "drivers_interface_display:hdi_gralloc_client", 43 "drivers_interface_display:libdisplay_buffer_hdi_impl", 44 "drivers_interface_display:libdisplay_composer_hdi_impl", 45 "drivers_peripheral_codec:libcodec_client", 46 "graphic_chipsetsdk:buffer_handle", 47 "hdf_core:libhdf_host", 48 "hdf_core:libhdf_ipc_adapter", 49 "hdf_core:libhdf_utils", 50 "hdf_core:libhdi", 51 "hilog:libhilog", 52 "ipc:ipc_single", 53 ] 54 } else { 55 external_deps = [ "hilog:libhilog" ] 56 } 57 58 subsystem_name = "hdf" 59 part_name = "drivers_peripheral_codec" 60} 61 62ohos_executable("codec_encode_test_ipc") { 63 sources = [ 64 "codec_encode_test_ipc.c", 65 "codec_gralloc_wrapper.cpp", 66 "codec_utils.c", 67 ] 68 69 cflags_c = [ 70 "-Wall", 71 "-Wextra", 72 "-Werror", 73 "-Wno-predefined-identifier-outside-function", 74 "-Wno-macro-redefined", 75 "-Wno-format", 76 "-Wno-unused-parameter", 77 "-Wno-unused-variable", 78 "-fsigned-char", 79 "-fno-common", 80 "-fno-strict-aliasing", 81 ] 82 83 if (is_standard_system) { 84 external_deps = [ 85 "c_utils:utils", 86 "drivers_interface_display:display_buffer_idl_headers", 87 "drivers_interface_display:display_composer_idl_headers", 88 "drivers_interface_display:hdi_gralloc_client", 89 "drivers_interface_display:libdisplay_buffer_hdi_impl", 90 "drivers_interface_display:libdisplay_composer_hdi_impl", 91 "drivers_peripheral_codec:libcodec_client", 92 "graphic_chipsetsdk:buffer_handle", 93 "hdf_core:libhdf_host", 94 "hdf_core:libhdf_ipc_adapter", 95 "hdf_core:libhdf_utils", 96 "hdf_core:libhdi", 97 "hilog:libhilog", 98 "ipc:ipc_single", 99 ] 100 } else { 101 external_deps = [ "hilog:libhilog" ] 102 } 103 104 subsystem_name = "hdf" 105 part_name = "drivers_peripheral_codec" 106} 107 108ohos_executable("codec_decode_test_async") { 109 sources = [ 110 "codec_decode_test_async.c", 111 "codec_gralloc_wrapper.cpp", 112 "codec_utils.c", 113 ] 114 115 cflags_c = [ 116 "-Wall", 117 "-Wextra", 118 "-Werror", 119 "-Wno-predefined-identifier-outside-function", 120 "-Wno-macro-redefined", 121 "-Wno-format", 122 "-Wno-unused-parameter", 123 "-Wno-unused-variable", 124 "-fsigned-char", 125 "-fno-common", 126 "-fno-strict-aliasing", 127 ] 128 129 if (is_standard_system) { 130 external_deps = [ 131 "c_utils:utils", 132 "drivers_interface_display:display_buffer_idl_headers", 133 "drivers_interface_display:display_composer_idl_headers", 134 "drivers_interface_display:hdi_gralloc_client", 135 "drivers_interface_display:libdisplay_buffer_hdi_impl", 136 "drivers_interface_display:libdisplay_composer_hdi_impl", 137 "drivers_peripheral_codec:libcodec_client", 138 "graphic_chipsetsdk:buffer_handle", 139 "hdf_core:libhdf_host", 140 "hdf_core:libhdf_ipc_adapter", 141 "hdf_core:libhdf_utils", 142 "hdf_core:libhdi", 143 "hilog:libhilog", 144 "ipc:ipc_single", 145 ] 146 } else { 147 external_deps = [ "hilog:libhilog" ] 148 } 149 150 subsystem_name = "hdf" 151 part_name = "drivers_peripheral_codec" 152} 153 154ohos_executable("codec_encode_test_async") { 155 sources = [ 156 "codec_encode_test_async.c", 157 "codec_gralloc_wrapper.cpp", 158 "codec_utils.c", 159 ] 160 161 cflags_c = [ 162 "-Wall", 163 "-Wextra", 164 "-Werror", 165 "-Wno-predefined-identifier-outside-function", 166 "-Wno-macro-redefined", 167 "-Wno-format", 168 "-Wno-unused-parameter", 169 "-Wno-unused-variable", 170 "-fsigned-char", 171 "-fno-common", 172 "-fno-strict-aliasing", 173 ] 174 175 if (is_standard_system) { 176 external_deps = [ 177 "c_utils:utils", 178 "drivers_interface_display:display_buffer_idl_headers", 179 "drivers_interface_display:display_composer_idl_headers", 180 "drivers_interface_display:hdi_gralloc_client", 181 "drivers_interface_display:libdisplay_buffer_hdi_impl", 182 "drivers_interface_display:libdisplay_composer_hdi_impl", 183 "drivers_peripheral_codec:libcodec_client", 184 "graphic_chipsetsdk:buffer_handle", 185 "hdf_core:libhdf_host", 186 "hdf_core:libhdf_ipc_adapter", 187 "hdf_core:libhdf_utils", 188 "hdf_core:libhdi", 189 "hilog:libhilog", 190 "ipc:ipc_single", 191 ] 192 } else { 193 external_deps = [ "hilog:libhilog" ] 194 } 195 196 subsystem_name = "hdf" 197 part_name = "drivers_peripheral_codec" 198} 199 200group("codec_hdi_demo") { 201 deps = [ 202 ":codec_decode_test_async", 203 ":codec_decode_test_ipc", 204 ":codec_encode_test_async", 205 ":codec_encode_test_ipc", 206 ] 207} 208