Skip to content

Commit

Permalink
[devtools] Add Windows manifest enabling longPathAware
Browse files Browse the repository at this point in the history
  • Loading branch information
grasci-arm authored Sep 8, 2023
1 parent 518627e commit 24664a1
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/buildmgr/cbuildgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ add_executable(cbuildgen ${SOURCE_FILES} ${HEADER_FILES})

if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
set(EXT "-${CPU_ARCH}")
target_sources(cbuildgen PRIVATE src/cbuildgen.manifest)
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
set(EXT ".lin-${CPU_ARCH}")
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
Expand Down
8 changes: 8 additions & 0 deletions tools/buildmgr/cbuildgen/src/cbuildgen.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
<ws2:longPathAware>true</ws2:longPathAware>
</windowsSettings>
</application>
</assembly>
4 changes: 4 additions & 0 deletions tools/packchk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ if(MSVC)
target_sources(packchk PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/PackChk.rc)
endif()

if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
target_sources(packchk PRIVATE src/packchk.manifest)
endif()

set_property(TARGET packchk PROPERTY
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

Expand Down
8 changes: 8 additions & 0 deletions tools/packchk/src/packchk.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
<ws2:longPathAware>true</ws2:longPathAware>
</windowsSettings>
</application>
</assembly>
5 changes: 5 additions & 0 deletions tools/packgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ add_executable(packgen src/PackGenMain.cpp include/PackGen.h)
if(MSVC)
target_link_options(packgen PUBLIC "$<$<CONFIG:Debug>:/SAFESEH:NO>")
endif(MSVC)

if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
target_sources(packgen PRIVATE src/packgen.manifest)
endif()

set_property(TARGET packgen PROPERTY
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
Expand Down
8 changes: 8 additions & 0 deletions tools/packgen/src/packgen.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
<ws2:longPathAware>true</ws2:longPathAware>
</windowsSettings>
</application>
</assembly>
3 changes: 3 additions & 0 deletions tools/projmgr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ else()
endif()
target_link_libraries(projmgr projmgrlib)
target_include_directories(projmgr PRIVATE include)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
target_sources(projmgr PRIVATE src/csolution.manifest)
endif()
endif()

# projmgr test
Expand Down
8 changes: 8 additions & 0 deletions tools/projmgr/src/csolution.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
<ws2:longPathAware>true</ws2:longPathAware>
</windowsSettings>
</application>
</assembly>
4 changes: 4 additions & 0 deletions tools/svdconv/SVDConv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ if(MSVC)
target_sources(svdconv PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/SVDConv.rc)
endif()

if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
target_sources(svdconv PRIVATE src/svdconv.manifest)
endif()

set_property(TARGET svdconv PROPERTY
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

Expand Down
8 changes: 8 additions & 0 deletions tools/svdconv/SVDConv/src/svdconv.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
<ws2:longPathAware>true</ws2:longPathAware>
</windowsSettings>
</application>
</assembly>

0 comments on commit 24664a1

Please sign in to comment.