# Copyright (C) 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. import("//build/ohos.gni") import("//foundation/multimedia/player_framework/config.gni") config("media_engine_histreamer_avmetadatahelper_config") { visibility = [ ":*" ] cflags = [ "-O2", "-fPIC", "-Wall", "-fexceptions", "-fno-rtti", "-Wno-unused-but-set-variable", "-Wno-format", ] cflags_cc = cflags include_dirs = [ "$MEDIA_PLAYER_ROOT_DIR/services/engine/histreamer/avmetadatahelper", "$MEDIA_PLAYER_ROOT_DIR/services/engine/histreamer/utils", "$MEDIA_PLAYER_ROOT_DIR/services/include", "$MEDIA_PLAYER_ROOT_DIR/services/utils/include", "$MEDIA_PLAYER_ROOT_DIR/interfaces/inner_api/native", "$MEDIA_PLAYER_ROOT_DIR/services/services/engine_intf", ] } ohos_static_library("media_engine_histreamer_avmetadatahelper") { stack_protector_ret = true sanitize = { integer_overflow = true ubsan = true boundary_sanitize = true cfi = true cfi_cross_dso = true debug = false } sources = [ "av_thumbnail_generator.cpp", "avmetadata_collector.cpp", "avmetadatahelper_impl.cpp", ] configs = [ ":media_engine_histreamer_avmetadatahelper_config", "$MEDIA_PLAYER_ROOT_DIR/services/dfx:media_service_log_dfx_public_config", "$MEDIA_PLAYER_ROOT_DIR/services/utils:media_service_utils_public_config", ] deps = [ "$MEDIA_PLAYER_ROOT_DIR/services/dfx:media_service_dfx", "$MEDIA_PLAYER_ROOT_DIR/services/dfx:media_service_log_dfx", "$MEDIA_PLAYER_ROOT_DIR/services/utils:media_service_utils", ] external_deps = [ "av_codec:av_codec_client", "av_codec:av_codec_media_engine_filters", "av_codec:av_codec_media_engine_modules", "c_utils:utils", "drivers_interface_display:display_commontype_idl_headers", "graphic_surface:surface", "graphic_surface:sync_fence", "hilog:libhilog", "image_framework:image_native", "ipc:ipc_single", "media_foundation:media_foundation", "safwk:system_ability_fwk", ] subsystem_name = "multimedia" part_name = "player_framework" }