mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 16:04:17 +00:00
Improve performance of entropy build action (#1407)
* Use multiple threads for entropy builds
* Verify builds parameter
* Revert "Verify builds parameter"
This reverts commit 460d3d3b55.
* Use options instead
* Seed fix
* 256 samples on push
This commit is contained in:
@@ -67,6 +67,7 @@ cmake_dependent_option(ISLE_USE_DX5_LIBS "Build with internal DirectX 5 SDK Libr
|
||||
option(ISLE_BUILD_LEGO1 "Build LEGO1.DLL library" ON)
|
||||
option(ISLE_BUILD_BETA10 "Build BETA10.DLL library" OFF)
|
||||
option(ISLE_INCLUDE_ENTROPY "Build with entropy.h" OFF)
|
||||
option(ISLE_ENTROPY_FILENAME "Entropy header filename" "entropy.h")
|
||||
|
||||
if(NOT (ISLE_BUILD_LEGO1 OR ISLE_BUILD_BETA10))
|
||||
message(FATAL_ERROR "ISLE_BUILD_LEGO1 AND ISLE_BUILD_BETA10 cannot be both disabled")
|
||||
@@ -586,14 +587,15 @@ if (MSVC_FOR_DECOMP)
|
||||
endif()
|
||||
|
||||
if (ISLE_INCLUDE_ENTROPY)
|
||||
message(STATUS "Using entropy file: ${ISLE_ENTROPY_FILENAME}")
|
||||
foreach(tgt IN LISTS lego1_targets beta10_targets)
|
||||
target_compile_options(${tgt} PRIVATE /FI${PROJECT_SOURCE_DIR}/entropy.h)
|
||||
target_compile_options(${tgt} PRIVATE /FI${PROJECT_SOURCE_DIR}/${ISLE_ENTROPY_FILENAME})
|
||||
endforeach()
|
||||
if (TARGET isle)
|
||||
target_compile_options(isle PRIVATE /FI${PROJECT_SOURCE_DIR}/entropy.h)
|
||||
target_compile_options(isle PRIVATE /FI${PROJECT_SOURCE_DIR}/${ISLE_ENTROPY_FILENAME})
|
||||
endif()
|
||||
if (TARGET config)
|
||||
target_compile_options(config PRIVATE /FI${PROJECT_SOURCE_DIR}/entropy.h)
|
||||
target_compile_options(config PRIVATE /FI${PROJECT_SOURCE_DIR}/${ISLE_ENTROPY_FILENAME})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user