chore: adjust build flags

This commit is contained in:
Beriff
2026-03-12 10:45:05 +07:00
parent 237bb02a8c
commit f96d6066ee

View File

@@ -10,8 +10,15 @@ project(
],
)
gtk = dependency('gtk4', required: true)
epoxy = dependency('epoxy')
c_args = meson.get_compiler('c').get_supported_arguments([
'-Wno-unused-variable',
'-Wno-unused-parameter',
'-Wno-pedantic'
])
add_project_arguments(c_args, language: 'c')
gtk = dependency('gtk4', required: true, include_type: 'system')
epoxy = dependency('epoxy', include_type: 'system')
src = files(
'src/main.c',
@@ -27,7 +34,7 @@ src = files(
executable(
'vektor',
src,
dependencies: [gtk,epoxy],
dependencies: [gtk, epoxy],
link_args: ['-lm'],
install: true,
)