From a79e913e6dedd167c62b0d6d78aecd761f555d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Mon, 22 Oct 2012 15:03:38 -0400 Subject: [PATCH] channels: disable certain channels by default on Android --- channels/audin/ChannelOptions.cmake | 5 +++++ channels/parallel/ChannelOptions.cmake | 5 +++++ channels/serial/ChannelOptions.cmake | 5 +++++ channels/tsmf/ChannelOptions.cmake | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/channels/audin/ChannelOptions.cmake b/channels/audin/ChannelOptions.cmake index 60d9d55aa..662f53559 100644 --- a/channels/audin/ChannelOptions.cmake +++ b/channels/audin/ChannelOptions.cmake @@ -3,6 +3,11 @@ set(OPTION_DEFAULT OFF) set(OPTION_CLIENT_DEFAULT ON) set(OPTION_SERVER_DEFAULT ON) +if(ANDROID) + set(OPTION_CLIENT_DEFAULT OFF) + set(OPTION_SERVER_DEFAULT OFF) +endif() + if(${OPTION_CLIENT_DEFAULT} OR ${OPTION_SERVER_DEFAULT}) set(OPTION_DEFAULT ON) endif() diff --git a/channels/parallel/ChannelOptions.cmake b/channels/parallel/ChannelOptions.cmake index a881164a9..7864540a6 100644 --- a/channels/parallel/ChannelOptions.cmake +++ b/channels/parallel/ChannelOptions.cmake @@ -8,6 +8,11 @@ if(WIN32) set(OPTION_SERVER_DEFAULT OFF) endif() +if(ANDROID) + set(OPTION_CLIENT_DEFAULT OFF) + set(OPTION_SERVER_DEFAULT OFF) +endif() + if(${OPTION_CLIENT_DEFAULT} OR ${OPTION_SERVER_DEFAULT}) set(OPTION_DEFAULT ON) endif() diff --git a/channels/serial/ChannelOptions.cmake b/channels/serial/ChannelOptions.cmake index 4657cc622..808205506 100644 --- a/channels/serial/ChannelOptions.cmake +++ b/channels/serial/ChannelOptions.cmake @@ -8,6 +8,11 @@ if(WIN32) set(OPTION_SERVER_DEFAULT OFF) endif() +if(ANDROID) + set(OPTION_CLIENT_DEFAULT OFF) + set(OPTION_SERVER_DEFAULT OFF) +endif() + if(${OPTION_CLIENT_DEFAULT} OR ${OPTION_SERVER_DEFAULT}) set(OPTION_DEFAULT ON) endif() diff --git a/channels/tsmf/ChannelOptions.cmake b/channels/tsmf/ChannelOptions.cmake index f7dabe8cc..a0d78f847 100644 --- a/channels/tsmf/ChannelOptions.cmake +++ b/channels/tsmf/ChannelOptions.cmake @@ -8,6 +8,11 @@ if(WIN32) set(OPTION_SERVER_DEFAULT OFF) endif() +if(ANDROID) + set(OPTION_CLIENT_DEFAULT OFF) + set(OPTION_SERVER_DEFAULT OFF) +endif() + if(${OPTION_CLIENT_DEFAULT} OR ${OPTION_SERVER_DEFAULT}) set(OPTION_DEFAULT ON) endif()