1# Copyright (C) 2021-2022 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/media_library/media_library.gni") 16 17ohos_shared_library("media_library_manager") { 18 install_enable = true 19 20 sources = [ "./media_library_manager.cpp" ] 21 22 include_dirs = [ 23 "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", 24 "//drivers/peripheral/base", 25 "//drivers/peripheral/display/interfaces/include", 26 "${ABILITY_RUNTIME_PATH}/interfaces/kits/native/ability/native", 27 "${MEDIA_LIB_COMMON_UTILS_DIR}/include", 28 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 29 "${MEDIA_LIB_INNERKITS_DIR}/media_library_helper/include", 30 "${MEDIA_LIB_INTERFACES_INNER_DIR}/media_library_helper/include", 31 "//commonlibrary/c_utils/base/include", 32 ] 33 34 deps = [ 35 "$MEDIA_LIB_INNERKITS_DIR/media_library_helper:media_library", 36 "${ABILITY_RUNTIME_PATH}/frameworks/native/ability/native:abilitykit_native", 37 ] 38 39 external_deps = [ 40 "ability_base:want", 41 "ability_base:zuri", 42 "ability_runtime:ability_manager", 43 "bundle_framework:appexecfwk_base", 44 "c_utils:utils", 45 "data_share:datashare_common", 46 "data_share:datashare_consumer", 47 "hitrace_native:hitrace_meter", 48 "hiviewdfx_hilog_native:libhilog", 49 ] 50 51 sanitize = { 52 cfi = true 53 debug = false 54 } 55 56 part_name = "media_library" 57 subsystem_name = "multimedia" 58} 59