From 30d2d6dda6734e08dfd39e1d372ec170e8ee494d Mon Sep 17 00:00:00 2001 From: Aditya Bhatt Date: Tue, 19 Nov 2013 12:20:23 +0100 Subject: [PATCH] Disable JSCoverage and it's building in OS X. The development toolchain that comes with Mavericks does not play well with compiling JSCoverage -- which is unmaintained anyway. Till we move to a better test coverage tool, we should disable it therefore people on OS X can compile WebODF. --- CMakeLists.txt | 5 +++-- webodf/CMakeLists.txt | 20 +++++++++++--------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 420f43a9..efe547c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,7 +173,8 @@ if(WIN32) TEST_COMMAND "" ) set(JSCOVERAGE ${CMAKE_BINARY_DIR}/JSCoverage-prefix/src/JSCoverage/jscoverage) -else(WIN32) +elseif(APPLE) +else() ExternalProject_Add( JSCoverage DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} @@ -186,7 +187,7 @@ else(WIN32) INSTALL_COMMAND "" ) set(JSCOVERAGE ${CMAKE_BINARY_DIR}/JSCoverage-prefix/src/JSCoverage/jscoverage) -endif(WIN32) +endif() # Dojo ExternalProject_Add( diff --git a/webodf/CMakeLists.txt b/webodf/CMakeLists.txt index 043e5e56..e0ea4afe 100644 --- a/webodf/CMakeLists.txt +++ b/webodf/CMakeLists.txt @@ -185,15 +185,17 @@ if (Java_JAVA_EXECUTABLE) endif (Java_JAVA_EXECUTABLE) -add_custom_command( - OUTPUT instrumented/index.html - COMMAND ${JSCOVERAGE} - ARGS --exclude=node_modules - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_BINARY_DIR}/instrumented - DEPENDS ${LIBJSFILES} jslintcheck JSCoverage -) -add_custom_target(instrumented ALL DEPENDS instrumented/index.html) +if (NOT APPLE) + add_custom_command( + OUTPUT instrumented/index.html + COMMAND ${JSCOVERAGE} + ARGS --exclude=node_modules + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR}/instrumented + DEPENDS ${LIBJSFILES} jslintcheck JSCoverage + ) + add_custom_target(instrumented ALL DEPENDS instrumented/index.html) +endif(NOT APPLE) add_subdirectory(tests)