• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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/test.gni")
15import("//foundation/multimedia/video_processing_engine/config.gni")
16
17ohos_unittest("metadata_gen_video_ndk_unit_test") {
18  module_out_path = UNIT_TEST_OUTPUT_PATH
19
20  sanitize = {
21    cfi = true
22    cfi_cross_dso = true
23    debug = false
24  }
25
26  cflags = VIDEO_PROCESSING_ENGINE_CFLAGS
27
28  include_dirs = [
29    "$FRAMEWORK_DIR",
30    "$ALGORITHM_DIR/common/include",
31    "$ALGORITHM_DIR/extension_manager/include",
32    "$TEST_UTILS_PATH/ColorSpaceConverter/sample",
33    "$ALGORITHM_DIR/colorspace_converter/include",
34    "$FRAMEWORK_DIR/capi/video_processing/colorspace_converter/include/",
35    "$ALGORITHM_DIR/colorspace_converter_video/include",
36    "$VIDEO_PROCESSING_ENGINE_ROOT_DIR/services/include",
37    "$TEST_UTILS_PATH/ColorSpaceConverter/sample/video",
38  ]
39
40  sources = [ "metadata_gen_video_ndk_unit_test.cpp" ]
41
42  deps = [
43    "$FRAMEWORK_DIR:videoprocessingengine",
44    "$FRAMEWORK_DIR:video_processing",
45    ]
46
47  external_deps = [
48    "c_utils:utils",
49    "drivers_interface_display:libdisplay_commontype_proxy_2.1",
50    "graphic_surface:surface",
51    "graphic_surface:sync_fence",
52    "graphic_2d:libgraphic_utils",
53    "graphic_2d:librender_service_client",
54    "hilog:libhilog",
55    "hitrace:hitrace_meter",
56    "media_foundation:media_foundation",
57    "media_foundation:native_media_core",
58    "ipc:ipc_core",
59    "memory_utils:libdmabufheap",
60  ]
61
62  subsystem_name = "multimedia"
63  part_name = "video_processing_engine"
64}
65