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_service_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "include", 21 "src/adapter", 22 "//base/theme/wallpaper_mgr/utils/dfx/hisysevent_adapter", 23 "//base/theme/wallpaper_mgr/utils/dfx/hidumper_adapter", 24 ] 25 26 cflags_cc = [] 27} 28 29ohos_shared_library("wallpaper_service") { 30 sources = [ 31 "src/adapter/accesstoken_adapter.cpp", 32 "src/component_name.cpp", 33 "src/wallpaper_color_change_listener_proxy.cpp", 34 "src/wallpaper_common_event.cpp", 35 "src/wallpaper_data.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 = [ 43 "//commonlibrary/c_utils/base:utils_config", 44 ":wallpaper_service_config", 45 ] 46 include_dirs = [ 47 "//third_party/json/include", 48 "//base/theme/wallpaper_mgr/frameworks/innerkitsimpl/wallpaper_manager/include", 49 "//base/theme/wallpaper_mgr/utils/include", 50 "//base/security/access_token/interfaces/innerkits", 51 "//foundation/window/window_manager/interfaces/innerkits/dm", 52 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include", 53 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src", 54 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/draw", 55 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui", 56 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client/core", 57 "//third_party/flutter/engine/flutter/lib/ui/painting", 58 "//foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/include", 59 "//foundation/graphic/graphic_2d/utils/color_manager", 60 ] 61 deps = [ 62 "${utils_path}:wallpaper_utils", 63 "//foundation/graphic/graphic_2d/rosen/modules/effect/color_picker:color_picker", 64 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 65 "//foundation/graphic/graphic_2d/utils/color_manager:color_manager", 66 ] 67 external_deps = [ 68 "ability_base:want", 69 "ability_runtime:ability_manager", 70 "ability_runtime:abilitykit_native", 71 "access_token:libaccesstoken_sdk", 72 "bundle_framework:appexecfwk_core", 73 "common_event_service:cesfwk_innerkits", 74 "hitrace_native:hitrace_meter", 75 "hiviewdfx_hilog_native:libhilog", 76 "ipc:ipc_core", 77 "os_account:os_account_innerkits", 78 "safwk:system_ability_fwk", 79 "samgr:samgr_proxy", 80 ] 81 subsystem_name = "theme" 82 part_name = "wallpaper_mgr" 83} 84