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("//foundation/multimedia/player_framework/config.gni")
16import("./../../../multimedia_player_framework_aafwk.gni")
17
18ohos_shared_library("video_editor") {
19  stack_protector_ret = true
20  sanitize = {
21    integer_overflow = true
22    ubsan = true
23    boundary_sanitize = true
24    cfi = true
25    cfi_cross_dso = true
26    debug = false
27  }
28
29  install_enable = true
30  sources = [
31    "./codec/video/decoder/video_decoder_engine.cpp",
32    "./codec/video/decoder/video_decoder_engine_impl.cpp",
33    "./codec/video/encoder/video_encoder_engine.cpp",
34    "./codec/video/encoder/video_encoder_engine_impl.cpp",
35    "./composite_engine/impl/composite_engine.cpp",
36    "./composite_engine/impl/video_composite_engine.cpp",
37    "./data_center/asset/asset.cpp",
38    "./data_center/asset/asset_factory.cpp",
39    "./data_center/asset/video_asset.cpp",
40    "./data_center/effect/effect.cpp",
41    "./data_center/effect/effect_factory.cpp",
42    "./data_center/effect/effect_image_effect.cpp",
43    "./data_center/impl/data_center_impl.cpp",
44    "./video_editor_impl.cpp",
45    "./video_editor_manager.cpp",
46  ]
47
48  include_dirs = [
49    "./",
50    "${multimedia_player_framework_path}/interfaces/inner_api/native/video_editor/include",
51    "${multimedia_player_framework_path}/services/utils/include",
52  ]
53
54  deps = []
55
56  external_deps = [
57    "av_codec:av_codec_client",
58    "hilog:libhilog",
59  ]
60
61  defines = []
62
63  if (defined(global_parts_info) &&
64      defined(global_parts_info.multimedia_image_effect) &&
65      global_parts_info.multimedia_image_effect) {
66    defines += [ "IMAGE_EFFECT_SUPPORT" ]
67    external_deps += [ "image_effect:image_effect" ]
68  }
69
70  cflags = [
71    "-Wall",
72    "-Werror",
73  ]
74
75  public_configs = []
76
77  innerapi_tags = [ "platformsdk" ]
78  subsystem_name = "multimedia"
79  part_name = "player_framework"
80}
81