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("//base/miscservices/wallpaper/wallpaper.gni") 15import("//build/ohos.gni") 16 17ohos_shared_library("wallpaper") { 18 include_dirs = [ 19 "//foundation/ace/napi/interfaces/kits", 20 "//third_party/node/src", 21 "//foundation/aafwk/standard/services/common/include", 22 "//utils/system/safwk/native/include", 23 "//base/miscservices/wallpaper/interfaces/kits/napi", 24 "//base/miscservices/wallpaper/frameworks/innerkitsimpl/wallpaper_manager/include", 25 "//base/miscservices/wallpaper/utils/include", 26 "//third_party/libuv/include", 27 "//utils/native/base/include", 28 ] 29 30 sources = [ 31 "async_call.cpp", 32 "napi_wallpaper_ability.cpp", 33 "native_module.cpp", 34 "wallpaper_js_util.cpp", 35 ] 36 deps = [ 37 "${utils_path}:wallpaper_utils", 38 "//base/miscservices/wallpaper/frameworks/innerkitsimpl/wallpaper_manager:wallpapermanager", 39 "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native", 40 "//foundation/aafwk/standard/services/appmgr:libams", 41 "//foundation/ace/napi:ace_napi", 42 "//foundation/appexecfwk/standard/common:libappexecfwk_common", 43 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base", 44 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core", 45 "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler", 46 "//foundation/appexecfwk/standard/libs/libeventhandler:libeventhandler_target", 47 "//foundation/distributeddatamgr/distributeddatamgr/interfaces/innerkits/distributeddata:distributeddata_inner", 48 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", 49 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 50 "//foundation/multimedia/image_standard/interfaces/innerkits:image", 51 "//foundation/multimedia/image_standard/interfaces/innerkits:image_native", 52 "//third_party/libuv:uv_static", 53 "//utils/native/base:utils", 54 ] 55 56 external_deps = [ 57 "hiviewdfx_hilog_native:libhilog", 58 "ipc:ipc_core", 59 ] 60 61 relative_install_dir = "module" 62 subsystem_name = "miscservices" 63 part_name = "wallpaper_native" 64} 65