• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "${wallpaper_path}/interfaces/inner_api/include",
25  ]
26  cflags_cc = [
27    "-fdata-sections",
28    "-ffunction-sections",
29    "-Os",
30  ]
31}
32
33ohos_shared_library("wallpapermanager") {
34  sources = [
35    "src/wallpaper_event_listener_client.cpp",
36    "src/wallpaper_event_listener_stub.cpp",
37    "src/wallpaper_manager.cpp",
38    "src/wallpaper_manager_client.cpp",
39    "src/wallpaper_service_cb_stub.cpp",
40    "src/wallpaper_service_proxy.cpp",
41  ]
42  configs = [ ":wallpaper_manager_config" ]
43  public_configs = [ ":wallpaper_manager_config" ]
44  deps = [ "${utils_path}:wallpaper_utils" ]
45  external_deps = [
46    "c_utils:utils",
47    "hilog:libhilog",
48    "hitrace:hitrace_meter",
49    "image_framework:image_native",
50    "ipc:ipc_single",
51    "napi:ace_napi",
52    "player_framework:media_client",
53    "samgr:samgr_proxy",
54    "window_manager:libdm",
55  ]
56  branch_protector_ret = "pac_ret"
57  subsystem_name = "theme"
58  innerapi_tags = [ "platformsdk" ]
59  part_name = "wallpaper_mgr"
60}
61
62ohos_static_library("wallpapermanager_static") {
63  testonly = true
64  sources = [
65    "src/wallpaper_event_listener_client.cpp",
66    "src/wallpaper_event_listener_stub.cpp",
67    "src/wallpaper_manager.cpp",
68    "src/wallpaper_manager_client.cpp",
69    "src/wallpaper_service_cb_stub.cpp",
70    "src/wallpaper_service_proxy.cpp",
71  ]
72  configs = [ ":wallpaper_manager_config" ]
73  public_configs = [ ":wallpaper_manager_config" ]
74  deps = [ "${utils_path}:wallpaper_utils" ]
75  external_deps = [
76    "c_utils:utils",
77    "hilog:libhilog",
78    "hitrace:hitrace_meter",
79    "image_framework:image_native",
80    "ipc:ipc_single",
81    "napi:ace_napi",
82    "player_framework:media_client",
83    "samgr:samgr_proxy",
84    "window_manager:libdm",
85  ]
86  subsystem_name = "theme"
87  part_name = "wallpaper_mgr"
88}
89
90ohos_prebuilt_etc("wallpaperdefault.jpeg") {
91  source = "data/wallpaperdefault.jpeg"
92  part_name = "wallpaper_mgr"
93  subsystem_name = "theme"
94}
95ohos_prebuilt_etc("wallpaperlockdefault.jpeg") {
96  source = "data/wallpaperlockdefault.jpeg"
97  part_name = "wallpaper_mgr"
98  subsystem_name = "theme"
99}
100