1# 2# Copyright (c) Huawei Technologies Co., Ltd. 2023. All rights reserved. 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15import("//build/ohos.gni") 16 17libsec_sources = [ 18 "//third_party/bounds_checking_function/src/fscanf_s.c", 19 "//third_party/bounds_checking_function/src/fwscanf_s.c", 20 "//third_party/bounds_checking_function/src/gets_s.c", 21 "//third_party/bounds_checking_function/src/memcpy_s.c", 22 "//third_party/bounds_checking_function/src/memmove_s.c", 23 "//third_party/bounds_checking_function/src/memset_s.c", 24 "//third_party/bounds_checking_function/src/scanf_s.c", 25 "//third_party/bounds_checking_function/src/securecutil.c", 26 "//third_party/bounds_checking_function/src/secureinput_a.c", 27 "//third_party/bounds_checking_function/src/secureinput_w.c", 28 "//third_party/bounds_checking_function/src/secureprintoutput_a.c", 29 "//third_party/bounds_checking_function/src/secureprintoutput_w.c", 30 "//third_party/bounds_checking_function/src/snprintf_s.c", 31 "//third_party/bounds_checking_function/src/sprintf_s.c", 32 "//third_party/bounds_checking_function/src/sscanf_s.c", 33 "//third_party/bounds_checking_function/src/strcat_s.c", 34 "//third_party/bounds_checking_function/src/strcpy_s.c", 35 "//third_party/bounds_checking_function/src/strncat_s.c", 36 "//third_party/bounds_checking_function/src/strncpy_s.c", 37 "//third_party/bounds_checking_function/src/strtok_s.c", 38 "//third_party/bounds_checking_function/src/swprintf_s.c", 39 "//third_party/bounds_checking_function/src/swscanf_s.c", 40 "//third_party/bounds_checking_function/src/vfscanf_s.c", 41 "//third_party/bounds_checking_function/src/vfwscanf_s.c", 42 "//third_party/bounds_checking_function/src/vscanf_s.c", 43 "//third_party/bounds_checking_function/src/vsnprintf_s.c", 44 "//third_party/bounds_checking_function/src/vsprintf_s.c", 45 "//third_party/bounds_checking_function/src/vsscanf_s.c", 46 "//third_party/bounds_checking_function/src/vswprintf_s.c", 47 "//third_party/bounds_checking_function/src/vswscanf_s.c", 48 "//third_party/bounds_checking_function/src/vwscanf_s.c", 49 "//third_party/bounds_checking_function/src/wcscat_s.c", 50 "//third_party/bounds_checking_function/src/wcscpy_s.c", 51 "//third_party/bounds_checking_function/src/wcsncat_s.c", 52 "//third_party/bounds_checking_function/src/wcsncpy_s.c", 53 "//third_party/bounds_checking_function/src/wcstok_s.c", 54 "//third_party/bounds_checking_function/src/wmemcpy_s.c", 55 "//third_party/bounds_checking_function/src/wmemmove_s.c", 56 "//third_party/bounds_checking_function/src/wscanf_s.c", 57] 58 59ohos_source_set("libsec_static") { 60 sources = libsec_sources 61 include_dirs = [ "include" ] 62 cflags = [ 63 "-D_INC_STRING_S", 64 "-D_INC_WCHAR_S", 65 "-D_SECIMP=//", 66 "-D_STDIO_S_DEFINED", 67 "-D_INC_STDIO_S", 68 "-D_INC_STDLIB_S", 69 "-D_INC_MEMORY_S", 70 ] 71} 72