build, meson: Reenable .pdb building on GCC (for MINGW64/UCRT64 sake)
This commit is contained in:
parent
a19ef56214
commit
b705bfb660
3 changed files with 3 additions and 4 deletions
|
|
@ -217,8 +217,7 @@ for dir in ["bin", "lib"]:
|
|||
|
||||
|
||||
## .PDB/CODEVIEW DEBUG SYMBOLS (from babl, gegl and GIMP binaries)
|
||||
if "32" not in MSYSTEM_PREFIX:
|
||||
bundle(GIMP_PREFIX, "bin/*.pdb")
|
||||
bundle(GIMP_PREFIX, "bin/*.pdb")
|
||||
### Remove .pdb without corresponding binaries (depends on what was choosen to be bundled above)
|
||||
files = os.listdir(GIMP_DISTRIB / "bin")
|
||||
binaries = {os.path.splitext(file)[0] for file in files if file.endswith(('.exe', '.dll'))}
|
||||
|
|
|
|||
|
|
@ -413,7 +413,7 @@ Source: "{#BUNDLE}\bin\*"; DestDir: "{app}\bin"; Excludes: "libgimp*.dll,gimp*.e
|
|||
Source: "{#BUNDLE}\lib\*"; DestDir: "{app}\lib"; Excludes: "gimp,Gimp*.typelib,*.pdb,*.a,*.pc,lua,gluas.dll,python{#PYTHON_VERSION}"; Components: deps{#COMPONENT}; Flags: {#COMMON_FLAGS}
|
||||
|
||||
; Optional arch-specific components (full installation)
|
||||
#if defined(DEBUG_SYMBOLS) && COMPONENT != "X86"
|
||||
#if defined(DEBUG_SYMBOLS)
|
||||
Source: "{#BUNDLE}\*.pdb"; DestDir: "{app}"; Components: debug{#COMPONENT}; Flags: {#COMMON_FLAGS}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -355,7 +355,7 @@ if buildtype == 'debug' or buildtype == 'debugoptimized'
|
|||
elif cc.get_argument_syntax() == 'msvc'
|
||||
# CodeView symbols for DIA or DbgHelp debuggers and LLDB on Windows
|
||||
debugging_format = 'Native'
|
||||
elif platform_windows and get_option('win-debugging') == 'native' and cc.has_argument('-gcodeview') and cc.has_link_argument('-Wl,--pdb=') and cc.get_id() == 'clang'
|
||||
elif platform_windows and get_option('win-debugging') == 'native' and cc.has_argument('-gcodeview') and cc.has_link_argument('-Wl,--pdb=')
|
||||
# CodeView symbols for DIA or DbgHelp debuggers and LLDB on Windows
|
||||
debugging_format = 'native'
|
||||
compiler_args += '-gcodeview'
|
||||
|
|
|
|||
Loading…
Reference in a new issue