• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
13import("//build/test.gni")
14
15ohos_unittest("codec_hdi_1.0_test") {
16  module_out_path = "hdf/codec"
17  sources = [ "codec_proxy_test.cpp" ]
18
19  cflags = [
20    "-Wall",
21    "-Wextra",
22    "-Werror",
23    "-fsigned-char",
24    "-fno-common",
25    "-fno-strict-aliasing",
26  ]
27
28  if (is_standard_system) {
29    external_deps = [
30      "c_utils:utils",
31      "drivers_peripheral_codec:libcodec_client",
32      "drivers_peripheral_display:hdi_gralloc_client",
33      "graphic_chipsetsdk:buffer_handle",
34      "hdf_core:libhdf_host",
35      "hdf_core:libhdf_ipc_adapter",
36      "hdf_core:libhdf_utils",
37      "hdf_core:libhdi",
38      "hilog:libhilog",
39    ]
40  } else {
41    external_deps = [ "hilog:libhilog" ]
42  }
43}
44
45group("codec_client_test") {
46  testonly = true
47  deps = [ ":codec_hdi_1.0_test" ]
48}
49