1# Copyright (C) 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/test.gni") 15import("//foundation/multimedia/media_library/media_library.gni") 16 17ohos_executable("scanner") { 18 install_enable = true 19 include_dirs = [ 20 "./include", 21 "../get_self_permissions/include", 22 "$MEDIA_LIB_BASE_DIR/interfaces/innerkits/native/include", 23 "$MEDIA_LIB_INNERKITS_DIR/media_library_helper/include", 24 "//commonlibrary/c_utils/base/include", 25 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 26 "${MEDIA_LIB_SERVICES_DIR}/media_library/include", 27 "${ABILITY_RUNTIME_PATH}/interfaces/kits/native/ability/native", 28 ] 29 30 sources = [ 31 "../get_self_permissions/src/get_self_permissions.cpp", 32 "./src/medialibrary_scan.cpp", 33 ] 34 35 deps = [ "${MEDIA_LIB_INNERKITS_DIR}/medialibrary_data_extension:medialibrary_data_extension" ] 36 37 external_deps = [ 38 "ability_base:zuri", 39 "ability_runtime:abilitykit_native", 40 "access_token:libaccesstoken_sdk", 41 "access_token:libnativetoken", 42 "access_token:libtoken_setproc", 43 "c_utils:utils", 44 "data_share:datashare_consumer", 45 "hitrace_native:hitrace_meter", 46 "hiviewdfx_hilog_native:libhilog", 47 "relational_store:native_appdatafwk", 48 "samgr:samgr_proxy", 49 ] 50 subsystem_name = "multimedia" 51 part_name = "media_library" 52} 53