bmxconverter/meson.build

58 lines
1.5 KiB
Meson
Raw Normal View History

project('graphicsconverter', ['cpp', 'c'],
2023-11-17 12:30:24 -08:00
version : '0.1',
default_options : ['warning_level=3',
'cpp_std=c++17',
2023-11-17 13:12:01 -08:00
'default_library=static'])
2023-11-17 12:30:24 -08:00
deps = [
dependency('Magick++', version : '>=6.9.11'),
dependency('openmp')
2023-11-17 12:30:24 -08:00
]
2023-12-01 15:46:43 -08:00
ncurses = dependency('curses', required: get_option('use_terminfo'))
if ncurses.found()
deps += ncurses
endif
conf = configuration_data()
check_headers = [
['curses.h', 'HAVE_CURSES_H']
]
foreach h : check_headers
if meson.get_compiler('cpp').has_header(h.get(0))
conf.set(h.get(1), 1)
endif
endforeach
2023-11-17 12:30:24 -08:00
srcs = [
'palette.cpp',
'bitmapx16.cpp',
'main.cpp',
'lzsa/src/dictionary.c',
'lzsa/src/expand_block_v1.c',
'lzsa/src/expand_block_v2.c',
'lzsa/src/expand_context.c',
'lzsa/src/expand_inmem.c',
'lzsa/src/expand_streaming.c',
'lzsa/src/frame.c',
'lzsa/src/matchfinder.c',
'lzsa/src/shrink_block_v1.c',
'lzsa/src/shrink_block_v2.c',
'lzsa/src/shrink_context.c',
'lzsa/src/shrink_inmem.c',
'lzsa/src/shrink_streaming.c',
'lzsa/src/stream.c',
'lzsa/src/libdivsufsort/lib/divsufsort_utils.c',
'lzsa/src/libdivsufsort/lib/divsufsort.c',
'lzsa/src/libdivsufsort/lib/sssort.c',
'lzsa/src/libdivsufsort/lib/trsort.c'
]
incdirs = [
'lzsa/src',
'lzsa/src/libdivsufsort/include'
2023-11-17 12:30:24 -08:00
]
2023-11-28 09:30:55 -08:00
exe = executable('bmxconverter', srcs,
2023-11-17 12:30:24 -08:00
install : true,
include_directories: incdirs,
c_args: ['-DHAVE_CONFIG_H=1','-D__STDC_LIMIT_MACROS','-D__STDC_CONSTANT_MACROS','-D__STDC_FORMAT_MACROS'],
2023-11-17 12:30:24 -08:00
dependencies : deps)
test('basic', exe)