# Copyright (c) 2021-2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("//foundation/ability/ability_runtime/ability_runtime.gni") import("//foundation/arkui/ace_engine/ace_config.gni") config("uiservice_manager_public_config") { visibility = [ ":*" ] include_dirs = [ "$ace_root/frameworks", "include/", "//drivers/peripheral/base", "//foundation/graphic/graphic_2d/rosen/modules/render_service_client/core", "//foundation/graphic/graphic_2d/interfaces/innerkits/surface", "//foundation/graphic/graphic_2d/interfaces/innerkits/common", "//foundation/graphic/graphic_2d/utils/buffer_handle/export", "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/include", "//foundation/window/window_manager/interfaces/innerkits/wm", "$ability_runtime_innerkits_path/ability_manager/include/", "$ability_runtime_path/interfaces/kits/native/ability/native", "$ability_runtime_services_path/uiservicemgr/include", "//commonlibrary/c_utils/base/include", "//utils/system/safwk/native/include", ] cflags = [] if (target_cpu == "arm") { cflags += [ "-DBINDER_IPC_32BIT" ] } } ohos_shared_library("ui_service_mgr") { if (current_os == "ohos") { sanitize = { integer_overflow = true boundary_sanitize = true debug = ace_sanitize_debug } } sources = [ "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/ui_service_mgr_client.cpp", "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/ui_service_mgr_proxy.cpp", "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/ui_service_proxy.cpp", "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/ui_service_stub.cpp", ] configs = [ "$ace_root:ace_config", "$ace_root:ace_coverage_config", "//commonlibrary/c_utils/base:utils_config", ] public_configs = [ ":uiservice_manager_public_config", "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice:uiservicems_config", ] external_deps = [ "ability_base:want", "c_utils:utils", "hilog:libhilog", "ipc:ipc_core", "samgr:samgr_proxy", ] subsystem_name = ace_engine_subsystem innerapi_tags = [ "platformsdk_indirect" ] part_name = ace_engine_part }