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

!29 三方开源软件部件名称使用原始名称,统一归属到thirdparty子系统

Merge pull request !29 from peitaiyi/master
......@@ -12,8 +12,6 @@
#limitations under the License.
if (defined(ohos_lite)) {
import("//build/lite/config/component/lite_component.gni")
import("//build/lite/ndk/ndk.gni")
config("cjson_config") {
include_dirs = [ "." ]
ldflags = [ "-lm" ]
......@@ -23,25 +21,15 @@ if (defined(ohos_lite)) {
"cJSON_Utils.c",
]
lite_library("cjson_static") {
target_type = "static_library"
static_library("cjson_static") {
sources = cjson_sources
public_configs = [ ":cjson_config" ]
}
lite_library("cjson_shared") {
target_type = "shared_library"
shared_library("cjson_shared") {
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" ]
}
} else {
import("//build/ohos.gni")
config("cJSON_config") {
......@@ -50,10 +38,13 @@ if (defined(ohos_lite)) {
ohos_static_library("cjson_static") {
sources = [ "cJSON.c" ]
public_configs = [ ":cJSON_config" ]
part_name = "cjson"
subsystem_name = "thirdparty"
}
ohos_shared_library("cjson") {
deps = [ ":cjson_static" ]
public_configs = [ ":cJSON_config" ]
subsystem_name = "hiviewdfx"
part_name = "cjson"
subsystem_name = "thirdparty"
}
}
......@@ -10,11 +10,11 @@
"dirs": {},
"scripts": {},
"component": {
"name": "thirdparty_cjson",
"subsystem": "",
"name": "cjson",
"subsystem": "thirdparty",
"syscap": [],
"features": [],
"adapted_system_type": [],
"adapted_system_type": [ "mini", "small", "standard" ],
"rom": "",
"ram": "",
"deps": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册