2017-10-23 10:53:04 +02:00
|
|
|
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 = [
|
2017-11-23 09:15:37 +01:00
|
|
|
glib_dep,
|
2017-10-23 10:53:04 +02:00
|
|
|
cc.find_library('m', required: false),
|
|
|
|
]
|
|
|
|
|
2018-12-15 12:18:04 +01:00
|
|
|
custom_c_args = cc.get_supported_arguments([
|
|
|
|
'-Wno-implicit-fallthrough',
|
|
|
|
'-Wno-old-style-definition',
|
|
|
|
'-Wno-strict-prototypes',
|
|
|
|
'-Wno-suggest-attribute=noreturn',
|
|
|
|
'-Wno-type-limits',
|
|
|
|
'-Wno-undef',
|
|
|
|
'-Wno-unused-parameter',
|
|
|
|
'-Wno-cast-align',
|
|
|
|
'-Wno-unused-function',
|
|
|
|
])
|
2017-10-23 10:53:04 +02:00
|
|
|
cmph = static_library('cmph',
|
|
|
|
sources: cmph_sources,
|
2018-12-15 12:18:04 +01:00
|
|
|
c_args: gi_hidden_visibility_cflags + custom_c_args,
|
2017-10-23 10:53:04 +02:00
|
|
|
dependencies: cmph_deps,
|
|
|
|
)
|
|
|
|
|
|
|
|
cmph_dep = declare_dependency(
|
|
|
|
link_with: cmph,
|
|
|
|
include_directories: include_directories('.'),
|
|
|
|
)
|
|
|
|
|
2018-12-15 12:18:04 +01:00
|
|
|
custom_c_args = cc.get_supported_arguments([
|
|
|
|
'-Wno-old-style-definition',
|
|
|
|
'-Wno-strict-prototypes',
|
|
|
|
'-Wno-type-limits',
|
|
|
|
])
|
2017-10-23 10:53:04 +02:00
|
|
|
cmph_test = executable('cmph-bdz-test', '../cmph-bdz-test.c',
|
|
|
|
dependencies: [
|
|
|
|
cmph_dep,
|
2017-11-23 09:15:37 +01:00
|
|
|
glib_dep,
|
2018-12-15 12:18:04 +01:00
|
|
|
],
|
|
|
|
c_args: custom_c_args,
|
2017-10-23 10:53:04 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
test('cmph-bdz-test', cmph_test)
|