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 "${MEDIALIB_INTERFACES_PATH}/innerkits/native/include", 23 "${MEDIALIB_INNERKITS_PATH}/media_library_helper/include", 24 "${MEDIALIB_SERVICES_PATH}/media_library/include", 25 ] 26 27 sources = [ 28 "../get_self_permissions/src/get_self_permissions.cpp", 29 "./src/medialibrary_scan.cpp", 30 ] 31 32 deps = [ "${MEDIALIB_INNERKITS_PATH}/medialibrary_data_extension:medialibrary_data_extension" ] 33 34 external_deps = [ 35 "ability_base:zuri", 36 "ability_runtime:abilitykit_native", 37 "access_token:libaccesstoken_sdk", 38 "access_token:libnativetoken", 39 "access_token:libtoken_setproc", 40 "c_utils:utils", 41 "common_event_service:cesfwk_innerkits", 42 "data_share:datashare_consumer", 43 "hilog:libhilog", 44 "hitrace:hitrace_meter", 45 "ipc:ipc_single", 46 "relational_store:native_appdatafwk", 47 "samgr:samgr_proxy", 48 ] 49 subsystem_name = "multimedia" 50 part_name = "media_library" 51} 52