#6725 allow building of synergy without tests
Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com> Signed-off-by: Jamie Newbon <jamie@symless.com>
This commit is contained in:
parent
9f7101139e
commit
16bccc2ed0
4 changed files with 432 additions and 424 deletions
|
|
@ -20,6 +20,7 @@ project (synergy-core C CXX)
|
|||
option (SYNERGY_BUILD_LEGACY_GUI "Build the legacy GUI" ON)
|
||||
option (SYNERGY_BUILD_LEGACY_SERVICE "Build the legacy service (synergyd)" ON)
|
||||
option (SYNERGY_BUILD_LEGACY_INSTALLER "Build the legacy installer" ON)
|
||||
option (BUILD_TESTS "Override building of tests" ON)
|
||||
|
||||
if (DEFINED ENV{SYNERGY_ENTERPRISE})
|
||||
option (SYNERGY_ENTERPRISE "Build Enterprise" ON)
|
||||
|
|
|
|||
|
|
@ -23,4 +23,6 @@ if (SYNERGY_BUILD_LEGACY_GUI)
|
|||
add_subdirectory(gui)
|
||||
endif (SYNERGY_BUILD_LEGACY_GUI)
|
||||
|
||||
if (BUILD_TESTS)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -24,7 +24,9 @@
|
|||
#include "common/stdset.h"
|
||||
#include "common/stdvector.h"
|
||||
|
||||
#include <gtest/gtest_prod.h>
|
||||
#ifdef TEST_ENV
|
||||
#include "gtest/gtest_prod.h"
|
||||
#endif
|
||||
|
||||
namespace synergy {
|
||||
|
||||
|
|
@ -326,6 +328,7 @@ public:
|
|||
|
||||
//@}
|
||||
|
||||
#ifdef TEST_ENV
|
||||
private:
|
||||
FRIEND_TEST(KeyMapTests,
|
||||
findBestKey_requiredDown_matchExactFirstItem);
|
||||
|
|
@ -340,7 +343,7 @@ private:
|
|||
FRIEND_TEST(KeyMapTests,
|
||||
findBestKey_onlyOneRequiredDown_matchTwoRequiredChangesItem);
|
||||
FRIEND_TEST(KeyMapTests, findBestKey_noRequiredDown_cannotMatch);
|
||||
|
||||
#endif
|
||||
private:
|
||||
//! Ways to synthesize a key
|
||||
enum EKeystroke {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define TEST_ENV
|
||||
|
||||
#include "synergy/KeyMap.h"
|
||||
|
||||
#include "test/global/gtest.h"
|
||||
|
|
|
|||
Loading…
Reference in a new issue