Skip to content

Commit

Permalink
Remove timestamp clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle committed Dec 30, 2024
1 parent c66f5a3 commit b4f2932
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
11 changes: 1 addition & 10 deletions InteropTests/WinRTComponent/WinMD/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ set(OUTPUT_XMLDOCS "${CMAKE_CURRENT_BINARY_DIR}/WinRTComponent.xml")

# Generate the WinMD
add_custom_command(
OUTPUT "${OUTPUT_WINMD}.timestamped" "${OUTPUT_HEADER}"
OUTPUT "${OUTPUT_WINMD}" "${OUTPUT_HEADER}"
DEPENDS ${IDL_SOURCES} ${FOUNDATIONCONTRACT_WINMD} ${UNIVERSALAPICONTRACT_WINMD}
COMMAND "$<SHELL_PATH:${MIDLRT_EXE}>"
/W1 /nologo /nomidl
Expand All @@ -50,15 +50,6 @@ add_custom_command(
/header "$<SHELL_PATH:${OUTPUT_HEADER}>"
"$<SHELL_PATH:${IDL_SOURCE}>")

# Remove the timestamp from the generated WinRTComponent.winmd file for cachability
# TODO: We also need to zero the random "mvid" (module version id) field of the module metadata table :/
add_custom_command(
OUTPUT "${OUTPUT_WINMD}"
DEPENDS "${OUTPUT_WINMD}.timestamped"
COMMAND powershell.exe -File "${CMAKE_CURRENT_SOURCE_DIR}/Clear-PEDateTimeStamp.ps1"
-In "$<SHELL_PATH:${OUTPUT_WINMD}>.timestamped"
-Out "$<SHELL_PATH:${OUTPUT_WINMD}>")

add_custom_command(
OUTPUT "${OUTPUT_XMLDOCS}"
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/WinRTComponent.xml"
Expand Down
19 changes: 0 additions & 19 deletions InteropTests/WinRTComponent/WinMD/Clear-PEDateTimeStamp.ps1

This file was deleted.

0 comments on commit b4f2932

Please sign in to comment.