micetools/meson.build

31 lines
723 B
Meson
Raw Normal View History

2022-07-02 15:07:54 +00:00
project('micetools', 'c', default_options: [
'buildtype=minsize',
# ! Tobble /\ and \/ when building for XP (minsize=normal, static=XP)
# 'b_vscrt=static_from_buildtype',
'warning_level=2',
])
winxp = false
subsystem = 'console,5.01'
2022-06-13 03:22:52 +00:00
if (host_machine.cpu_family() == 'x86')
add_project_arguments('-DMICE_WIN32', language: 'c')
endif
add_project_arguments(
2022-07-02 15:07:54 +00:00
'/DWIN32_LEAN_AND_MEAN', # Strip out headers we don't really need
'/D_WIN32_WINNT=_WIN32_WINNT_WINXP', # hahahahaha I hate it
2022-06-13 03:22:52 +00:00
language: 'c',
)
2022-07-02 15:07:54 +00:00
if winxp
add_project_arguments(
'/D_USING_V140_SDK71_',
'/DSFML_STATIC',
'/DYNAMICBASE:NO',
language: 'c',
)
endif
2022-06-13 03:22:52 +00:00
2022-06-13 06:42:13 +00:00
subdir('assets')
2022-06-13 03:22:52 +00:00
subdir('src')