gn format

Signed-off-by: sharpshooter_t <taojun13@huawei.com>
This commit is contained in:
sharpshooter 2021-10-11 08:06:56 +00:00 committed by Gitee
parent 993f909d09
commit 77c531df05

124
BUILD.gn
View File

@ -3,88 +3,78 @@
import("//build/ohos.gni")
if (target_cpu == "arm") {
config("ffi_config") {
visibility = [ ":*" ]
config("ffi_config") {
visibility = [ ":*" ]
include_dirs = [
".",
"./include",
"./src/arm",
]
include_dirs = [
".",
"./include",
"./src/arm",
]
cflags = [
"-DTARGET=ARM",
"-Wno-sign-compare",
"-Wno-implicit-function-declaration",
"-Wno-extern-initializer",
]
}
cflags = [
"-DTARGET=ARM",
"-Wno-sign-compare",
"-Wno-implicit-function-declaration",
"-Wno-extern-initializer",
]
}
ohos_source_set("ffi_source") {
sources = [
"src/prep_cif.c",
"src/types.c",
"src/raw_api.c",
"src/java_raw_api.c",
"src/closures.c",
"src/arm/ffi.c",
"src/arm/sysv.S",
]
ohos_source_set("ffi_source") {
sources = [
"src/arm/ffi.c",
"src/arm/sysv.S",
"src/closures.c",
"src/java_raw_api.c",
"src/prep_cif.c",
"src/raw_api.c",
"src/types.c",
]
configs = [
":ffi_config",
]
}
configs = [ ":ffi_config" ]
}
} else {
config("ffi_config") {
visibility = [ ":*" ]
config("ffi_config") {
visibility = [ ":*" ]
include_dirs = [
".",
"./include",
"./src/aarch64",
]
include_dirs = [
".",
"./include",
"./src/aarch64",
]
cflags = [
"-DTARGET=AARCH64",
"-Wno-sign-compare",
"-Wno-implicit-function-declaration",
"-Wno-extern-initializer",
]
}
cflags = [
"-DTARGET=AARCH64",
"-Wno-sign-compare",
"-Wno-implicit-function-declaration",
"-Wno-extern-initializer",
]
}
ohos_source_set("ffi_source") {
sources = [
"src/prep_cif.c",
"src/types.c",
"src/raw_api.c",
"src/java_raw_api.c",
"src/closures.c",
"src/aarch64/ffi.c",
"src/aarch64/sysv.S",
]
ohos_source_set("ffi_source") {
sources = [
"src/aarch64/ffi.c",
"src/aarch64/sysv.S",
"src/closures.c",
"src/java_raw_api.c",
"src/prep_cif.c",
"src/raw_api.c",
"src/types.c",
]
configs = [
":ffi_config",
]
}
configs = [ ":ffi_config" ]
}
}
config("ffi_public_config") {
include_dirs = [
"include",
]
include_dirs = [ "include" ]
}
ohos_shared_library("ffi") {
deps = [
":ffi_source",
]
deps = [ ":ffi_source" ]
public_configs = [
":ffi_public_config",
]
public_configs = [ ":ffi_public_config" ]
part_name = "multimedia_media_standard"
subsystem_name = "multimedia"
part_name = "multimedia_media_standard"
subsystem_name = "multimedia"
}