2021-02-13 14:23:35 +00:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2021-06-28 23:13:55 +00:00
|
|
|
index 37745b5..cad11a0 100644
|
2020-09-25 04:45:31 +00:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2021-02-13 14:23:35 +00:00
|
|
|
@@ -16,13 +16,6 @@ endif()
|
|
|
|
set(VERSION "${VERSION}${VERSION_SUFFIX}")
|
|
|
|
message("Version ${VERSION}")
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
-set(LLDB_PACKAGE $ENV{LLDB_PACKAGE} CACHE PATH "Zip archive containing LLDB files")
|
|
|
|
-if (LLDB_PACKAGE)
|
|
|
|
- message("Using LLDB_PACKAGE=${LLDB_PACKAGE}")
|
2020-09-25 04:45:31 +00:00
|
|
|
-else()
|
2021-02-13 14:23:35 +00:00
|
|
|
- message(FATAL_ERROR "LLDB_PACKAGE not set." )
|
2020-09-25 04:45:31 +00:00
|
|
|
-endif()
|
|
|
|
-
|
2021-02-13 14:23:35 +00:00
|
|
|
set(TEST_TIMEOUT 5000 CACHE STRING "Test timeout [ms]")
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
# General OS-specific definitions
|
2021-02-13 14:23:35 +00:00
|
|
|
@@ -87,16 +80,6 @@ configure_file(package.json ${CMAKE_CURRENT_BINARY_DIR}/package.json @ONLY)
|
2020-09-25 04:45:31 +00:00
|
|
|
configure_file(webpack.config.js ${CMAKE_CURRENT_BINARY_DIR}/webpack.config.js @ONLY)
|
|
|
|
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/package-lock.json DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
-# Run 'npm install'
|
|
|
|
-execute_process(
|
2021-06-28 23:13:55 +00:00
|
|
|
- COMMAND ${NPM} ci # like install, but actually respects package-lock file.
|
2020-09-25 04:45:31 +00:00
|
|
|
- WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
|
|
|
- RESULT_VARIABLE Result
|
|
|
|
-)
|
|
|
|
-if (NOT ${Result} EQUAL 0)
|
|
|
|
- message(FATAL_ERROR "npm intall failed: ${Result}")
|
|
|
|
-endif()
|
|
|
|
-
|
|
|
|
# Copy it back, so we can commit the lock file.
|
|
|
|
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/package-lock.json DESTINATION ${CMAKE_CURRENT_SOURCE_DIR})
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
|