meson: add Windows-specific project args

This commit is contained in:
Ryan Lucia 2019-02-17 12:27:37 -05:00 committed by line0
parent 637d4ba177
commit dc961fbeca
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@ version_h = custom_target('git_version.h',
dataroot = get_option('prefix') / get_option('datadir') / 'aegisub'
add_project_arguments('-DP_DATA="@0@"'.format(dataroot), language: 'cpp')
if host_machine.system() == 'windows'
add_project_arguments('-DNOMINMAX', '-D_WIN32_WINNT=0x0602', language: 'cpp')
endif
conf = configuration_data()
conf.set_quoted('P_DATA', dataroot)
if get_option('build_credit') != ''