Files
third_party_JSON-C/BUILD.gn
T
2021-03-11 20:34:06 +08:00

50 lines
1.0 KiB
Plaintext
Executable File

# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
import("//build/lite/config/component/lite_component.gni")
config("json_c_config") {
include_dirs = [ "//third_party/JSON-C/json-c" ]
}
json_c_sources = [
"json-c/arraylist.c",
"json-c/debug.c",
"json-c/json_c_version.c",
"json-c/json_object.c",
"json-c/json_object_iterator.c",
"json-c/json_pointer.c",
"json-c/json_tokener.c",
"json-c/json_util.c",
"json-c/json_visit.c",
"json-c/linkhash.c",
"json-c/printbuf.c",
"json-c/random_seed.c",
"json-c/strerror_override.c",
]
static_library("json-c_static") {
sources = json_c_sources
output_name = "json-c"
public_configs = [ ":json_c_config" ]
defines = [
"HAVE_CONFIG_H",
"_GNU_SOURCE",
"_REENTRANT",
]
cflags_c = [
"-Wall",
"-Os",
"-g",
"-Wcast-qual",
"-Wextra",
"-Wno-unused-parameter",
"-Wno-error=deprecated-declarations",
"-ffunction-sections",
"-fdata-sections",
]
ldflags = [
"-Wl",
"--gc-sections",
]
}