1# Copyright (C) 2021 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_static_library("medialibrary_common_utils") { 18 include_dirs = [ 19 "./include/", 20 "//third_party/openssl/include/", 21 "//foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include", 22 ] 23 24 sources = [ "src/medialibrary_common_utils.cpp" ] 25 26 deps = [ "//third_party/openssl:libcrypto_shared" ] 27 28 external_deps = [ 29 "hitrace_native:hitrace_meter", 30 "hiviewdfx_hilog_native:libhilog", 31 ] 32} 33 34ohos_static_library("permission_utils") { 35 sources = [ "src/permission_utils.cpp" ] 36 include_dirs = [ 37 "./include", 38 "${MEDIA_LIB_INNERKITS_DIR}/media_library_helper/include", 39 "${MEDIA_LIB_INTERFACES_INNER_DIR}/media_library_helper/include", 40 41 # appexecfwk_core 42 "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr", 43 "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/", 44 "//third_party/json/include", 45 "//foundation/ability/ability_base/interfaces/kits/native/want/include", 46 "//foundation/ability/ability_base/interfaces/kits/native/uri/include", 47 "//foundation/ability/ability_base/interfaces/inner_api/base/include", 48 "//foundation/ability/ability_runtime/services/abilitymgr/include", 49 50 # Security stuff 51 "//base/security/access_token/interfaces/innerkits/accesstoken/include", 52 "//base/security/access_token/interfaces/innerkits/privacy/include", 53 ] 54 deps = [ 55 "//base/security/access_token/interfaces/innerkits/privacy:libprivacy_sdk", 56 "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core:appexecfwk_core", 57 ] 58 external_deps = [ 59 "access_token:libaccesstoken_sdk", 60 "hitrace_native:hitrace_meter", 61 "hiviewdfx_hilog_native:libhilog", 62 "ipc:ipc_core", 63 "samgr:samgr_proxy", 64 ] 65} 66