Use optional environment variable for timestamp server URL

This commit is contained in:
NissimHadar 2019-04-05 14:55:23 -07:00
parent fd245b61ab
commit 75e1437274
2 changed files with 6 additions and 1 deletions

View file

@ -52,6 +52,11 @@ else()
set(MOBILE 0)
endif()
# Use default time server if none defined in environment
if (NOT DEFINED TIMESERVER_URL)
set(TIMESERVER_URL "http://sha256timestamp.ws.symantec.com/sha256/timestamp")
endif()
set(HIFI_USE_OPTIMIZED_IK OFF)
set(BUILD_CLIENT_OPTION ON)
set(BUILD_SERVER_OPTION ON)

View file

@ -22,7 +22,7 @@ macro(optional_win_executable_signing)
# setup a post build command to sign the executable
add_custom_command(
TARGET ${TARGET_NAME} POST_BUILD
COMMAND ${SIGNTOOL_EXECUTABLE} sign /fd sha256 /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp /td SHA256 ${EXECUTABLE_PATH}
COMMAND ${SIGNTOOL_EXECUTABLE} sign /fd sha256 /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr ${TIMESERVER_URL} /td SHA256 ${EXECUTABLE_PATH}
)
else ()
message(FATAL_ERROR "HF_PFX_PASSPHRASE must be set for executables to be signed.")