From 2d714a93b3e975470241d47d12b04928ddc4ea36 Mon Sep 17 00:00:00 2001 From: Axel Isouard Date: Sun, 12 Feb 2017 09:51:53 +0100 Subject: [PATCH] Add options to build DEB and RPM packages --- CMakeModules/Options.cmake | 4 ++++ README.md | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/CMakeModules/Options.cmake b/CMakeModules/Options.cmake index 8537e21..d0f19a5 100644 --- a/CMakeModules/Options.cmake +++ b/CMakeModules/Options.cmake @@ -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) # diff --git a/README.md b/README.md index a57a14d..51935d9 100644 --- a/README.md +++ b/README.md @@ -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)