2023-04-06 01:22:36 +00:00
|
|
|
# Copyright (C) 2023-2023 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.
|
|
|
|
|
|
|
|
declare_args() {
|
2023-07-03 12:29:45 +00:00
|
|
|
av_codec_support_capi = true
|
|
|
|
av_codec_support_codec = true
|
2023-07-04 03:34:20 +00:00
|
|
|
av_codec_client_support_codec = true
|
2023-07-03 12:29:45 +00:00
|
|
|
av_codec_support_codeclist = true
|
|
|
|
av_codec_support_hcodec = true
|
|
|
|
av_codec_support_demuxer = true
|
|
|
|
av_codec_support_source = true
|
|
|
|
av_codec_support_muxer = true
|
|
|
|
av_codec_support_test = true
|
|
|
|
av_codec_support_xcollie = true
|
|
|
|
av_codec_support_bitstream_dump = true
|
2023-12-07 04:09:02 +00:00
|
|
|
av_codec_support_codec_perf_test = false
|
2023-12-29 12:41:07 +00:00
|
|
|
av_codec_support_drm = false
|
2023-04-06 01:22:36 +00:00
|
|
|
}
|
2023-11-21 12:31:57 +00:00
|
|
|
av_codec_sanitize = {
|
|
|
|
cfi = true
|
|
|
|
cfi_cross_dso = true
|
|
|
|
debug = false
|
|
|
|
}
|
2023-04-26 10:28:21 +00:00
|
|
|
av_codec_root_dir = "//foundation/multimedia/av_codec"
|
2023-12-28 10:54:27 +00:00
|
|
|
media_foundation_root_dir = "//foundation/multimedia/media_foundation"
|
2023-12-23 12:29:34 +00:00
|
|
|
audio_framework_root_dir = "//foundation/multimedia/audio_framework"
|
2023-12-24 07:12:06 +00:00
|
|
|
graphic_2d_root_dir = "//foundation/graphic/graphic_2d"
|
2023-12-25 07:45:39 +00:00
|
|
|
c_utils_root_dir = "//commonlibrary/c_utils"
|
2023-12-29 12:41:07 +00:00
|
|
|
drm_framework_root_dir = "//foundation/multimedia/drm_framework"
|
|
|
|
|
2023-11-21 14:13:18 +00:00
|
|
|
av_codec_defines = [
|
|
|
|
"HST_ANY_WITH_NO_RTTI",
|
|
|
|
"MEDIA_OHOS",
|
|
|
|
]
|
2023-04-06 01:22:36 +00:00
|
|
|
|
2023-07-03 12:29:45 +00:00
|
|
|
if (av_codec_support_capi) {
|
2023-04-06 01:22:36 +00:00
|
|
|
av_codec_defines += [ "SUPPORT_CAPI" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_CAPI" ]
|
|
|
|
}
|
|
|
|
|
2023-07-03 12:29:45 +00:00
|
|
|
if (av_codec_support_codec) {
|
2023-04-06 01:22:36 +00:00
|
|
|
av_codec_defines += [ "SUPPORT_CODEC" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_CODEC" ]
|
|
|
|
}
|
|
|
|
|
2023-07-03 12:29:45 +00:00
|
|
|
if (av_codec_support_codeclist) {
|
2023-04-21 08:16:18 +00:00
|
|
|
av_codec_defines += [ "SUPPORT_CODECLIST" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_CODECLIST" ]
|
|
|
|
}
|
|
|
|
|
2023-07-03 12:29:45 +00:00
|
|
|
if (av_codec_support_hcodec) {
|
2023-05-31 07:39:19 +00:00
|
|
|
av_codec_defines += [ "SUPPORT_HCODEC" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_HCODEC" ]
|
|
|
|
}
|
|
|
|
|
2023-07-03 12:29:45 +00:00
|
|
|
if (av_codec_support_demuxer) {
|
2023-04-06 01:22:36 +00:00
|
|
|
av_codec_defines += [ "SUPPORT_DEMUXER" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_DEMUXER" ]
|
|
|
|
}
|
|
|
|
|
2023-07-03 12:29:45 +00:00
|
|
|
if (av_codec_support_muxer) {
|
2023-04-06 01:22:36 +00:00
|
|
|
av_codec_defines += [ "SUPPORT_MUXER" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_MUXER" ]
|
|
|
|
}
|
|
|
|
|
2023-07-03 12:29:45 +00:00
|
|
|
if (av_codec_support_source) {
|
2023-04-27 01:32:09 +00:00
|
|
|
av_codec_defines += [ "SUPPORT_SOURCE" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_SOURCE" ]
|
|
|
|
}
|
|
|
|
|
2023-07-03 12:29:45 +00:00
|
|
|
if (av_codec_support_xcollie) {
|
2023-05-17 02:02:04 +00:00
|
|
|
av_codec_defines += [ "HICOLLIE_ENABLE" ]
|
2023-05-17 03:07:13 +00:00
|
|
|
}
|
2023-05-22 09:00:57 +00:00
|
|
|
|
2023-07-03 12:29:45 +00:00
|
|
|
if (av_codec_support_bitstream_dump) {
|
2023-05-22 09:00:57 +00:00
|
|
|
av_codec_defines += [ "BITSTREAM_DUMP_ENABLE" ]
|
|
|
|
}
|
2023-12-29 12:41:07 +00:00
|
|
|
|
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
defined(global_parts_info.multimedia_drm_framework)) {
|
|
|
|
av_codec_support_drm = true
|
|
|
|
}
|
|
|
|
|
|
|
|
if (av_codec_support_drm) {
|
|
|
|
av_codec_defines += [ "SUPPORT_DRM" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_DRM" ]
|
|
|
|
}
|