1 Star 0 Fork 97

angl/third_party_libpng

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BUILD.gn 3.86 KB
一键复制 编辑 原始数据 按行查看 历史
peitaiyi 提交于 2022-06-27 11:17 . correct part name
# Copyright (c) Huawei Technologies Co., Ltd. 2020. All rights reserved.
if (defined(ohos_lite)) {
import("//build/lite/config/component/lite_component.gni")
config("libpng_config") {
include_dirs = [ "//third_party/libpng" ]
}
libpng_source = [
"//third_party/libpng/png.c",
"//third_party/libpng/pngerror.c",
"//third_party/libpng/pngget.c",
"//third_party/libpng/pngmem.c",
"//third_party/libpng/pngpread.c",
"//third_party/libpng/pngread.c",
"//third_party/libpng/pngrio.c",
"//third_party/libpng/pngrtran.c",
"//third_party/libpng/pngrutil.c",
"//third_party/libpng/pngset.c",
"//third_party/libpng/pngtrans.c",
"//third_party/libpng/pngwio.c",
"//third_party/libpng/pngwrite.c",
"//third_party/libpng/pngwtran.c",
"//third_party/libpng/pngwutil.c",
"//third_party/libpng/arm/arm_init.c",
"//third_party/libpng/arm/filter_neon_intrinsics.c",
"//third_party/libpng/arm/palette_neon_intrinsics.c",
]
lite_library("libpng") {
if (ohos_kernel_type == "liteos_m") {
target_type = "static_library"
deps = [ "//build/lite/config/component/zlib:zlib_static" ]
} else {
target_type = "shared_library"
deps = [ "//build/lite/config/component/zlib:zlib_shared" ]
}
sources = libpng_source
public_configs = [ ":libpng_config" ]
}
} else {
import("//build/ohos.gni")
config("libpng_config") {
include_dirs = [ "//third_party/libpng" ]
}
config("libpng_wno_config") {
cflags = [ "-Wno-implicit-fallthrough" ]
}
ohos_source_set("png_static") {
sources = [
"//third_party/libpng/arm/arm_init.c",
"//third_party/libpng/arm/filter_neon_intrinsics.c",
"//third_party/libpng/arm/palette_neon_intrinsics.c",
"//third_party/libpng/png.c",
"//third_party/libpng/pngerror.c",
"//third_party/libpng/pngget.c",
"//third_party/libpng/pngmem.c",
"//third_party/libpng/pngpread.c",
"//third_party/libpng/pngread.c",
"//third_party/libpng/pngrio.c",
"//third_party/libpng/pngrtran.c",
"//third_party/libpng/pngrutil.c",
"//third_party/libpng/pngset.c",
"//third_party/libpng/pngtrans.c",
"//third_party/libpng/pngwio.c",
"//third_party/libpng/pngwrite.c",
"//third_party/libpng/pngwtran.c",
"//third_party/libpng/pngwutil.c",
]
include_dirs = [
"//third_party/libpng",
"//third_party/zlib",
]
part_name = "libpng"
subsystem_name = "thirdparty"
}
ohos_shared_library("libpng") {
deps = [ ":libpng_static" ]
public_configs = [ ":libpng_config" ]
configs = [ ":libpng_wno_config" ]
subsystem_name = "thirdparty"
install_images = [
"system",
"updater",
]
part_name = "libpng"
output_name = "libpng"
install_enable = true
}
ohos_static_library("libpng_static") {
sources = [
"//third_party/libpng/arm/arm_init.c",
"//third_party/libpng/arm/filter_neon_intrinsics.c",
"//third_party/libpng/arm/palette_neon_intrinsics.c",
"//third_party/libpng/png.c",
"//third_party/libpng/pngerror.c",
"//third_party/libpng/pngget.c",
"//third_party/libpng/pngmem.c",
"//third_party/libpng/pngpread.c",
"//third_party/libpng/pngread.c",
"//third_party/libpng/pngrio.c",
"//third_party/libpng/pngrtran.c",
"//third_party/libpng/pngrutil.c",
"//third_party/libpng/pngset.c",
"//third_party/libpng/pngtrans.c",
"//third_party/libpng/pngwio.c",
"//third_party/libpng/pngwrite.c",
"//third_party/libpng/pngwtran.c",
"//third_party/libpng/pngwutil.c",
]
include_dirs = [
"//third_party/libpng",
"//third_party/zlib",
]
deps = [ "//third_party/zlib:libz" ]
public_configs = [ ":libpng_config" ]
configs = [ ":libpng_wno_config" ]
part_name = "libpng"
subsystem_name = "thirdparty"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/anguanglin/third_party_libpng.git
git@gitee.com:anguanglin/third_party_libpng.git
anguanglin
third_party_libpng
third_party_libpng
master

搜索帮助