-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* verify command line options * fix cmake * add -deh -bex to multiple options check * fix typo * fix parameter count check * add validation for some arguments * fix skill 0 * validate all parameters with argumets * cosmetic fixes * don't check undocumented options if -devparm is set * fix format error * fix whitespace * docgen cleanup * rename GenParams->paramsgen * fix -turbo check * more docgen cleanup * generate help string * use dictionary * condense help text * escape `"` * remove -gameversion from help string * set wrap width to 80, few tweaks * remove debug line * -setmem error message correction * fix -episode check and -skill description * little cleanup
- Loading branch information
Showing
19 changed files
with
363 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
|
||
if(Python3_EXECUTABLE) | ||
add_custom_target(paramsgen | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rfomin
Author
Collaborator
|
||
COMMAND "${Python3_EXECUTABLE}" docgen -a | ||
"${PROJECT_SOURCE_DIR}/src" > "${PROJECT_SOURCE_DIR}/src/params.h" | ||
DEPENDS "${PROJECT_SOURCE_DIR}/src" | ||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" | ||
) | ||
endif() | ||
|
||
configure_file(WoofInstall.cmake.in WoofInstall.cmake ESCAPE_QUOTES @ONLY) | ||
install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/WoofInstall.cmake") | ||
|
||
|
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 @@ | ||
params.h |
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
Oops, something went wrong.
Can we somehow only call this if one of the
src/*.c
source files have changed? The way it currently works, it regeneratesparams.h
each time and thus rebuildsm_argv.c.o
and links thewoof
executable every second build.