1# Copyright (c) 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/graphic/graphic_surface/graphic_surface_config.gni") 16 17## hebc_white_list.so {{{ 18 19config("hebc_white_list_config") { 20 visibility = [ ":hebc_white_list" ] 21 22 cflags = [ 23 "-Wall", 24 "-Werror", 25 "-g3", 26 "-Wno-error=missing-braces", 27 "-Wno-error=#warnings", 28 ] 29} 30 31config("hebc_white_list_public_config") { 32 include_dirs = [ 33 ".", 34 "$graphic_surface_root/surface/include", 35 ] 36} 37 38ohos_static_library("hebc_white_list") { 39 sanitize = { 40 boundary_sanitize = true 41 integer_overflow = true 42 ubsan = true 43 } 44 sources = [ "hebc_white_list.cpp" ] 45 46 configs = [ ":hebc_white_list_config" ] 47 public_configs = [ ":hebc_white_list_public_config" ] 48 49 external_deps = [ 50 "c_utils:utils", 51 "config_policy:configpolicy_util", 52 "hilog:libhilog", 53 "jsoncpp:jsoncpp", 54 ] 55 56 subsystem_name = "graphic" 57 part_name = "graphic_surface" 58} 59 60## hebc_white_list.so }}} 61 62