# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("../../wallpaper.gni") config("wallpaper_manager_config") { visibility = [ ":*" ] include_dirs = [ "include", "${wallpaper_path}/utils/dfx/hisysevent_adapter", "${wallpaper_path}/services/include", "${wallpaper_path}/utils/include", ] cflags_cc = [] } ohos_shared_library("wallpapermanager") { cflags = [ "-fdata-sections", "-ffunction-sections", "-fvisibility=hidden", "-Os", ] sources = [ "src/uv_queue.cpp", "src/wallpaper_event_listener_client.cpp", "src/wallpaper_event_listener_stub.cpp", "src/wallpaper_manager.cpp", "src/wallpaper_manager_kits.cpp", "src/wallpaper_service_cb_stub.cpp", "src/wallpaper_service_proxy.cpp", ] configs = [ ":wallpaper_manager_config" ] public_configs = [ ":wallpaper_manager_config" ] deps = [ "${utils_path}:wallpaper_utils" ] external_deps = [ "c_utils:utils", "hilog:libhilog", "hitrace:hitrace_meter", "image_framework:image_native", "ipc:ipc_single", "napi:ace_napi", "player_framework:media_client", "samgr:samgr_proxy", "window_manager:libdm", ] subsystem_name = "theme" innerapi_tags = [ "platformsdk" ] part_name = "wallpaper_mgr" } ohos_static_library("wallpapermanager_static") { testonly = true sources = [ "src/uv_queue.cpp", "src/wallpaper_event_listener_client.cpp", "src/wallpaper_event_listener_stub.cpp", "src/wallpaper_manager.cpp", "src/wallpaper_manager_kits.cpp", "src/wallpaper_service_cb_stub.cpp", "src/wallpaper_service_proxy.cpp", ] configs = [ ":wallpaper_manager_config" ] public_configs = [ ":wallpaper_manager_config" ] deps = [ "${utils_path}:wallpaper_utils" ] external_deps = [ "c_utils:utils", "hilog:libhilog", "hitrace:hitrace_meter", "image_framework:image_native", "ipc:ipc_single", "napi:ace_napi", "player_framework:media_client", "samgr:samgr_proxy", "window_manager:libdm", ] subsystem_name = "theme" part_name = "wallpaper_mgr" } ohos_prebuilt_etc("wallpaperdefault.jpeg") { source = "data/wallpaperdefault.jpeg" part_name = "wallpaper_mgr" subsystem_name = "theme" } ohos_prebuilt_etc("wallpaperlockdefault.jpeg") { source = "data/wallpaperlockdefault.jpeg" part_name = "wallpaper_mgr" subsystem_name = "theme" }