提交 e1b02822 编写于 作者: S SimonLi

build: 增加LiteOS-M内核的适配

Signed-off-by: NSimonLi <likailong@huawei.com>
上级 d7ab2be0
......@@ -13,7 +13,14 @@
# limitations under the License.
#
shared_library("ace_kit_common") {
import("//build/lite/config/component/lite_component.gni")
lite_library("ace_kit_common") {
if (ohos_kernel_type == "liteos_m") {
target_type = "static_library"
} else {
target_type = "shared_library"
}
sources = [ "src/nativeapi_common.cpp" ]
cflags = [ "-Wall" ]
cflags_cc = cflags
......
......@@ -13,11 +13,17 @@
# limitations under the License.
#
shared_library("ace_kit_deviceinfo") {
import("//build/lite/config/component/lite_component.gni")
lite_library("ace_kit_deviceinfo") {
if (ohos_kernel_type == "liteos_m") {
target_type = "static_library"
} else {
target_type = "shared_library"
}
sources = [ "src/nativeapi_deviceinfo.cpp" ]
cflags = [ "-Wall" ]
cflags_cc = cflags
ldflags = [ "-shared" ]
include_dirs = [
"include",
......
......@@ -13,9 +13,15 @@
# limitations under the License.
#
import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/subsystem/aafwk/path.gni")
shared_library("ace_kit_file") {
lite_library("ace_kit_file") {
if (ohos_kernel_type == "liteos_m") {
target_type = "static_library"
} else {
target_type = "shared_library"
}
sources = [
"src/nativeapi_fs.cpp",
"src/nativeapi_fs_impl.c",
......
......@@ -13,9 +13,15 @@
# limitations under the License.
#
import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/subsystem/aafwk/path.gni")
shared_library("ace_kit_kvstore") {
lite_library("ace_kit_kvstore") {
if (ohos_kernel_type == "liteos_m") {
target_type = "static_library"
} else {
target_type = "shared_library"
}
sources = [
"src/nativeapi_kv.cpp",
"src/nativeapi_kv_impl.c",
......
# Copyright (c) 2020 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
# Copyright (c) 2020 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.
shared_library("kal_timer") {
sources = [
"src/kal.c",
]
cflags = ["-Wall"]
cflags_cc = cflags
include_dirs = [
"include",
"//utils/native/lite/include",
]
}
\ No newline at end of file
import("//build/lite/config/component/lite_component.gni")
lite_library("kal_timer") {
if (ohos_kernel_type == "liteos_m") {
target_type = "static_library"
} else {
target_type = "shared_library"
}
sources = [ "src/kal.c" ]
cflags = [ "-Wall" ]
cflags_cc = cflags
include_dirs = [
"include",
"//utils/native/lite/include",
]
}
# Copyright (c) 2020 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
# Copyright (c) 2020 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.
shared_library("ace_kit_timer") {
sources = [
"src/nativeapi_timer_task.c",
]
cflags = ["-Wall"]
cflags_cc = cflags
include_dirs = [
"include",
"//utils/native/lite/include",
"//utils/native/lite/kal/timer/include",
]
if (ohos_kernel_type == "liteos_a") {
include_dirs += ["//third_party/musl/include"]
}
public_deps = ["//utils/native/lite/kal/timer:kal_timer"]
}
\ No newline at end of file
import("//build/lite/config/component/lite_component.gni")
lite_library("ace_kit_timer") {
if (ohos_kernel_type == "liteos_m") {
target_type = "static_library"
} else {
target_type = "shared_library"
}
sources = [ "src/nativeapi_timer_task.c" ]
cflags = [ "-Wall" ]
cflags_cc = cflags
include_dirs = [
"include",
"//utils/native/lite/include",
"//utils/native/lite/kal/timer/include",
]
if (ohos_kernel_type == "liteos_a") {
include_dirs += [ "//third_party/musl/include" ]
}
public_deps = [ "//utils/native/lite/kal/timer:kal_timer" ]
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册