1# Copyright (C) 2022-2023 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/ability/ability_runtime/ability_runtime.gni") 16import("../wallpaper.gni") 17 18config("wallpaper_service_config") { 19 visibility = [ ":*" ] 20 include_dirs = [ 21 "include", 22 "${wallpaper_path}/utils/dfx/hisysevent_adapter", 23 "${wallpaper_path}/utils/dfx/hidumper_adapter", 24 ] 25 26 cflags_cc = [] 27} 28 29ohos_shared_library("wallpaper_service") { 30 sources = [ 31 "src/component_name.cpp", 32 "src/wallpaper_common_event_manager.cpp", 33 "src/wallpaper_common_event_subscriber.cpp", 34 "src/wallpaper_data.cpp", 35 "src/wallpaper_event_listener_proxy.cpp", 36 "src/wallpaper_extension_ability_connection.cpp", 37 "src/wallpaper_extension_ability_death_recipient.cpp", 38 "src/wallpaper_service.cpp", 39 "src/wallpaper_service_cb_proxy.cpp", 40 "src/wallpaper_service_stub.cpp", 41 ] 42 public_configs = [ ":wallpaper_service_config" ] 43 include_dirs = [ 44 "${wallpaper_path}/frameworks/native/include", 45 "${wallpaper_path}/utils/include", 46 "${graphic_2d_path}/rosen/modules/effect/color_picker/include", 47 "${graphic_2d_path}/utils/color_manager", 48 ] 49 deps = [ "${utils_path}:wallpaper_utils" ] 50 external_deps = [ 51 "ability_base:want", 52 "ability_base:zuri", 53 "ability_runtime:ability_manager", 54 "ability_runtime:abilitykit_native", 55 "ability_runtime:uri_permission_mgr", 56 "access_token:libaccesstoken_sdk", 57 "access_token:libtokenid_sdk", 58 "bundle_framework:appexecfwk_core", 59 "c_utils:utils", 60 "common_event_service:cesfwk_innerkits", 61 "eventhandler:libeventhandler", 62 "graphic_2d:color_manager", 63 "graphic_2d:color_picker", 64 "hilog:libhilog", 65 "hitrace:hitrace_meter", 66 "init:libbegetutil", 67 "ipc:ipc_single", 68 "os_account:os_account_innerkits", 69 "safwk:system_ability_fwk", 70 "samgr:samgr_proxy", 71 "window_manager:libwsutils", 72 ] 73 74 if (ability_runtime_graphics) { 75 external_deps += [ "image_framework:image_native" ] 76 } 77 78 subsystem_name = "theme" 79 part_name = "wallpaper_mgr" 80} 81