2 Star 0 Fork 90

openharmony_wagner / third_party_libpng

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
BUILD.gn 3.41 KB
一键复制 编辑 原始数据 按行查看 历史
zhong_ning 提交于 2021-08-12 10:04 . format BUILD.gn
# 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") {
target_type = "shared_library"
sources = libpng_source
public_configs = [ ":libpng_config" ]
deps = [ "//build/lite/config/component/zlib:zlib_shared" ]
}
} else {
import("//build/ohos.gni")
config("libpng_config") {
include_dirs = [ "//third_party/libpng" ]
}
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",
]
}
ohos_shared_library("libpng") {
deps = [ ":libpng_static" ]
public_configs = [ ":libpng_config" ]
subsystem_name = "common"
install_images = [
"system",
"updater",
]
part_name = "graphic_standard"
}
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" ]
subsystem_name = "common"
}
}
1
https://gitee.com/openharmony_wagner/third_party_libpng.git
git@gitee.com:openharmony_wagner/third_party_libpng.git
openharmony_wagner
third_party_libpng
third_party_libpng
wagner

搜索帮助