1# Copyright (c) 2021-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("//foundation/arkui/ace_engine/ace_config.gni") 16 17config("uiservice_manager_public_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "$ace_root/frameworks", 21 "include/", 22 ] 23 cflags = [] 24 if (target_cpu == "arm") { 25 cflags += [ "-DBINDER_IPC_32BIT" ] 26 } 27} 28 29ohos_shared_library("ui_service_mgr") { 30 if (current_os == "ohos") { 31 sanitize = { 32 integer_overflow = true 33 boundary_sanitize = true 34 debug = ace_sanitize_debug 35 } 36 } 37 38 sources = [ 39 "$ace_root/adapter/ohos/services/uiservice/src/ui_service_mgr_client.cpp", 40 "$ace_root/adapter/ohos/services/uiservice/src/ui_service_mgr_proxy.cpp", 41 "$ace_root/adapter/ohos/services/uiservice/src/ui_service_mgr_xcollie.cpp", 42 "$ace_root/adapter/ohos/services/uiservice/src/ui_service_proxy.cpp", 43 "$ace_root/adapter/ohos/services/uiservice/src/ui_service_stub.cpp", 44 ] 45 46 configs = [ 47 "$ace_root:ace_config", 48 "$ace_root:ace_coverage_config", 49 ] 50 51 public_configs = [ 52 ":uiservice_manager_public_config", 53 "$ace_root/adapter/ohos/services/uiservice:uiservicems_config", 54 ] 55 56 external_deps = [ 57 "ability_base:want", 58 "c_utils:utils", 59 "hilog:libhilog", 60 "ipc:ipc_core", 61 "samgr:samgr_proxy", 62 "window_manager:libwm", 63 ] 64 65 defines = [] 66 67 if (uiservice_xcollie_enable) { 68 external_deps += [ "hicollie:libhicollie" ] 69 defines += [ "UISERVICE_MGR_XCOLLIE_ENABLE" ] 70 } 71 72 subsystem_name = ace_engine_subsystem 73 innerapi_tags = [ "platformsdk_indirect" ] 74 part_name = ace_engine_part 75} 76