1 Star 0 Fork 64

sig-ci-test/third_party_giflib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BUILD.gn 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
# 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
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sig-ci-test/third_party_giflib.git
[email protected]:sig-ci-test/third_party_giflib.git
sig-ci-test
third_party_giflib
third_party_giflib
master

搜索帮助