-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.gni
executable file
·118 lines (100 loc) · 4.02 KB
/
config.gni
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Copyright (c) 2021-2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import("//build/ohos.gni")
declare_args() {
histreamer_root_dir = "//foundation/multimedia/histreamer"
multimedia_root_dir = "//foundation/multimedia"
hiviewdfx_root_dir = "//base/hiviewdfx"
# build histreamer plugin feature ability
# only for small and std (mini device does not support dynamic libraries)
histreamer_enable_plugin_ffmpeg_adapter = false
# hdi codec adapter, only for std device (Omx has not been implemented)
histreamer_enable_plugin_codec_adapter = false
# only tested on std device
histreamer_enable_plugin_http_source = false
# depends on lite audio hdi interface (small device)
histreamer_enable_plugin_hdi_adapter = false
# depends on lite media api
histreamer_enable_plugin_stream_source = false
# only support mini device bes2600 tech (L0)
histreamer_enable_plugin_lite_aac_decoder = false
histreamer_enable_plugin_http_lite_source = false
# no external dependence
histreamer_enable_plugin_file_source = false
histreamer_enable_plugin_file_fd_source = false
histreamer_enable_plugin_file_fd_sink = false
histreamer_enable_plugin_aac_demuxer = false
histreamer_enable_plugin_wav_demuxer = false
# no release (https://gitee.com/histreamer/minimp3)
histreamer_enable_plugin_minimp3_adapter = false
histreamer_enable_plugin_minimp4_demuxer = false
# depends on std media api
histreamer_enable_plugin_std_stream_source = false
# depends on std audio service
histreamer_enable_plugin_std_audio_capture = false
histreamer_enable_plugin_audio_server_sink = false
# depends on std surface
histreamer_enable_plugin_std_video_surface_sink = false
histreamer_enable_plugin_std_video_capture = false
histreamer_enable_plugin_avs3_audio_decoder = false
histreamer_enable_recorder = false
histreamer_enable_video = false
histreamer_enable_avs3da = false
# configuration for histreamer created thread's stack size.
# 0 means using system default thread stack size, other positive values will be accepted.
config_ohos_histreamer_stack_size = 0
hst_is_lite_sys = false
hst_is_standard_sys = false
hst_is_small_sys = false
hst_is_mini_sys = false
}
if (!defined(ohos_lite) || !ohos_lite) {
hst_is_lite_sys = false
hst_is_standard_sys = true
} else {
hst_is_lite_sys = true
if (ohos_kernel_type == "liteos_m") {
hst_is_mini_sys = true
} else {
hst_is_small_sys = true
}
}
if (hst_is_standard_sys) {
histreamer_enable_plugin_file_source = true
histreamer_enable_plugin_file_fd_source = true
histreamer_enable_plugin_ffmpeg_adapter = true
histreamer_enable_plugin_http_source = true
histreamer_enable_plugin_audio_server_sink = true
histreamer_enable_recorder = true
histreamer_enable_plugin_file_fd_sink = true
histreamer_enable_plugin_std_audio_capture = true
histreamer_enable_plugin_std_stream_source = false
histreamer_enable_video = true
histreamer_enable_plugin_std_video_surface_sink = true
histreamer_enable_plugin_codec_adapter = true
}
if (hst_is_small_sys) {
histreamer_enable_plugin_file_source = true
histreamer_enable_plugin_file_fd_source = true
histreamer_enable_plugin_ffmpeg_adapter = true
histreamer_enable_plugin_http_source = true
histreamer_enable_plugin_hdi_adapter = true
}
if (hst_is_mini_sys) {
histreamer_enable_plugin_file_source = true
histreamer_enable_plugin_file_fd_source = true
histreamer_enable_plugin_ffmpeg_adapter = true
histreamer_enable_plugin_http_source = true
histreamer_enable_plugin_hdi_adapter = true
}