Support WINDOWS_EXPORT_ALL_SYMBOLS with `.def` files
The `WINDOWS_EXPORT_ALL_SYMBOLS` target property exports all symbols found in object files explicitly given to the linker. However, the linker may also find additional symbols in dependencies and copy them into the linked binary (e.g. from `msvcrt.lib`). Provide a way to export an explicit list of such symbols by adding a `.def` file as a source file. Fixes: #16473
Showing
- Help/prop_tgt/WINDOWS_EXPORT_ALL_SYMBOLS.rst 7 additions, 0 deletionsHelp/prop_tgt/WINDOWS_EXPORT_ALL_SYMBOLS.rst
- Help/release/dev/module-def-and-WINDOWS_EXPORT_ALL_SYMBOLS.rst 8 additions, 0 deletions...release/dev/module-def-and-WINDOWS_EXPORT_ALL_SYMBOLS.rst
- Source/cmGeneratorTarget.cxx 6 additions, 5 deletionsSource/cmGeneratorTarget.cxx
- Source/cmGeneratorTarget.h 2 additions, 0 deletionsSource/cmGeneratorTarget.h
- Source/cmGlobalVisualStudioGenerator.cxx 39 additions, 29 deletionsSource/cmGlobalVisualStudioGenerator.cxx
- Source/cmLocalVisualStudio7Generator.cxx 1 addition, 1 deletionSource/cmLocalVisualStudio7Generator.cxx
- Source/cmMakefileTargetGenerator.cxx 25 additions, 12 deletionsSource/cmMakefileTargetGenerator.cxx
- Source/cmNinjaNormalTargetGenerator.cxx 15 additions, 5 deletionsSource/cmNinjaNormalTargetGenerator.cxx
- Source/cmNinjaTargetGenerator.cxx 8 additions, 4 deletionsSource/cmNinjaTargetGenerator.cxx
- Source/cmVisualStudio10TargetGenerator.cxx 1 addition, 1 deletionSource/cmVisualStudio10TargetGenerator.cxx
- Tests/ModuleDefinition/CMakeLists.txt 8 additions, 1 deletionTests/ModuleDefinition/CMakeLists.txt
- Tests/ModuleDefinition/example_exe.c 5 additions, 1 deletionTests/ModuleDefinition/example_exe.c
- Tests/ModuleDefinition/split_dll.c 9 additions, 0 deletionsTests/ModuleDefinition/split_dll.c
- Tests/ModuleDefinition/split_dll_1.def 2 additions, 0 deletionsTests/ModuleDefinition/split_dll_1.def
- Tests/ModuleDefinition/split_dll_2.def 2 additions, 0 deletionsTests/ModuleDefinition/split_dll_2.def
Loading
Please register or sign in to comment