提交 9bea5e3d 编写于 作者: L lnlan

feat(startup_init_lite): 提供syscap ndk接口

【背景】需提供syscap ndk接口

【修改方案】

syscap ndk接口
【影响】
对现有的产品编译不会有影响。

Change-Id: Ia8083f77c4d735379eea44731c04c4ce1fee59cc
Signed-off-by: Nlnlan <lanleinan3@huawei.com>
上级 4ab46e62
......@@ -54,6 +54,8 @@ ohos_shared_library("libbegetutil") {
deps += [ "//base/startup/init_lite/services/log:init_log" ]
symlink_target_name = [ "libdeviceinfo_ndk.z.so" ]
public_configs = [ ":exported_header_files" ]
part_name = "init"
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.
先完成此消息的编辑!
想要评论请 注册