未验证 提交 82207c9e 编写于 作者: O openharmony_ci 提交者: Gitee

!338 feat(startup_init_lite): 提供syscap ndk接口

Merge pull request !338 from lnlan/add_syscap_ndk
...@@ -54,6 +54,8 @@ ohos_shared_library("libbegetutil") { ...@@ -54,6 +54,8 @@ ohos_shared_library("libbegetutil") {
deps += [ "//base/startup/init_lite/services/log:init_log" ] deps += [ "//base/startup/init_lite/services/log:init_log" ]
symlink_target_name = [ "libdeviceinfo_ndk.z.so" ]
public_configs = [ ":exported_header_files" ] public_configs = [ ":exported_header_files" ]
part_name = "init" part_name = "init"
install_images = [ install_images = [
......
# 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")
ohos_ndk_library("libdeviceinfo_ndk") {
output_name = "deviceinfo_ndk"
ndk_description_file = "./libdeviceinfo.ndk.json"
min_compact_version = "1"
}
ohos_ndk_headers("deviceinfo_header") {
dest_dir = "$ndk_headers_out_dir/"
sources = [ "./include/systemcapability.h" ]
}
/*
* 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.
*/
#ifndef INIT_SYSCAP_API_H
#define INIT_SYSCAP_API_H
#include <stdbool.h>
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif
bool HasSystemCapability(const char *cap);
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
#endif
\ No newline at end of file
[
{
"name": "HasSystemCapability"
}
]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册