forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Full build and testing directly from CMake (chakra-core#6393)
Add a direct mode for CMake builds. Add a CMake variable to distinguish between `build.sh` and direct command line use -- in direct mode the build would try to pick up reasonable system defaults. Set that variable to OFF by default and to ON in `build.sh`. Add explicit option for Intl support for direct CMake use and set its default to `ON`. Add another explicit option for ICU include path (default to empty), also only under direct CMake. Make sure Intl setting does not get overridden. Expose some ICU build options - embedding (default to OFF), Intl (default to ON), and ICU include path (default to empty). Move DbgController.js.h generation to CMake, make that step conditional on whether dependencies have changed. Add testing under control of CMake. Invoking `check` target should run entire test suite, producing log file in the build directory. Exclude tests dependent on ICU for non-ICU builds. Make some CMake error messages slightly more informative. Nit: build.sh - "makefiles" is inaccurate, as it supports Ninja as well. Closes chakra-core#6417
- Loading branch information
Showing
6 changed files
with
56 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
if (CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo) | ||
set(TEST_BUILD_TYPE --test) | ||
elseif (CMAKE_BUILD_TYPE STREQUAL Debug) | ||
set(TEST_BUILD_TYPE --debug) | ||
endif () | ||
|
||
if (NO_ICU) | ||
set(TEST_EXCLUDE --not-tag exclude_noicu) | ||
endif() | ||
|
||
add_custom_target(check | ||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/runtests.py ${TEST_BUILD_TYPE} ${TEST_EXCLUDE} --binary ${CMAKE_BINARY_DIR}/ch --logfile ${CMAKE_BINARY_DIR}/check.log | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
USES_TERMINAL | ||
DEPENDS ch | ||
) | ||
|