mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 16:32:13 -07:00
Fix benchmark.sh for the new cmake world.
It relied on reading gamedesc.txt to find a list of puzzle binaries to run. But gamedesc.txt is now specific to the Windows build (since it contains Windows executable names), and isn't available in the Unix cmake build directory. Fixed by making a simpler gamelist.txt available on all platforms.
This commit is contained in:
@ -160,3 +160,15 @@ macro(export_variables_to_parent_scope)
|
||||
set(objective_${name} ${objective_${name}} PARENT_SCOPE)
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
macro(build_extras)
|
||||
# Write out a list of the game names, for benchmark.sh to use.
|
||||
file(WRITE ${CMAKE_BINARY_DIR}/gamelist.txt "")
|
||||
list(SORT puzzle_names)
|
||||
foreach(name ${puzzle_names})
|
||||
file(APPEND ${CMAKE_BINARY_DIR}/gamelist.txt "${name}\n")
|
||||
endforeach()
|
||||
|
||||
# Further extra stuff specific to particular platforms.
|
||||
build_platform_extras()
|
||||
endmacro()
|
||||
|
Reference in New Issue
Block a user