Use crash_writer_minidump on Windows

This was done in Aegisub/Aegisub.
This commit is contained in:
arch1t3cht 2023-12-02 17:21:11 +01:00
parent 18d088c479
commit ce557d98e4

View file

@ -54,7 +54,6 @@ aegisub_src = files(
'command/vis_tool.cpp', 'command/vis_tool.cpp',
'compat.cpp', 'compat.cpp',
'context.cpp', 'context.cpp',
'crash_writer.cpp',
'dialog_about.cpp', 'dialog_about.cpp',
'dialog_attachments.cpp', 'dialog_attachments.cpp',
'dialog_automation.cpp', 'dialog_automation.cpp',
@ -171,7 +170,12 @@ if host_machine.system() == 'darwin'
) )
elif host_machine.system() == 'windows' elif host_machine.system() == 'windows'
aegisub_src += files( aegisub_src += files(
<<<<<<< Updated upstream
'avisynth_wrap.cpp', 'avisynth_wrap.cpp',
||||||| Stash base
=======
'crash_writer_minidump.cpp',
>>>>>>> Stashed changes
'font_file_lister_gdi.cpp', 'font_file_lister_gdi.cpp',
# 'libass_gdi_fontselect.cpp', # 'libass_gdi_fontselect.cpp',
'video_provider_avs.cpp', 'video_provider_avs.cpp',
@ -217,6 +221,12 @@ elif host_machine.system() == 'windows'
aegisub_src += windows.compile_resources('res/strings.rc') aegisub_src += windows.compile_resources('res/strings.rc')
endif endif
if host_machine.system() != 'windows'
aegisub_src += files(
'crash_writer.cpp'
)
endif
if conf.has('WITH_FONTCONFIG') if conf.has('WITH_FONTCONFIG')
aegisub_src += files('font_file_lister_fontconfig.cpp') aegisub_src += files('font_file_lister_fontconfig.cpp')
endif endif