aboutsummaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorKevin Rocard <kevin.rocard@intel.com>2015-03-11 11:46:32 +0100
committerEric Laurent <elaurent@google.com>2015-04-24 13:32:47 -0700
commit747bb84d27518ba1ab0c49d619a812b43222fdcf (patch)
treec3761b748c87883d4fbd77fefd69177dee58c9c5 /bindings
parent7fe36eead17ee1afb9ba26e1e4eb8613b559f71d (diff)
downloadexternal_parameter-framework-747bb84d27518ba1ab0c49d619a812b43222fdcf.zip
external_parameter-framework-747bb84d27518ba1ab0c49d619a812b43222fdcf.tar.gz
external_parameter-framework-747bb84d27518ba1ab0c49d619a812b43222fdcf.tar.bz2
Modularise build using cmake options
The parameter framework can build lots of components including but not limited to core c++ lib, c api, python api, bash completion... All those modules are not always wanted, especially if they have external dependencies as it force the builder to install them. Conditionally define non core build modules. The builder can disable feature by providing -D <FEATURE>=OFF to deactivate them. The following options are available: - PYTHON_BINDINGS: Break swig dependencies - BASH_COMPLETION: If the target does not have bash - COVERAGE: Default to off, set to on to build c/c++ with coverage flags. Signed-off-by: Kevin Rocard <kevin.rocard@intel.com>
Diffstat (limited to 'bindings')
-rw-r--r--bindings/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt
index 3208d54..ba59221 100644
--- a/bindings/CMakeLists.txt
+++ b/bindings/CMakeLists.txt
@@ -26,4 +26,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-add_subdirectory(python)
+option(PYTHON_BINDINGS "Python library to use the pfw from python" ON)
+if(PYTHON_BINDINGS)
+ add_subdirectory(python)
+endif()