Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
44ba971c
Commit
44ba971c
authored
Aug 23, 2022
by
ziyue
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:ZLMediaKit/ZLMediaKit
parents
208b0865
074d13be
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
3 行删除
+15
-3
package/rpm/ZLMediaKit.spec
+14
-2
src/CMakeLists.txt
+1
-1
没有找到文件。
package/rpm/ZLMediaKit.spec
查看文件 @
44ba971c
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
%bcond_without openssl
%bcond_without openssl
%bcond_without mysql
%bcond_without mysql
# 默认不编译 API
%bcond_with api
%bcond_with cxx_api
Name: ZLMediaKit
Name: ZLMediaKit
Version: 5.0.0
Version: 5.0.0
Release: 1%{?dist}
Release: 1%{?dist}
...
@@ -61,6 +65,7 @@ Summary: A lightweight, high performance and stable stream server
...
@@ -61,6 +65,7 @@ Summary: A lightweight, high performance and stable stream server
%description media-server
%description media-server
A lightweight RTSP/RTMP/HTTP/HLS/HTTP-FLV/WebSocket-FLV/HTTP-TS/HTTP-fMP4/WebSocket-TS/WebSocket-fMP4/GB28181 server.
A lightweight RTSP/RTMP/HTTP/HLS/HTTP-FLV/WebSocket-FLV/HTTP-TS/HTTP-fMP4/WebSocket-TS/WebSocket-fMP4/GB28181 server.
%if %{with api}
%package c-libs
%package c-libs
Requires: %{name} = %{version}
Requires: %{name} = %{version}
Summary: The %{name} C libraries.
Summary: The %{name} C libraries.
...
@@ -72,12 +77,15 @@ Requires: %{name}-c-libs = %{version}
...
@@ -72,12 +77,15 @@ Requires: %{name}-c-libs = %{version}
Summary: The %{name} C API headers.
Summary: The %{name} C API headers.
%description c-devel
%description c-devel
The %{name} C API headers.
The %{name} C API headers.
%endif
%if %{with cxx_api}
%package cxx-devel
%package cxx-devel
Requires: %{name} = %{version}
Requires: %{name} = %{version}
Summary: The %{name} C++ API headers and development libraries.
Summary: The %{name} C++ API headers and development libraries.
%description cxx-devel
%description cxx-devel
The %{name} C++ API headers and development libraries.
The %{name} C++ API headers and development libraries.
%endif
%prep
%prep
%setup -q
%setup -q
...
@@ -104,8 +112,8 @@ pushd %{_target_platform}
...
@@ -104,8 +112,8 @@ pushd %{_target_platform}
%endif
%endif
-DENABLE_MP4:BOOL=ON \
-DENABLE_MP4:BOOL=ON \
-DENABLE_RTPPROXY:BOOL=ON \
-DENABLE_RTPPROXY:BOOL=ON \
-DENABLE_API:BOOL=
ON
\
-DENABLE_API:BOOL=
%{with api}
\
-DENABLE_CXX_API:BOOL=
ON
\
-DENABLE_CXX_API:BOOL=
%{with cxx_api}
\
-DENABLE_TESTS:BOOL=OFF \
-DENABLE_TESTS:BOOL=OFF \
-DENABLE_SERVERL:BOOL=ON \
-DENABLE_SERVERL:BOOL=ON \
..
..
...
@@ -137,12 +145,15 @@ rm -rf $RPM_BUILD_ROOT
...
@@ -137,12 +145,15 @@ rm -rf $RPM_BUILD_ROOT
%files media-server
%files media-server
%{_bindir}/*
%{_bindir}/*
%if %{with api}
%files c-libs
%files c-libs
%{_libdir}/libmk_api.so
%{_libdir}/libmk_api.so
%files c-devel
%files c-devel
%{_includedir}/mk_*
%{_includedir}/mk_*
%endif
%if %{with cxx_api}
%files cxx-devel
%files cxx-devel
%{_includedir}/ZLMediaKit/*
%{_includedir}/ZLMediaKit/*
%{_includedir}/ZLToolKit/*
%{_includedir}/ZLToolKit/*
...
@@ -151,6 +162,7 @@ rm -rf $RPM_BUILD_ROOT
...
@@ -151,6 +162,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libmpeg.a
%{_libdir}/libmpeg.a
%{_libdir}/libmov.a
%{_libdir}/libmov.a
%{_libdir}/libflv.a
%{_libdir}/libflv.a
%endif
%changelog
%changelog
src/CMakeLists.txt
查看文件 @
44ba971c
...
@@ -57,7 +57,7 @@ update_cached_list(MK_LINK_LIBRARIES ZLMediaKit::MediaKit)
...
@@ -57,7 +57,7 @@ update_cached_list(MK_LINK_LIBRARIES ZLMediaKit::MediaKit)
# 未在使用
# 未在使用
if
(
ENABLE_CXX_API
)
if
(
ENABLE_CXX_API
)
# 保留目录结构
# 保留目录结构
install
(
DIRECTORY
${
MediaKit_Root
}
/
install
(
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/
DESTINATION
${
INSTALL_PATH_INCLUDE
}
/ZLMediaKit
DESTINATION
${
INSTALL_PATH_INCLUDE
}
/ZLMediaKit
REGEX
".*[.](md|cpp)$"
EXCLUDE
)
REGEX
".*[.](md|cpp)$"
EXCLUDE
)
install
(
TARGETS zlmediakit
install
(
TARGETS zlmediakit
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论