1# Copyright (c) 2025 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("mock_ui_sa_config") { 18 visibility = [ ":*" ] 19 if (current_os == "ohos") { 20 defines = [ "OHOS_PLATFORM" ] 21 } 22 cflags = [] 23 if (target_cpu == "arm") { 24 cflags += [ "-DBINDER_IPC_32BIT" ] 25 } 26} 27 28ohos_shared_library("mock_ui_sa") { 29 if (current_os == "ohos") { 30 sanitize = { 31 integer_overflow = true 32 boundary_sanitize = true 33 debug = ace_sanitize_debug 34 } 35 } 36 sources = [ 37 "$ace_root/adapter/ohos/entrance/ui_session/test/mock_ui_sa_service.cpp", 38 "$ace_root/adapter/ohos/entrance/ui_session/test/mock_ui_sa_stub.cpp", 39 ] 40 41 configs = [ "$ace_root:ace_config" ] 42 43 public_configs = [ ":mock_ui_sa_config" ] 44 45 external_deps = [ 46 "c_utils:utils", 47 "hilog:libhilog", 48 "image_framework:image_native", 49 "ipc:ipc_core", 50 "safwk:system_ability_fwk", 51 "window_manager:libwm", 52 ] 53 deps = [ "$ace_root/interfaces/inner_api/ui_session:ui_session" ] 54 subsystem_name = ace_engine_subsystem 55 innerapi_tags = [ "platformsdk_indirect" ] 56 part_name = ace_engine_part 57} 58