mirror of
https://github.com/openharmony/third_party_cJSON.git
synced 2026-07-19 18:23:31 -04:00
add OpenHarmony 1.0 baseline
This commit is contained in:
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
@@ -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
Regular → Executable
Regular → Executable
@@ -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
|
||||
@@ -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
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user