mirror of
https://github.com/openharmony/third_party_giflib.git
synced 2026-07-01 06:41:59 -04:00
ad7c8a0484
IssueNo: https://gitee.com/openharmony/third_party_giflib/issues/I6MZGD Feature or Bugfix: Bugfix Binary Source:NO Signed-off-by: xing-tai-zhang <zhangxingtai@huawei.com>
72 lines
1.8 KiB
Plaintext
Executable File
72 lines
1.8 KiB
Plaintext
Executable File
# Copyright (c) Huawei Technologies Co., Ltd. 2019-2019. All rights reserved.
|
|
|
|
if (defined(ohos_lite)) { # is on lite Os for ipcamera
|
|
import("//build/lite/config/component/lite_component.gni")
|
|
|
|
config("libgif_config") {
|
|
include_dirs = [ "//third_party/giflib" ]
|
|
}
|
|
|
|
libgif_source = [
|
|
"//third_party/giflib/dgif_lib.c",
|
|
"//third_party/giflib/egif_lib.c",
|
|
"//third_party/giflib/gifalloc.c",
|
|
"//third_party/giflib/gif_err.c",
|
|
"//third_party/giflib/gif_font.c",
|
|
"//third_party/giflib/gif_hash.c",
|
|
"//third_party/giflib/openbsd-reallocarray.c",
|
|
]
|
|
|
|
lite_library("libgif") {
|
|
if (ohos_kernel_type == "liteos_m") {
|
|
target_type = "static_library"
|
|
if (defined(board_toolchain_type) && board_toolchain_type == "iccarm") {
|
|
cflags = [
|
|
"--diag_suppress",
|
|
"Pa084",
|
|
]
|
|
}
|
|
} else {
|
|
target_type = "shared_library"
|
|
}
|
|
sources = libgif_source
|
|
|
|
public_configs = [ ":libgif_config" ]
|
|
}
|
|
} else {
|
|
import("//build/ohos.gni")
|
|
|
|
config("build_private_config") {
|
|
cflags = [
|
|
"-Werror",
|
|
"-Wno-format",
|
|
"-Wno-sign-compare",
|
|
"-Wno-unused-parameter",
|
|
"-DHAVE_CONFIG_H",
|
|
]
|
|
}
|
|
|
|
ohos_source_set("gif_static") {
|
|
sources = [
|
|
"//third_party/giflib/dgif_lib.c",
|
|
"//third_party/giflib/egif_lib.c",
|
|
"//third_party/giflib/gif_err.c",
|
|
"//third_party/giflib/gif_font.c",
|
|
"//third_party/giflib/gif_hash.c",
|
|
"//third_party/giflib/gifalloc.c",
|
|
"//third_party/giflib/openbsd-reallocarray.c",
|
|
"//third_party/giflib/quantize.c",
|
|
]
|
|
include_dirs = [ "//third_party/giflib" ]
|
|
configs = [ ":build_private_config" ]
|
|
}
|
|
|
|
ohos_shared_library("libgif") {
|
|
deps = [ ":gif_static" ]
|
|
subsystem_name = "thirdparty"
|
|
part_name = "giflib"
|
|
output_name = "libgif"
|
|
install_enable = true
|
|
}
|
|
}
|