mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-10-31 11:36:18 +01:00
1a19f05a0e
By doing so, we essentially cover the various compiler flags that we want to use for non-Visual Studio builds to check for warnings that might cause real concern. This also skips the checks for the various GCC-isque CFlag checks that are scattered in the various build files on Visual Studio builds, since they are essentially meaningless on Visual Studio builds.
75 lines
1.3 KiB
Meson
75 lines
1.3 KiB
Meson
cmph_sources = [
|
|
'bdz.c',
|
|
'bdz_ph.c',
|
|
'bmz8.c',
|
|
'bmz.c',
|
|
'brz.c',
|
|
'buffer_entry.c',
|
|
'buffer_manager.c',
|
|
'chd.c',
|
|
'chd_ph.c',
|
|
'chm.c',
|
|
'cmph.c',
|
|
'cmph_structs.c',
|
|
'compressed_rank.c',
|
|
'compressed_seq.c',
|
|
'fch_buckets.c',
|
|
'fch.c',
|
|
'graph.c',
|
|
'hash.c',
|
|
'jenkins_hash.c',
|
|
'miller_rabin.c',
|
|
'select.c',
|
|
'vqueue.c',
|
|
'vstack.c',
|
|
]
|
|
|
|
cmph_deps = [
|
|
glib_dep,
|
|
cc.find_library('m', required: false),
|
|
]
|
|
|
|
custom_c_args = []
|
|
|
|
if cc.get_id() != 'msvc'
|
|
custom_c_args = cc.get_supported_arguments([
|
|
'-Wno-implicit-fallthrough',
|
|
'-Wno-old-style-definition',
|
|
'-Wno-suggest-attribute=noreturn',
|
|
'-Wno-type-limits',
|
|
'-Wno-undef',
|
|
'-Wno-unused-parameter',
|
|
'-Wno-cast-align',
|
|
'-Wno-unused-function',
|
|
'-Wno-return-type',
|
|
])
|
|
endif
|
|
|
|
cmph = static_library('cmph',
|
|
sources: cmph_sources,
|
|
c_args: gi_hidden_visibility_cflags + custom_c_args,
|
|
dependencies: cmph_deps,
|
|
)
|
|
|
|
cmph_dep = declare_dependency(
|
|
link_with: cmph,
|
|
include_directories: include_directories('.'),
|
|
)
|
|
|
|
if cc.get_id() != 'msvc'
|
|
custom_c_args = cc.get_supported_arguments([
|
|
'-Wno-old-style-definition',
|
|
'-Wno-type-limits',
|
|
])
|
|
endif
|
|
|
|
cmph_test = executable('cmph-bdz-test', '../cmph-bdz-test.c',
|
|
dependencies: [
|
|
cmph_dep,
|
|
glib_dep,
|
|
],
|
|
c_args: custom_c_args,
|
|
)
|
|
|
|
test('cmph-bdz-test', cmph_test)
|