add OpenHarmony 1.0 baseline

This commit is contained in:
wenjun
2020-09-09 09:26:41 +08:00
parent b30476c3ae
commit 2c251595b3
225 changed files with 46 additions and 11604 deletions
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
+46 -19
View File
@@ -1,27 +1,54 @@
# Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
# 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.
import("//build/ohos.gni")
import("//build/lite/config/component/lite_component.gni")
import("//build/lite/ndk/ndk.gni")
config("cJSON_config") {
config("cjson_config") {
include_dirs = [
".",
".",
]
}
ohos_source_set("cjson_src") {
sources = [
"cJSON.c",
cjson_sources = [
"cJSON.c",
"cJSON_Utils.c",
]
lite_library("cjson_static") {
target_type = "static_library"
sources = cjson_sources
public_configs = [ ":cjson_config" ]
}
lite_library("cjson_shared") {
target_type = "shared_library"
sources = cjson_sources
public_configs = [ ":cjson_config" ]
}
ndk_lib("cjson_ndk") {
if (board_name != "hi3861v100") {
lib_extension = ".so"
deps = [
":cjson_shared"
]
} else {
deps = [
":cjson_static"
]
}
head_files = [
"//third_party/cJSON"
]
configs = [":cJSON_config"]
}
ohos_static_library("cjson_static") {
deps = [":cjson_src"]
public_configs = [":cJSON_config"]
}
ohos_shared_library("cjson") {
deps = [":cjson_src"]
public_configs = [":cJSON_config"]
subsystem_name = "hiviewdfx"
}
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
-7
View File
@@ -1,7 +0,0 @@
Copyright (c) 2009-2019 Dave Gamble and cJSON contributors
Copyright (c) 2010 James Grenning and Contributed to Unity Project
Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
Copyright (c) 2007 - 2017 Unity Project by Mike Karlesky, Mark VanderVoord, and Greg Williams
Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
Copyright (c) 2015 Alexander Mueller / XelaRellum@web.de
Regular → Executable
View File
Regular → Executable
View File
-1
View File
@@ -1 +0,0 @@
LICENSE
-12
View File
@@ -1,12 +0,0 @@
[
{
"Name": "cJSON",
"License": "MIT License",
"License File": "LICENSE",
"Version Number": "1.7.13",
"Owner": "sirius.liwei@huawei.com",
"Upstream URL": "https://github.com/DaveGamble/cJSON/releases",
"Description": "Ultralightweight JSON parser in ANSI C."
}
]
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
View File
View File
Regular → Executable
View File
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
View File
View File
View File
Regular → Executable
View File
View File
View File
View File
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File

Some files were not shown because too many files have changed in this diff Show More