mirror of
https://gitea.tendokyu.moe/TeamTofuShop/capnhook.git
synced 2026-09-22 22:38:12 +03:00
Project now builds in Visual Studio 2017, probably earlier versions too as long as they support enough of C99.
30 lines
584 B
Meson
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')
|