rom-properties/cmake
David Korth 734a72ca78 MSVC: Set /DEPENDENTLOADFLAG:0x800 to restrict DLL loading to SYSTEM32 on startup.
On Windows 10 1607+, this flag is equivalent to calling the
SetDefaultDllDirectories() function before the program starts.

We're already calling SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32)
in librpsecure/win32/restrict-dll.c, but this ensures that it's set even
before the program starts.

Related changes:

- amiiboc: Use delay-loading for libfmt. Otherwise, it fails with
  error code 0xC0000135.
  - Added a dummy stdafx.h file, required by DelayLoadHelper.c.

- All tests: Set /DEPENDENTLOADFLAG:0xA00 because gtest cannot be
  delay-loaded.

- msvc.cmake: Fix linker flags for RelWithDebInfo.

TODO:
- EXE: Show DEPENDENTLOADFLAG.
- Test svrplus.
2025-03-20 20:49:11 -04:00
..
libs [zstd] Update: 1.5.6 -> 1.5.7 2025-02-19 22:07:44 -05:00
macros [cmake] CheckIfuncSupport.cmake: Don't check for NOT DEFINED HAVE_IFUNC. 2025-01-25 14:34:52 -05:00
platform MSVC: Set /DEPENDENTLOADFLAG:0x800 to restrict DLL loading to SYSTEM32 on startup. 2025-03-20 20:49:11 -04:00
toolchain [scripts] package.cmd: Add ARM, ARM64, and ARM64EC. 2023-07-16 18:28:21 -04:00
cmake_uninstall.cmake.in [cmake] cmake_uninstall.cmake.in: Use EXECUTE_PROCESS() instead of EXEC_PROGRAM(). 2024-03-03 12:51:03 -05:00
options.cmake [libfmt] Add an internal copy of libfmt-11.1.2. 2025-01-21 23:59:20 -05:00
platform.cmake [cmake] Add flags for RelWithDebInfo. 2024-03-24 16:58:18 -04:00