From 5aed843804808335959fa9dd3ab2ac27f78e44fb Mon Sep 17 00:00:00 2001 From: lidw Date: Tue, 19 Oct 2021 10:56:15 +0800 Subject: [PATCH 1/2] tmp Change-Id: Ifad3692982568cc5d9e62c3bb18ef0883a3fe637 --- lite/BUILD.gn | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lite/BUILD.gn diff --git a/lite/BUILD.gn b/lite/BUILD.gn new file mode 100644 index 0000000..4f71c42 --- /dev/null +++ b/lite/BUILD.gn @@ -0,0 +1,33 @@ +# Copyright (c) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/lite/config/component/lite_component.gni") + +shared_library("lite_sqlite") { + configs -= [ "//build/lite/config:language_c" ] + cflags = [ "-fPIC", "-WL", "-Os" ] + sources = [ + "//third_party/sqlite/src/sqlite3.c", + ] + include_dirs = [ + "//third_party/sqlite/include", + ] + defines = [ + "SQLITE_HAS_CODEC", + "USE_SQLITE_SYMBOLS", + ] + public_deps = [ + "//third_party/bounds_checking_function:libsec_shared", + "//build/lite/config/component/openssl:openssl_shared", + ] +} \ No newline at end of file -- Gitee From ae74cfa8c7724b1b8ab064e0f95ff3d03031aee9 Mon Sep 17 00:00:00 2001 From: lidw Date: Fri, 5 Nov 2021 11:19:29 +0800 Subject: [PATCH 2/2] Change macro defines. Change-Id: Id0821a6bd0a27866b1bebeb7d0f0bc11167aca8a --- lite/BUILD.gn | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lite/BUILD.gn b/lite/BUILD.gn index 4f71c42..421ebf2 100644 --- a/lite/BUILD.gn +++ b/lite/BUILD.gn @@ -2,9 +2,9 @@ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -23,8 +23,9 @@ shared_library("lite_sqlite") { "//third_party/sqlite/include", ] defines = [ - "SQLITE_HAS_CODEC", + # "SQLITE_HAS_CODEC", "USE_SQLITE_SYMBOLS", + "SQLITE3_HW_EXPORT_SYMBOLS", ] public_deps = [ "//third_party/bounds_checking_function:libsec_shared", -- Gitee