1885b47fbSopenharmony_ci# Copyright (C) 2022 Huawei Device Co., Ltd. 2885b47fbSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3885b47fbSopenharmony_ci# you may not use this file except in compliance with the License. 4885b47fbSopenharmony_ci# You may obtain a copy of the License at 5885b47fbSopenharmony_ci# 6885b47fbSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7885b47fbSopenharmony_ci# 8885b47fbSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9885b47fbSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10885b47fbSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11885b47fbSopenharmony_ci# See the License for the specific language governing permissions and 12885b47fbSopenharmony_ci# limitations under the License. 13885b47fbSopenharmony_ci 14885b47fbSopenharmony_ciimport("//build/ohos.gni") 15885b47fbSopenharmony_ciimport("../../accessibility_manager_service.gni") 16885b47fbSopenharmony_ci 17885b47fbSopenharmony_ciservices_path = "./" 18885b47fbSopenharmony_ci 19885b47fbSopenharmony_ciohos_prebuilt_etc("accessibility_service.rc") { 20885b47fbSopenharmony_ci source = "etc/accessibility_service.rc" 21885b47fbSopenharmony_ci relative_install_dir = "init" 22885b47fbSopenharmony_ci part_name = "accessibility" 23885b47fbSopenharmony_ci subsystem_name = "barrierfree" 24885b47fbSopenharmony_ci} 25885b47fbSopenharmony_ci 26885b47fbSopenharmony_ciconfig("aams_service_config") { 27885b47fbSopenharmony_ci visibility = [ ":*" ] 28885b47fbSopenharmony_ci 29885b47fbSopenharmony_ci include_dirs = [ 30885b47fbSopenharmony_ci "include", 31885b47fbSopenharmony_ci "../../common/log/include", 32885b47fbSopenharmony_ci ] 33885b47fbSopenharmony_ci 34885b47fbSopenharmony_ci defines = [ 35885b47fbSopenharmony_ci "AAMS_LOG_TAG = \"accessibility\"", 36885b47fbSopenharmony_ci "AAMS_LOG_DOMAIN = 0xD001D00", 37885b47fbSopenharmony_ci ] 38885b47fbSopenharmony_ci 39885b47fbSopenharmony_ci if (build_variant == "user") { 40885b47fbSopenharmony_ci defines += [ "RELEASE_VERSION" ] 41885b47fbSopenharmony_ci } 42885b47fbSopenharmony_ci 43885b47fbSopenharmony_ci defines += accessibility_default_defines 44885b47fbSopenharmony_ci} 45885b47fbSopenharmony_ci 46885b47fbSopenharmony_ciaccessibleabilityms_files = [ 47885b47fbSopenharmony_ci "${services_path}/src/accessible_ability_channel.cpp", 48885b47fbSopenharmony_ci "${services_path}/src/accessible_ability_connection.cpp", 49885b47fbSopenharmony_ci "${services_path}/src/accessible_ability_manager_service_event_handler.cpp", 50885b47fbSopenharmony_ci "${services_path}/src/accessible_ability_manager_service.cpp", 51885b47fbSopenharmony_ci "${services_path}/src/accessibility_account_data.cpp", 52885b47fbSopenharmony_ci "${services_path}/src/accessibility_circle_drawing_manager.cpp", 53885b47fbSopenharmony_ci "${services_path}/src/accessibility_settings.cpp", 54885b47fbSopenharmony_ci "${services_path}/src/accessibility_settings_config.cpp", 55885b47fbSopenharmony_ci "${services_path}/src/accessibility_window_connection.cpp", 56885b47fbSopenharmony_ci "${services_path}/src/accessibility_zoom_gesture.cpp", 57885b47fbSopenharmony_ci "${services_path}/src/accessibility_common_event.cpp", 58885b47fbSopenharmony_ci "${services_path}/src/accessibility_touch_guider.cpp", 59885b47fbSopenharmony_ci "${services_path}/src/accessibility_gesture_recognizer.cpp", 60885b47fbSopenharmony_ci "${services_path}/src/accessibility_event_transmission.cpp", 61885b47fbSopenharmony_ci "${services_path}/src/accessibility_input_interceptor.cpp", 62885b47fbSopenharmony_ci "${services_path}/src/accessibility_touchEvent_injector.cpp", 63885b47fbSopenharmony_ci "${services_path}/src/accessibility_keyevent_filter.cpp", 64885b47fbSopenharmony_ci "${services_path}/src/accessibility_mouse_autoclick.cpp", 65885b47fbSopenharmony_ci "${services_path}/src/accessibility_multifinger_multitap.cpp", 66885b47fbSopenharmony_ci "${services_path}/src/accessibility_mouse_key.cpp", 67885b47fbSopenharmony_ci "${services_path}/src/accessibility_screen_touch.cpp", 68885b47fbSopenharmony_ci "${services_path}/src/accessibility_short_key.cpp", 69885b47fbSopenharmony_ci "${services_path}/src/accessibility_window_manager.cpp", 70885b47fbSopenharmony_ci "${services_path}/src/utils.cpp", 71885b47fbSopenharmony_ci "${services_path}/src/accessibility_dumper.cpp", 72885b47fbSopenharmony_ci "${services_path}/src/accessibility_setting_observer.cpp", 73885b47fbSopenharmony_ci "${services_path}/src/accessibility_setting_provider.cpp", 74885b47fbSopenharmony_ci "${services_path}/src/accessibility_short_key_dialog.cpp", 75885b47fbSopenharmony_ci "${services_path}/src/accessibility_datashare_helper.cpp", 76885b47fbSopenharmony_ci] 77885b47fbSopenharmony_ci 78885b47fbSopenharmony_ciohos_shared_library("accessibleabilityms") { 79885b47fbSopenharmony_ci branch_protector_ret = "pac_ret" 80885b47fbSopenharmony_ci sanitize = { 81885b47fbSopenharmony_ci integer_overflow = true 82885b47fbSopenharmony_ci ubsan = true 83885b47fbSopenharmony_ci boundary_sanitize = true 84885b47fbSopenharmony_ci cfi = true 85885b47fbSopenharmony_ci cfi_cross_dso = true 86885b47fbSopenharmony_ci debug = false 87885b47fbSopenharmony_ci } 88885b47fbSopenharmony_ci 89885b47fbSopenharmony_ci sources = accessibleabilityms_files 90885b47fbSopenharmony_ci if (accessibility_feature_power_manager) { 91885b47fbSopenharmony_ci sources += [ "${services_path}/src/accessibility_power_manager.cpp" ] 92885b47fbSopenharmony_ci } 93885b47fbSopenharmony_ci 94885b47fbSopenharmony_ci if (accessibility_feature_display_manager) { 95885b47fbSopenharmony_ci sources += [ "${services_path}/src/accessibility_display_manager.cpp" ] 96885b47fbSopenharmony_ci } 97885b47fbSopenharmony_ci 98885b47fbSopenharmony_ci configs = [ 99885b47fbSopenharmony_ci ":aams_service_config", 100885b47fbSopenharmony_ci "../../resources/config/build:coverage_flags", 101885b47fbSopenharmony_ci ] 102885b47fbSopenharmony_ci 103885b47fbSopenharmony_ci version_script = "libaccessibilityms.map" 104885b47fbSopenharmony_ci 105885b47fbSopenharmony_ci deps = [ 106885b47fbSopenharmony_ci "../../common/interface:accessibility_interface", 107885b47fbSopenharmony_ci "../../interfaces/innerkits/common:accessibility_common", 108885b47fbSopenharmony_ci ] 109885b47fbSopenharmony_ci 110885b47fbSopenharmony_ci external_deps = [ 111885b47fbSopenharmony_ci "ability_base:want", 112885b47fbSopenharmony_ci "ability_base:zuri", 113885b47fbSopenharmony_ci "ability_runtime:ability_connect_callback_stub", 114885b47fbSopenharmony_ci "ability_runtime:ability_manager", 115885b47fbSopenharmony_ci "ability_runtime:abilitykit_native", 116885b47fbSopenharmony_ci "ability_runtime:dataobs_manager", 117885b47fbSopenharmony_ci "ability_runtime:extension_manager", 118885b47fbSopenharmony_ci "bundle_framework:appexecfwk_core", 119885b47fbSopenharmony_ci "c_utils:utils", 120885b47fbSopenharmony_ci "common_event_service:cesfwk_innerkits", 121885b47fbSopenharmony_ci "eventhandler:libeventhandler", 122885b47fbSopenharmony_ci "ffrt:libffrt", 123885b47fbSopenharmony_ci "graphic_2d:2d_graphics", 124885b47fbSopenharmony_ci "graphic_2d:librender_service_client", 125885b47fbSopenharmony_ci "hicollie:libhicollie", 126885b47fbSopenharmony_ci "hilog:libhilog", 127885b47fbSopenharmony_ci "init:libbegetutil", 128885b47fbSopenharmony_ci "input:libmmi-client", 129885b47fbSopenharmony_ci "ipc:ipc_single", 130885b47fbSopenharmony_ci "os_account:os_account_innerkits", 131885b47fbSopenharmony_ci "safwk:system_ability_fwk", 132885b47fbSopenharmony_ci "samgr:samgr_proxy", 133885b47fbSopenharmony_ci "window_manager:libdm", 134885b47fbSopenharmony_ci ] 135885b47fbSopenharmony_ci 136885b47fbSopenharmony_ci if (accessibility_feature_power_manager) { 137885b47fbSopenharmony_ci external_deps += [ "power_manager:powermgr_client" ] 138885b47fbSopenharmony_ci } 139885b47fbSopenharmony_ci 140885b47fbSopenharmony_ci if (accessibility_feature_display_manager) { 141885b47fbSopenharmony_ci external_deps += [ "display_manager:displaymgr" ] 142885b47fbSopenharmony_ci } 143885b47fbSopenharmony_ci 144885b47fbSopenharmony_ci if (accessibility_feature_data_share) { 145885b47fbSopenharmony_ci external_deps += [ "data_share:datashare_consumer" ] 146885b47fbSopenharmony_ci } 147885b47fbSopenharmony_ci 148885b47fbSopenharmony_ci if (accessibility_feature_hiviewdfx_hitrace) { 149885b47fbSopenharmony_ci external_deps += [ "hitrace:hitrace_meter" ] 150885b47fbSopenharmony_ci } 151885b47fbSopenharmony_ci 152885b47fbSopenharmony_ci if (accessibility_feature_hiviewdfx_hisysevent) { 153885b47fbSopenharmony_ci external_deps += [ "hisysevent:libhisysevent" ] 154885b47fbSopenharmony_ci } 155885b47fbSopenharmony_ci 156885b47fbSopenharmony_ci install_enable = true 157885b47fbSopenharmony_ci 158885b47fbSopenharmony_ci subsystem_name = "barrierfree" 159885b47fbSopenharmony_ci part_name = "accessibility" 160885b47fbSopenharmony_ci} 161