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/theme/wallpaper_mgr/wallpaper.gni") 15import("//build/ohos.gni") 16 17config("wallpaper_manager_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "include", 21 "//base/theme/wallpaper_mgr/utils/dfx/hisysevent_adapter", 22 "//base/theme/wallpaper_mgr/services/include", 23 "//base/theme/wallpaper_mgr/utils/include", 24 "//third_party/libuv/include", 25 ] 26 cflags_cc = [] 27} 28 29ohos_shared_library("wallpapermanager") { 30 sources = [ 31 "src/uv_queue.cpp", 32 "src/wallpaper_color_change_listener_client.cpp", 33 "src/wallpaper_color_change_listener_stub.cpp", 34 "src/wallpaper_manager.cpp", 35 "src/wallpaper_manager_kits.cpp", 36 "src/wallpaper_service_cb_stub.cpp", 37 "src/wallpaper_service_proxy.cpp", 38 ] 39 public_configs = [ ":wallpaper_manager_config" ] 40 include_dirs = [] 41 deps = [ "${utils_path}:wallpaper_utils" ] 42 external_deps = [ 43 "c_utils:utils", 44 "hitrace_native:hitrace_meter", 45 "hiviewdfx_hilog_native:libhilog", 46 "ipc:ipc_core", 47 "multimedia_image_framework:image_native", 48 "napi:ace_napi", 49 "samgr:samgr_proxy", 50 ] 51 subsystem_name = "theme" 52 part_name = "wallpaper_mgr" 53} 54 55ohos_prebuilt_etc("wallpaperdefault.jpeg") { 56 source = "data/wallpaperdefault.jpeg" 57 part_name = "wallpaper_mgr" 58 subsystem_name = "theme" 59} 60ohos_prebuilt_etc("wallpaperlockdefault.jpeg") { 61 source = "data/wallpaperlockdefault.jpeg" 62 part_name = "wallpaper_mgr" 63 subsystem_name = "theme" 64} 65