1# Copyright (C) 2023 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")
16
17group("media_engine_histreamer_package") {
18  deps = [ ":media_engine_histreamer" ]
19}
20
21ohos_shared_library("media_engine_histreamer") {
22  stack_protector_ret = true
23  sanitize = {
24    integer_overflow = true
25    ubsan = true
26    boundary_sanitize = true
27    cfi = true
28    cfi_cross_dso = true
29    debug = false
30  }
31
32  deps = [ "factory:media_engine_histreamer_factory" ]
33
34  if (player_framework_support_recorder) {
35    deps += [ "recorder:media_engine_histreamer_recorder" ]
36  }
37
38  if (player_framework_support_player) {
39    deps += [ "player:media_engine_histreamer_player" ]
40  }
41
42  external_deps = [ "hilog:libhilog" ]
43
44  if (player_framework_support_metadata) {
45    deps += [ "avmetadatahelper:media_engine_histreamer_avmetadatahelper" ]
46  }
47
48  if (player_framework_support_transcoder) {
49    deps += [ "transcoder:media_engine_histreamer_transcoder" ]
50  }
51
52  relative_install_dir = "media"
53  subsystem_name = "multimedia"
54  part_name = "player_framework"
55}
56