From d73aff846bec6d4baa3a96347ae58dec85b2528c Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Fri, 26 Nov 2021 11:04:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=86=85=E6=A0=B8=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=AE=89=E5=85=A8=E5=87=BD=E6=95=B0=E5=BA=93=E5=A4=8D?= =?UTF-8?q?=E7=94=A8=E4=B8=89=E6=96=B9=E5=AE=89=E5=85=A8=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=BA=93=E4=B8=AD=E7=9A=84=E9=85=8D=E7=BD=AE=E6=B8=85=E5=8D=95?= =?UTF-8?q?=EF=BC=8C=E5=87=8F=E5=B0=91=E5=86=97=E4=BD=99=20close:=20#I4JUK?= =?UTF-8?q?M?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: arvinzzz Change-Id: I30115a12b9244ac4821c443a838aa248b47d4fb9 --- lib/libsec/BUILD.gn | 45 +++------------------------------------------ 1 file changed, 3 insertions(+), 42 deletions(-) diff --git a/lib/libsec/BUILD.gn b/lib/libsec/BUILD.gn index f93a7652..983f624f 100644 --- a/lib/libsec/BUILD.gn +++ b/lib/libsec/BUILD.gn @@ -28,56 +28,17 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import("//kernel/liteos_a/liteos.gni") +import("//third_party/bounds_checking_function/libsec_src.gni") module_switch = defined(LOSCFG_LIB_LIBC) module_name = get_path_info(rebase_path("."), "name") kernel_module(module_name) { - sources = [ - "$LITEOSTHIRDPARTY/bounds_checking_function/src/fscanf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/fwscanf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/gets_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/memcpy_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/memmove_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/memset_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/scanf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/securecutil.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/secureinput_a.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/secureinput_w.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/secureprintoutput_a.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/secureprintoutput_w.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/snprintf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/sprintf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/sscanf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/strcat_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/strcpy_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/strncat_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/strncpy_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/strtok_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/swprintf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/swscanf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/vfscanf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/vfwscanf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/vscanf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/vsnprintf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/vsprintf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/vsscanf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/vswprintf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/vswscanf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/vwscanf_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/wcscat_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/wcscpy_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/wcsncat_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/wcsncpy_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/wcstok_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/wmemcpy_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/wmemmove_s.c", - "$LITEOSTHIRDPARTY/bounds_checking_function/src/wscanf_s.c", - ] + sources = libsec_sources public_configs = [ ":public" ] } config("public") { - include_dirs = [ "$LITEOSTHIRDPARTY/bounds_checking_function/include" ] + include_dirs = libsec_include_dirs defines = [ "SECUREC_IN_KERNEL=0" ] }