Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Zlib
提交
ca6e7a0d
T
Third Party Zlib
项目概览
OpenHarmony
/
Third Party Zlib
1 年多 前同步成功
通知
16
Star
112
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Zlib
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ca6e7a0d
编写于
3月 11, 2012
作者:
C
Christoph J. Thompson
提交者:
Mark Adler
3月 11, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Generate and install the pkg-config file with cmake.
上级
f8867924
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
2 deletion
+22
-2
CMakeLists.txt
CMakeLists.txt
+8
-2
INDEX
INDEX
+1
-0
zlib.pc.cmakein
zlib.pc.cmakein
+13
-0
未找到文件。
CMakeLists.txt
浏览文件 @
ca6e7a0d
...
...
@@ -7,6 +7,7 @@ set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation direc
set
(
INSTALL_LIB_DIR
"
${
CMAKE_INSTALL_PREFIX
}
/lib"
CACHE PATH
"Installation directory for libraries"
)
set
(
INSTALL_INC_DIR
"
${
CMAKE_INSTALL_PREFIX
}
/include"
CACHE PATH
"Installation directory for headers"
)
set
(
INSTALL_MAN_DIR
"
${
CMAKE_INSTALL_PREFIX
}
/share/man"
CACHE PATH
"Installation directory for manual pages"
)
set
(
INSTALL_PKGCONFIG_DIR
"
${
CMAKE_INSTALL_PREFIX
}
/share/pkgconfig"
CACHE PATH
"Installation directory for pkgconfig (.pc) files"
)
if
(
NOT DEFINED BUILD_SHARED_LIBS
)
option
(
BUILD_SHARED_LIBS
"Build a shared library form of zlib"
ON
)
...
...
@@ -75,8 +76,10 @@ if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
endif
()
endif
()
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/zconf.h.cmakein
${
CMAKE_CURRENT_BINARY_DIR
}
/zconf.h @ONLY
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/zlib.pc.cmakein
${
CMAKE_CURRENT_BINARY_DIR
}
/zlib.pc @ONLY
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/zconf.h.cmakein
${
CMAKE_CURRENT_BINARY_DIR
}
/zconf.h @ONLY
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
...
...
@@ -180,6 +183,9 @@ endif()
if
(
NOT SKIP_INSTALL_FILES AND NOT SKIP_INSTALL_ALL
)
install
(
FILES zlib.3 DESTINATION
"
${
INSTALL_MAN_DIR
}
/man3"
)
endif
()
if
(
NOT SKIP_INSTALL_FILES AND NOT SKIP_INSTALL_ALL
)
install
(
FILES zlib.pc DESTINATION
"
${
INSTALL_PKGCONFIG_DIR
}
"
)
endif
()
#============================================================================
# Example binaries
...
...
INDEX
浏览文件 @
ca6e7a0d
...
...
@@ -17,6 +17,7 @@ zlib.3 Man page for zlib
zlib.3.pdf Man page in PDF format
zlib.map Linux symbol information
zlib.pc.in Template for pkg-config descriptor
zlib.pc.cmakein zlib.pc template for cmake
zlib2ansi perl script to convert source files for C++ compilation
amiga/ makefiles for Amiga SAS C
...
...
zlib.pc.cmakein
0 → 100644
浏览文件 @
ca6e7a0d
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@INSTALL_LIB_DIR@
sharedlibdir=@INSTALL_LIB_DIR@
includedir=@INSTALL_INC_DIR@
Name: zlib
Description: zlib compression library
Version: @VERSION@
Requires:
Libs: -L${libdir} -L${sharedlibdir} -lz
Cflags: -I${includedir}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录