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  sources = [
30    "src/uv_queue.cpp",
31    "src/wallpaper_event_listener_client.cpp",
32    "src/wallpaper_event_listener_stub.cpp",
33    "src/wallpaper_manager.cpp",
34    "src/wallpaper_service_cb_stub.cpp",
35    "src/wallpaper_service_proxy.cpp",
36  ]
37  configs = [ ":wallpaper_manager_config" ]
38  public_configs = [ ":wallpaper_manager_config" ]
39  deps = [ "${utils_path}:wallpaper_utils" ]
40  external_deps = [
41    "c_utils:utils",
42    "hilog:libhilog",
43    "hitrace:hitrace_meter",
44    "image_framework:image_native",
45    "ipc:ipc_single",
46    "napi:ace_napi",
47    "player_framework:media_client",
48    "samgr:samgr_proxy",
49    "window_manager:libdm",
50  ]
51  subsystem_name = "theme"
52  innerapi_tags = [ "platformsdk" ]
53  part_name = "wallpaper_mgr"
54}
55
56ohos_static_library("wallpapermanager_static") {
57  testonly = true
58  sources = [
59    "src/uv_queue.cpp",
60    "src/wallpaper_event_listener_client.cpp",
61    "src/wallpaper_event_listener_stub.cpp",
62    "src/wallpaper_manager.cpp",
63    "src/wallpaper_service_cb_stub.cpp",
64    "src/wallpaper_service_proxy.cpp",
65  ]
66  configs = [ ":wallpaper_manager_config" ]
67  public_configs = [ ":wallpaper_manager_config" ]
68  deps = [ "${utils_path}:wallpaper_utils" ]
69  external_deps = [
70    "c_utils:utils",
71    "hilog:libhilog",
72    "hitrace:hitrace_meter",
73    "image_framework:image_native",
74    "ipc:ipc_single",
75    "napi:ace_napi",
76    "player_framework:media_client",
77    "samgr:samgr_proxy",
78    "window_manager:libdm",
79  ]
80  subsystem_name = "theme"
81  part_name = "wallpaper_mgr"
82}
83
84ohos_prebuilt_etc("wallpaperdefault.jpeg") {
85  source = "data/wallpaperdefault.jpeg"
86  part_name = "wallpaper_mgr"
87  subsystem_name = "theme"
88}
89ohos_prebuilt_etc("wallpaperlockdefault.jpeg") {
90  source = "data/wallpaperlockdefault.jpeg"
91  part_name = "wallpaper_mgr"
92  subsystem_name = "theme"
93}
94