• 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/ohos.gni")
15import("//build/test.gni")
16import("//foundation/multimedia/video_processing_engine/config.gni")
17
18ohos_moduletest("metadata_generator_video_module_test") {
19  module_out_path = MODULE_TEST_OUTPUT_PATH
20
21  include_dirs = [
22    ".",
23    "$INTERFACES_INNER_API_DIR",
24    "$DFX_DIR/include",
25    "$METADATA_GENERATOR_VIDEO_DIR/include",
26  ]
27
28  defines = []
29
30  cflags = VIDEO_PROCESSING_ENGINE_CFLAGS
31
32  cflags_cc = cflags
33  cflags_cc += [ "-std=c++17" ]
34
35  sources = [
36    "api_test.cpp",
37    "state_test.cpp",
38    "demo_test.cpp",
39  ]
40
41  deps = [
42    "$FRAMEWORK_DIR:videoprocessingengine"
43  ]
44
45  external_deps = [
46    "c_utils:utils",
47    "graphic_surface:surface",
48    "graphic_2d:libgraphic_utils",
49    "graphic_2d:librender_service_client",
50    "av_codec:av_codec_client",
51    "hilog:libhilog",
52    "hitrace:hitrace_meter",
53    "drivers_interface_display:libdisplay_commontype_proxy_2.1",
54  ]
55
56  subsystem_name = "multimedia"
57  part_name = "video_processing_engine"
58}