1# Copyright (c) 2024-2024 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("../../multimodalinput_mini.gni") 15 16config("screen_capture_config") { 17 include_dirs = [ 18 "${mmi_path}/util/common/include", 19 "${mmi_path}/util/screen_capture/include", 20 ] 21} 22 23ohos_shared_library("libmmi-screen_capture") { 24 sources = [ 25 "src/input_screen_capture.cpp", 26 "src/input_screen_capture_monitor_listener.cpp", 27 ] 28 branch_protector_ret = "pac_ret" 29 sanitize = { 30 integer_overflow = true 31 ubsan = true 32 boundary_sanitize = true 33 cfi = true 34 cfi_cross_dso = true 35 debug = false 36 } 37 38 configs = [ "${mmi_path}:coverage_flags" ] 39 40 public_configs = [ ":screen_capture_config" ] 41 42 deps = [ "${mmi_path}/util:libmmi-util" ] 43 44 external_deps = [ 45 "c_utils:utils", 46 "hilog:libhilog", 47 ] 48 49 if (enable_player_framework) { 50 external_deps += [ "player_framework:media_client" ] 51 } 52 53 innerapi_tags = [ "platformsdk" ] 54 part_name = "input" 55 subsystem_name = "multimodalinput" 56} 57