Files
TeamTofuShop_capnhook/meson.build
T
Decaf Code bfee3db861 Fix MSVC compatibility issues
Project now builds in Visual Studio 2017, probably earlier versions
too as long as they support enough of C99.
2018-11-23 13:58:25 -05:00

30 lines
584 B
Meson

project('capnhook', 'c', version: '0.1.0')
add_project_arguments(
'-DCOBJMACROS',
'-DWIN32_LEAN_AND_MEAN',
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,--gc-sections',
'-static-libgcc',
language: 'c',
)
endif
inc = include_directories('.')
subdir('hook')
subdir('hooklib')
subdir('inject')