1# Copyright (c) 2021-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("//build/ohos.gni") 15import("//foundation/multimodalinput/input/multimodalinput_mini.gni") 16 17gen_dst_dir = root_out_dir + "/diff_libmtdev_mmi" 18 19config("libmtdev-third_config") { 20 visibility = [ ":*" ] 21 22 include_dirs = [ 23 "$gen_dst_dir/src", 24 "$gen_dst_dir/include", 25 ] 26 27 cflags = [ 28 "-Wno-unused-parameter", 29 "-Wno-sign-compare", 30 "-DDISABLE_FILTER", 31 ] 32} 33 34config("libmtdev-third_public_config") { 35 include_dirs = [ "$gen_dst_dir/include" ] 36 37 cflags = [] 38} 39 40ohos_source_set("patch_gen_libmtdev-third-mmi") { 41 part_name = "input" 42 subsystem_name = "multimodalinput" 43 sources = patch_gen_libmtdev_third_mmi_sources 44 stack_protector_ret = true 45 sanitize = { 46 cfi = true 47 cfi_cross_dso = true 48 debug = false 49 } 50 configs = [ ":libmtdev-third_config" ] 51 52 public_configs = [ ":libmtdev-third_public_config" ] 53 54 deps = [ "//third_party/mtdev/patch:apply_patch" ] 55 56 public_deps = [] 57} 58 59ohos_shared_library("libmtdev-third-mmi") { 60 sources = [] 61 stack_protector_ret = true 62 sanitize = { 63 cfi = true 64 cfi_cross_dso = true 65 debug = false 66 } 67 configs = [ ":libmtdev-third_config" ] 68 69 public_configs = [ ":libmtdev-third_public_config" ] 70 71 deps = [ ":patch_gen_libmtdev-third-mmi" ] 72 73 public_deps = [] 74 75 part_name = "input" 76 subsystem_name = "multimodalinput" 77} 78