• 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("//foundation/multimedia/media_foundation/config.gni")
15import("//foundation/multimedia/video_processing_engine/config.gni")
16import("//test/xts/tools/build/suite.gni")
17
18video_moduletest_native_include_dirs = [
19  "$VIDEO_PROCESSING_ENGINE_ROOT_DIR/interface/kits/c",
20  "$histreamer_root_dir/../../graphic/graphic_2d/interfaces/inner_api",
21  "$histreamer_root_dir/../../window/window_manager/interfaces/innerkits",
22]
23
24video_moduletest_cflags = [
25  "-std=c++17",
26  "-fno-rtti",
27  "-fno-exceptions",
28  "-Wall",
29  "-fno-common",
30  "-fstack-protector-strong",
31  "-Wshadow",
32  "-FPIC",
33  "-FS",
34  "-O2",
35  "-D_FORTIFY_SOURCE=2",
36  "-fvisibility=hidden",
37  "-Wformat=2",
38  "-Wdate-time",
39  "-Werror",
40  "-Wextra",
41  "-Wimplicit-fallthrough",
42  "-Wsign-compare",
43  "-Wunused-parameter",
44]
45
46##################################################################################################################
47ohos_moduletest_suite("ActsVpeVideoNativModuleTest") {
48  module_out_path = "acts/ActsVpeVideoNativModuleTest"
49  include_dirs = video_moduletest_native_include_dirs
50  include_dirs += [ "./" ]
51  cflags = video_moduletest_cflags
52
53  sources = [ "./src/api_test.cpp" ]
54
55  deps = [ "$VIDEO_PROCESSING_ENGINE_ROOT_DIR/framework:video_processing" ]
56
57  external_deps = [
58    "c_utils:utils",
59    "graphic_2d:libgraphic_utils",
60    "graphic_2d:librender_service_client",
61    "graphic_surface:surface",
62    "hilog:libhilog",
63    "media_foundation:media_foundation",
64    "media_foundation:native_media_core",
65    "window_manager:libwm",
66  ]
67
68  part_name = "video_processing_engine"
69  subsystem_name = "multimedia"
70}
71