Add options to build DEB and RPM packages

This commit is contained in:
Axel Isouard 2017-02-12 09:51:53 +01:00
parent d1992ce19f
commit 2d714a93b3
No known key found for this signature in database
GPG key ID: 4E64BB3EAAF31C29
2 changed files with 12 additions and 0 deletions

View file

@ -19,6 +19,10 @@ set(INSTALL_CMAKE_DIR lib/cmake/LibWebRTC CACHE PATH "Installation directory for
if (UNIX)
set(INSTALL_PKGCONFIG_DIR lib/pkgconfig CACHE PATH "Installation directory for pkg-config script")
if (NOT APPLE)
option(BUILD_DEB_PACKAGE "Build Debian .deb package" OFF)
option(BUILD_RPM_PACKAGE "Build Red Hat .rpm package" OFF)
endif (NOT APPLE)
endif (UNIX)
#

View file

@ -151,6 +151,14 @@ The library will be compiled and usable on the same host's platform and
architecture. Here are some CMake flags which could be useful if you need to
perform cross-compiling.
- **BUILD_DEB_PACKAGE**
Generate Debian package, defaults to OFF, available under Linux only.
- **BUILD_RPM_PACKAGE**
Generate Red Hat package, defaults to OFF, available under Linux only.
- **BUILD_TESTS**
Build WebRTC tests. (not supported yet)