代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/third_party_ejdb 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#Copyright (c) 2019-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/ohos.gni")
iowow_src_dir = "//third_party/iowow/src"
action("copy_iowow_header") {
visibility = [ ":*" ]
script = "copy_iowow_header.py"
inputs = []
outputs = [
"$target_gen_dir/ejdb2/iowow/basedefs.h",
"$target_gen_dir/ejdb2/iowow/iowow.h",
"$target_gen_dir/ejdb2/iowow/iwarr.h",
"$target_gen_dir/ejdb2/iowow/iwbits.h",
"$target_gen_dir/ejdb2/iowow/iwconv.h",
"$target_gen_dir/ejdb2/iowow/iwdlsnr.h",
"$target_gen_dir/ejdb2/iowow/iwexfile.h",
"$target_gen_dir/ejdb2/iowow/iwfile.h",
"$target_gen_dir/ejdb2/iowow/iwfsmfile.h",
"$target_gen_dir/ejdb2/iowow/iwhmap.h",
"$target_gen_dir/ejdb2/iowow/iwkv.h",
"$target_gen_dir/ejdb2/iowow/iwlog.h",
"$target_gen_dir/ejdb2/iowow/iwp.h",
"$target_gen_dir/ejdb2/iowow/iwpool.h",
"$target_gen_dir/ejdb2/iowow/iwrdb.h",
"$target_gen_dir/ejdb2/iowow/iwre.h",
"$target_gen_dir/ejdb2/iowow/iwsha2.h",
"$target_gen_dir/ejdb2/iowow/iwstree.h",
"$target_gen_dir/ejdb2/iowow/iwstw.h",
"$target_gen_dir/ejdb2/iowow/iwth.h",
"$target_gen_dir/ejdb2/iowow/iwutils.h",
"$target_gen_dir/ejdb2/iowow/iwuuid.h",
"$target_gen_dir/ejdb2/iowow/iwxstr.h",
"$target_gen_dir/ejdb2/iowow/murmur3.h",
]
args = [
"--src-dir",
rebase_path(iowow_src_dir),
"--dst-dir",
rebase_path("$target_gen_dir/ejdb2/iowow"),
]
}
config("ejdb_public_config") {
include_dirs = [
"src",
"src/jbi",
"src/jbl",
"src/jql",
"src/util",
"$target_gen_dir",
]
}
config("ejdb_config") {
include_dirs = [
"src",
"src/jbi",
"src/jbl",
"src/jql",
"src/util",
"$target_gen_dir",
]
cflags = [
"-DNDEBUG",
"-O3",
"-Wall",
"-Wextra",
"-Wfatal-errors",
"-Wno-gnu-statement-expression",
"-Wno-implicit-fallthrough",
"-Wno-missing-braces",
"-Wno-missing-field-initializers",
"-Wno-shorten-64-to-32",
"-Wno-sign-compare",
"-Wno-unknown-pragmas",
"-Wno-unused-function",
"-Wno-unused-parameter",
"-fPIC",
"-fsigned-char",
"-pedantic",
"-std=gnu11",
]
defines = [
"IW_64",
"IW_API_EXPORTS",
"JB_PTHREADS",
"_DEFAULT_SOURCE",
"_FILE_OFFSET_BITS=64",
"_LARGEFILE_SOURCE",
"_XOPEN_SOURCE=600",
]
}
ohos_shared_library("ejdb") {
configs = [ ":ejdb_config" ]
public_configs = [ ":ejdb_public_config" ]
sources = [
"src/ejdb2.c",
"src/jbi/jbi_consumer.c",
"src/jbi/jbi_dup_scanner.c",
"src/jbi/jbi_full_scanner.c",
"src/jbi/jbi_pk_scanner.c",
"src/jbi/jbi_selection.c",
"src/jbi/jbi_sorter_consumer.c",
"src/jbi/jbi_uniq_scanner.c",
"src/jbi/jbi_util.c",
"src/jbl/binn.c",
"src/jbl/jbl.c",
"src/jbl/jbl_json.c",
"src/jql/jql.c",
"src/jql/jqp.c",
"src/util/utf8proc.c",
]
deps = [
":copy_iowow_header",
"//third_party/iowow:iowow",
]
version_script = "libejdb.map"
part_name = "ejdb"
subsystem_name = "thirdparty"
}
ohos_static_library("ejdb_static_lib_for_tdd") {
configs = [ ":ejdb_config" ]
public_configs = [ ":ejdb_public_config" ]
sources = [
"src/ejdb2.c",
"src/jbi/jbi_consumer.c",
"src/jbi/jbi_dup_scanner.c",
"src/jbi/jbi_full_scanner.c",
"src/jbi/jbi_pk_scanner.c",
"src/jbi/jbi_selection.c",
"src/jbi/jbi_sorter_consumer.c",
"src/jbi/jbi_uniq_scanner.c",
"src/jbi/jbi_util.c",
"src/jbl/binn.c",
"src/jbl/jbl.c",
"src/jbl/jbl_json.c",
"src/jql/jql.c",
"src/jql/jqp.c",
"src/util/utf8proc.c",
]
deps = [
":copy_iowow_header",
"//third_party/iowow:iowow",
]
part_name = "ejdb"
subsystem_name = "thirdparty"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。