1ce968135Sopenharmony_ci# Copyright (C) 2022 Huawei Device Co., Ltd.
2ce968135Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3ce968135Sopenharmony_ci# you may not use this file except in compliance with the License.
4ce968135Sopenharmony_ci# You may obtain a copy of the License at
5ce968135Sopenharmony_ci#
6ce968135Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7ce968135Sopenharmony_ci#
8ce968135Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9ce968135Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10ce968135Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11ce968135Sopenharmony_ci# See the License for the specific language governing permissions and
12ce968135Sopenharmony_ci# limitations under the License.
13ce968135Sopenharmony_ci
14ce968135Sopenharmony_ciimport("//build/ohos.gni")
15ce968135Sopenharmony_ciohos_shared_library("wallpaper_utils") {
16ce968135Sopenharmony_ci  if (use_musl) {
17ce968135Sopenharmony_ci    if (musl_use_jemalloc && musl_use_jemalloc_dfx_intf) {
18ce968135Sopenharmony_ci      defines = [ "CONFIG_USE_JEMALLOC_DFX_INTF" ]
19ce968135Sopenharmony_ci    }
20ce968135Sopenharmony_ci  }
21ce968135Sopenharmony_ci  sources = [
22ce968135Sopenharmony_ci    "dfx/hidumper_adapter/command.cpp",
23ce968135Sopenharmony_ci    "dfx/hidumper_adapter/dump_helper.cpp",
24ce968135Sopenharmony_ci    "dfx/hisysevent_adapter/fault_reporter.cpp",
25ce968135Sopenharmony_ci    "src/file_deal.cpp",
26ce968135Sopenharmony_ci    "src/memory_guard.cpp",
27ce968135Sopenharmony_ci  ]
28ce968135Sopenharmony_ci  include_dirs = [
29ce968135Sopenharmony_ci    "dfx/hidumper_adapter",
30ce968135Sopenharmony_ci    "dfx/hisysevent_adapter",
31ce968135Sopenharmony_ci    "include",
32ce968135Sopenharmony_ci  ]
33ce968135Sopenharmony_ci  external_deps = [
34ce968135Sopenharmony_ci    "hilog:libhilog",
35ce968135Sopenharmony_ci    "hisysevent:libhisysevent",
36ce968135Sopenharmony_ci  ]
37ce968135Sopenharmony_ci  subsystem_name = "theme"
38ce968135Sopenharmony_ci  innerapi_tags = [ "platformsdk_indirect" ]
39ce968135Sopenharmony_ci  part_name = "wallpaper_mgr"
40ce968135Sopenharmony_ci}
41