Files
TeamTofuShop_capnhook/meson.build
T
Decaf Code 6fad9ad7f7 Use Meson get_argument_syntax()
Newer versions of Meson introduce a more reliable way to detect
the compiler's expected command-line argument style.
2019-05-01 21:00:59 -04:00

29 lines
534 B
Meson

project('capnhook', 'c', version: '0.2.2')
add_project_arguments(
'-DCOBJMACROS',
'-DWIN32_LEAN_AND_MEAN',
language: 'c',
)
if meson.get_compiler('c').get_argument_syntax() != 'msvc'
add_project_arguments(
'-Wall',
'-ffunction-sections',
'-fdata-sections',
language: 'c',
)
add_project_link_arguments(
'-Wl,--gc-sections',
'-static-libgcc',
language: 'c',
)
endif
inc = include_directories('.')
subdir('hook')
subdir('hooklib')
subdir('inject')