From 8aa1a82d1f4084fa76d4f61e0d0c8c83020f1ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=AB=E5=BF=B5?= Date: Thu, 8 May 2025 21:52:29 +0800 Subject: [PATCH 1/3] hyperaio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 别念 hyperaio Signed-off-by: 别念 hyperaio Signed-off-by: 别念 hyperaio Signed-off-by: 别念 --- bundle.json | 15 ++++++- interfaces/kits/hyperaio/BUILD.gn | 65 +++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 interfaces/kits/hyperaio/BUILD.gn diff --git a/bundle.json b/bundle.json index 78b145b37..a453bdc00 100644 --- a/bundle.json +++ b/bundle.json @@ -43,7 +43,8 @@ "napi", "samgr", "app_file_service", - "os_account" + "os_account", + "liburing" ], "third_party": [ "e2fsprogs", @@ -57,7 +58,8 @@ "//foundation/filemanagement/file_api/interfaces/kits/js:build_kits_js", "//foundation/filemanagement/file_api/interfaces/kits/ts/streamrw:streamrw_packages", "//foundation/filemanagement/file_api/interfaces/kits/ts/streamhash:streamhash_packages", - "//foundation/filemanagement/file_api/interfaces/kits/cj:fs_ffi_packages" + "//foundation/filemanagement/file_api/interfaces/kits/cj:fs_ffi_packages", + "//foundation/filemanagement/file_api/interfaces/kits/hyperaio:group_hyperaio" ], "service_group": [] }, @@ -71,6 +73,15 @@ "header_base": "//foundation/filemanagement/file_api/interfaces/kits/native/remote_uri" } }, + { + "name": "//foundation/filemanagement/file_api/interfaces/kits/hyperaio:HyperAio", + "header": { + "header_files": [ + "hyperaio.h" + ], + "header_base": "//foundation/filemanagement/file_api/interfaces/kits/hyperaio/include" + } + }, { "name": "//foundation/filemanagement/file_api/interfaces/kits/native:environment_native", "header": { diff --git a/interfaces/kits/hyperaio/BUILD.gn b/interfaces/kits/hyperaio/BUILD.gn new file mode 100644 index 000000000..ce621d125 --- /dev/null +++ b/interfaces/kits/hyperaio/BUILD.gn @@ -0,0 +1,65 @@ +# Copyright (c) 2025 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") +import("//foundation/filemanagement/file_api/file_api.gni") + +group("group_hyperaio") { + deps = [ + ":HyperAio", + ] +} + +config("hyperaio_config") { + visibility = [ ":*" ] + include_dirs = [ "include" ] +} + +ohos_shared_library("HyperAio") { + if (!use_mingw_win && !use_mac) { + cflags = [ + "-fdata-sections", + "-ffunction-sections", + "-Oz", + ] + cflags_cc = [ + "-fvisibility-inlines-hidden", + "-Oz", + ] + branch_protector_ret = "pac_ret" + sanitize = { + integer_overflow = true + ubsan = true + boundary_sanitize = true + cfi = true + cfi_cross_dso = true + debug = false + } + } + + sources = [ "src/hyperaio.cpp" ] + + public_configs = [ ":hyperaio_config" ] + + deps = [ "${utils_path}/filemgmt_libhilog:filemgmt_libhilog"] + + external_deps = [ + "c_utils:utils", + "liburing:liburing", + "hilog:libhilog", + ] + + innerapi_tags = [ "platformsdk" ] + part_name = "file_api" + subsystem_name = "filemanagement" +} \ No newline at end of file -- Gitee From 66ebf8296b967f08a3c1cb6c78c05682c54daea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=AB=E5=BF=B5?= Date: Sat, 10 May 2025 09:23:55 +0800 Subject: [PATCH 2/3] 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 别念 --- interfaces/kits/hyperaio/BUILD.gn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interfaces/kits/hyperaio/BUILD.gn b/interfaces/kits/hyperaio/BUILD.gn index ce621d125..5a35a775c 100644 --- a/interfaces/kits/hyperaio/BUILD.gn +++ b/interfaces/kits/hyperaio/BUILD.gn @@ -51,12 +51,14 @@ ohos_shared_library("HyperAio") { public_configs = [ ":hyperaio_config" ] - deps = [ "${utils_path}/filemgmt_libhilog:filemgmt_libhilog"] + deps = [ ] external_deps = [ "c_utils:utils", "liburing:liburing", "hilog:libhilog", + "ipc:ipc_core", + "access_token:libaccesstoken_sdk" ] innerapi_tags = [ "platformsdk" ] -- Gitee From 8059580b158d5324167a1d081900e15856cbe736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=AB=E5=BF=B5?= Date: Sat, 10 May 2025 18:40:15 +0800 Subject: [PATCH 3/3] fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 别念 --- interfaces/kits/hyperaio/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/kits/hyperaio/BUILD.gn b/interfaces/kits/hyperaio/BUILD.gn index 5a35a775c..0ac7313ef 100644 --- a/interfaces/kits/hyperaio/BUILD.gn +++ b/interfaces/kits/hyperaio/BUILD.gn @@ -61,7 +61,7 @@ ohos_shared_library("HyperAio") { "access_token:libaccesstoken_sdk" ] - innerapi_tags = [ "platformsdk" ] + install_images = [ "system" ] part_name = "file_api" subsystem_name = "filemanagement" } \ No newline at end of file -- Gitee