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")
15
16config("ui_appearance_interfaces_kits_napi_config") {
17  visibility = [ ":*" ]
18  include_dirs = [ "include" ]
19}
20
21ohos_shared_library("uiappearance") {
22  include_dirs = [ "include" ]
23  public_configs = [ ":ui_appearance_interfaces_kits_napi_config" ]
24  sources = [ "src/js_ui_appearance.cpp" ]
25
26  deps = [ "../../../services:ui_appearance_client" ]
27  external_deps = [
28    "c_utils:utils",
29    "hilog:libhilog",
30    "ipc:ipc_core",
31    "napi:ace_napi",
32  ]
33
34  cflags_cc = [
35    "-fvisibility=hidden",
36    "-fvisibility-inlines-hidden",
37    "-Oz",
38    "-fdata-sections",
39    "-ffunction-sections",
40    "-fno-asynchronous-unwind-tables",
41    "-fno-unwind-tables",
42  ]
43  ldflags = [ "-Wl,--gc-sections" ]
44
45  relative_install_dir = "module"
46  subsystem_name = "arkui"
47  part_name = "ui_appearance"
48}
49