代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/third_party_sqlite 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Copyright (C) 2022 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/ohos.gni")
is_cross_platform_build =
defined(build_cross_platform_version) && build_cross_platform_version
# Lets callers do '#include <sqlite3.h>'
config("sqlite_config") {
include_dirs = [
"include",
"//commonlibrary/c_utils/base/include",
]
}
# This is the configuration used to build sqlite itself.
# It should not be needed outside of this library.
config("sqlite3_private_config") {
visibility = [ ":*" ]
include_dirs = [ "include" ]
}
group("libsqlite") {
public_deps = [ ":sqlite" ]
}
ohos_shared_library("sqlite") {
visibility = [ "//foundation/distributeddatamgr/*" ]
visibility += [ "//foundation/multimodalinput/*" ]
visibility +=
[ "//hit/fuzzing_test/projects/multimodal_InputService_fuzzer/*" ]
visibility += [ "//foundation/communication/*" ]
visibility += [ "//build/common/*" ]
visibility += [ ":*" ]
visibility += [ "//base/security/permission/*" ]
visibility += [ "//third_party/libsoup/*" ]
visibility += [ "//base/security/access_token/*" ]
visibility += [ "//foundation/resourceschedule/resource_schedule_service/*" ]
sources = [ "src/sqlite3.c" ]
defines = [
"NDEBUG=1",
"HAVE_USLEEP=1",
"SQLITE_HAVE_ISNAN",
"SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576",
"SQLITE_THREADSAFE=2",
"SQLITE_TEMP_STORE=3",
"SQLITE_POWERSAFE_OVERWRITE=1",
"SQLITE_DEFAULT_FILE_FORMAT=4",
"SQLITE_DEFAULT_AUTOVACUUM=1",
"SQLITE_ENABLE_MEMORY_MANAGEMENT=1",
"SQLITE_ENABLE_FTS3",
"SQLITE_ENABLE_FTS4",
"SQLITE_ENABLE_FTS5",
"SQLITE_OMIT_COMPILEOPTION_DIAGS",
"SQLITE_OMIT_LOAD_EXTENSION",
"SQLITE_DEFAULT_FILE_PERMISSIONS=0660",
"SQLITE_SECURE_DELETE",
"SQLITE_ENABLE_BATCH_ATOMIC_WRITE",
"USE_PREAD64",
"fdatasync=fdatasync",
"HAVE_MALLOC_H=1",
"HAVE_MALLOC_USABLE_SIZE",
"SQLITE_DIRECT_OVERFLOW_READ",
"SQLITE_HAS_CODEC",
"SQLITE_EXPORT_SYMBOLS",
"SQLITE_SHARED_BLOCK_OPTIMIZATION",
"SQLITE_CODEC_ATTACH_CHANGED",
"SQLITE_ENABLE_DROPTABLE_CALLBACK",
"OPENSSL_SUPPRESS_DEPRECATED",
]
cflags_c = [
"-fvisibility=hidden",
"-Wno-implicit-fallthrough",
]
if (target_os != "ios") {
ldflags = [ "-Wl,--exclude-libs,ALL" ]
}
deps = [ "//third_party/openssl:libcrypto_shared" ]
public_configs = [ ":sqlite_config" ]
configs = [ ":sqlite3_private_config" ]
innerapi_tags = [ "platformsdk_indirect" ]
part_name = "sqlite"
subsystem_name = "thirdparty"
install_images = [ system_base_dir ]
relative_install_dir = "platformsdk"
if (is_cross_platform_build) {
if (target_os == "ios") {
deps += [ "//third_party/bounds_checking_function:libsec_shared" ]
} else {
deps += [ "//commonlibrary/c_utils/base:utils" ]
}
} else {
external_deps = [ "c_utils:utils" ]
}
}
ohos_executable("sqlite3") {
include_dirs = [ "include" ]
sources = [
"src/shell.c",
"src/sqlite3.c",
]
defines = [
"NDEBUG=1",
"HAVE_USLEEP=1",
"SQLITE_HAVE_ISNAN",
"SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576",
"SQLITE_THREADSAFE=2",
"SQLITE_TEMP_STORE=3",
"SQLITE_POWERSAFE_OVERWRITE=1",
"SQLITE_DEFAULT_FILE_FORMAT=4",
"SQLITE_DEFAULT_AUTOVACUUM=1",
"SQLITE_ENABLE_MEMORY_MANAGEMENT=1",
"SQLITE_ENABLE_FTS3",
"SQLITE_ENABLE_FTS4",
"SQLITE_OMIT_COMPILEOPTION_DIAGS",
"SQLITE_OMIT_LOAD_EXTENSION",
"SQLITE_DEFAULT_FILE_PERMISSIONS=0600",
"SQLITE_SECURE_DELETE",
"SQLITE_ENABLE_BATCH_ATOMIC_WRITE",
"USE_PREAD64",
"fdatasync=fdatasync",
"SQLITE_DIRECT_OVERFLOW_READ",
"SQLITE_SHARED_BLOCK_OPTIMIZATION",
"OPENSSL_SUPPRESS_DEPRECATED",
]
cflags = [
"-Wno-error=implicit-function-declaration",
"-Wno-implicit-fallthrough",
]
}
if (is_mingw || is_mac) {
ohos_shared_library("sqlite_sdk") {
include_dirs = [
"include",
"//third_party/bounds_checking_function/include",
"//third_party/openssl/include",
]
sources = [ "src/sqlite3.c" ]
defines = [
"NDEBUG=1",
"HAVE_USLEEP=1",
"SQLITE_HAVE_ISNAN",
"SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576",
"SQLITE_THREADSAFE=2",
"SQLITE_TEMP_STORE=3",
"SQLITE_POWERSAFE_OVERWRITE=1",
"SQLITE_DEFAULT_FILE_FORMAT=4",
"SQLITE_DEFAULT_AUTOVACUUM=1",
"SQLITE_ENABLE_MEMORY_MANAGEMENT=1",
"SQLITE_ENABLE_FTS3",
"SQLITE_ENABLE_FTS4",
"SQLITE_OMIT_COMPILEOPTION_DIAGS",
"SQLITE_OMIT_LOAD_EXTENSION",
"SQLITE_DEFAULT_FILE_PERMISSIONS=0600",
"SQLITE_SECURE_DELETE",
"SQLITE_ENABLE_BATCH_ATOMIC_WRITE",
"USE_PREAD64",
"fdatasync=fdatasync",
"SQLITE_DIRECT_OVERFLOW_READ",
"SQLITE_HAS_CODEC",
"SQLITE_EXPORT_SYMBOLS",
"SQLITE_SHARED_BLOCK_OPTIMIZATION",
"OPENSSL_SUPPRESS_DEPRECATED",
]
remove_configs = [ "//build/config/compiler:chromium_code" ]
deps = [
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/openssl:libcrypto_restool",
]
if (is_mingw) {
libs = [ "//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib/libws2_32.a" ]
}
cflags = [
"-Wno-error=implicit-function-declaration",
"-Wno-implicit-fallthrough",
]
}
}
if (is_cross_platform_build) {
ohos_static_library("sqlite_static") {
visibility = [ "//foundation/distributeddatamgr/*" ]
visibility += [ "//foundation/multimodalinput/*" ]
visibility +=
[ "//hit/fuzzing_test/projects/multimodal_InputService_fuzzer/*" ]
visibility += [ "//foundation/communication/*" ]
visibility += [ "//build/common/*" ]
visibility += [ ":*" ]
visibility += [ "//base/security/permission/*" ]
visibility += [ "//third_party/libsoup/*" ]
visibility += [ "//base/security/access_token/*" ]
visibility +=
[ "//foundation/resourceschedule/resource_schedule_service/*" ]
sources = [ "src/sqlite3.c" ]
defines = [
"NDEBUG=1",
"HAVE_USLEEP=1",
"SQLITE_HAVE_ISNAN",
"SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576",
"SQLITE_THREADSAFE=2",
"SQLITE_TEMP_STORE=3",
"SQLITE_POWERSAFE_OVERWRITE=1",
"SQLITE_DEFAULT_FILE_FORMAT=4",
"SQLITE_DEFAULT_AUTOVACUUM=1",
"SQLITE_ENABLE_MEMORY_MANAGEMENT=1",
"SQLITE_ENABLE_FTS3",
"SQLITE_ENABLE_FTS4",
"SQLITE_ENABLE_FTS5",
"SQLITE_OMIT_COMPILEOPTION_DIAGS",
"SQLITE_OMIT_LOAD_EXTENSION",
"SQLITE_DEFAULT_FILE_PERMISSIONS=0660",
"SQLITE_SECURE_DELETE",
"SQLITE_ENABLE_BATCH_ATOMIC_WRITE",
"USE_PREAD64",
"fdatasync=fdatasync",
"HAVE_MALLOC_H=1",
"HAVE_MALLOC_USABLE_SIZE",
"SQLITE_DIRECT_OVERFLOW_READ",
"SQLITE_HAS_CODEC",
"SQLITE_EXPORT_SYMBOLS",
"SQLITE_SHARED_BLOCK_OPTIMIZATION",
"SQLITE_CODEC_ATTACH_CHANGED",
"SQLITE_ENABLE_DROPTABLE_CALLBACK",
"OPENSSL_SUPPRESS_DEPRECATED",
]
cflags_c = [
"-fvisibility=hidden",
"-Wno-implicit-fallthrough",
]
deps = [
"//third_party/bounds_checking_function:libsec_static",
"//third_party/openssl:libcrypto_static",
]
public_configs = [ ":sqlite_config" ]
configs = [ ":sqlite3_private_config" ]
part_name = "sqlite"
subsystem_name = "thirdparty"
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。