Make project buildable by MSVC

This commit is contained in:
Tau
2018-11-23 18:24:41 -05:00
parent 359561d762
commit 6adb4e7b8b
6 changed files with 63 additions and 10 deletions

View File

@ -1,19 +1,27 @@
project('segatools', 'c', version: '0.1.0')
add_project_arguments(
'-Wall',
'-DCOBJMACROS',
'-ffunction-sections',
'-fdata-sections',
'-DWIN32_LEAN_AND_MEAN',
language: 'c',
)
add_project_link_arguments(
'-Wl,--exclude-all-symbols',
'-Wl,--gc-sections',
'-static-libgcc',
language: 'c',
)
# Use get_argument_syntax() instead once Meson 0.49.0 releases
if meson.get_compiler('c').get_id() != 'msvc'
add_project_arguments(
'-Wall',
'-ffunction-sections',
'-fdata-sections',
language: 'c',
)
add_project_link_arguments(
'-Wl,--exclude-all-symbols',
'-Wl,--gc-sections',
'-static-libgcc',
language: 'c',
)
endif
inc = include_directories('.')
capnhook = subproject('capnhook')