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/ohos.gni") 15import("../../wallpaper.gni") 16 17config("wallpaper_manager_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "include", 21 "${wallpaper_path}/utils/dfx/hisysevent_adapter", 22 "${wallpaper_path}/services/include", 23 "${wallpaper_path}/utils/include", 24 ] 25 cflags_cc = [] 26} 27 28ohos_shared_library("wallpapermanager") { 29 cflags = [ 30 "-fdata-sections", 31 "-ffunction-sections", 32 "-fvisibility=hidden", 33 "-Os", 34 ] 35 36 sources = [ 37 "src/uv_queue.cpp", 38 "src/wallpaper_event_listener_client.cpp", 39 "src/wallpaper_event_listener_stub.cpp", 40 "src/wallpaper_manager.cpp", 41 "src/wallpaper_manager_kits.cpp", 42 "src/wallpaper_service_cb_stub.cpp", 43 "src/wallpaper_service_proxy.cpp", 44 ] 45 configs = [ ":wallpaper_manager_config" ] 46 public_configs = [ ":wallpaper_manager_config" ] 47 deps = [ "${utils_path}:wallpaper_utils" ] 48 external_deps = [ 49 "c_utils:utils", 50 "hilog:libhilog", 51 "hitrace:hitrace_meter", 52 "image_framework:image_native", 53 "ipc:ipc_single", 54 "napi:ace_napi", 55 "player_framework:media_client", 56 "samgr:samgr_proxy", 57 "window_manager:libdm", 58 ] 59 subsystem_name = "theme" 60 innerapi_tags = [ "platformsdk" ] 61 part_name = "wallpaper_mgr" 62} 63 64ohos_static_library("wallpapermanager_static") { 65 testonly = true 66 sources = [ 67 "src/uv_queue.cpp", 68 "src/wallpaper_event_listener_client.cpp", 69 "src/wallpaper_event_listener_stub.cpp", 70 "src/wallpaper_manager.cpp", 71 "src/wallpaper_manager_kits.cpp", 72 "src/wallpaper_service_cb_stub.cpp", 73 "src/wallpaper_service_proxy.cpp", 74 ] 75 configs = [ ":wallpaper_manager_config" ] 76 public_configs = [ ":wallpaper_manager_config" ] 77 deps = [ "${utils_path}:wallpaper_utils" ] 78 external_deps = [ 79 "c_utils:utils", 80 "hilog:libhilog", 81 "hitrace:hitrace_meter", 82 "image_framework:image_native", 83 "ipc:ipc_single", 84 "napi:ace_napi", 85 "player_framework:media_client", 86 "samgr:samgr_proxy", 87 "window_manager:libdm", 88 ] 89 subsystem_name = "theme" 90 part_name = "wallpaper_mgr" 91} 92 93ohos_prebuilt_etc("wallpaperdefault.jpeg") { 94 source = "data/wallpaperdefault.jpeg" 95 part_name = "wallpaper_mgr" 96 subsystem_name = "theme" 97} 98ohos_prebuilt_etc("wallpaperlockdefault.jpeg") { 99 source = "data/wallpaperlockdefault.jpeg" 100 part_name = "wallpaper_mgr" 101 subsystem_name = "theme" 102} 103