2023-11-21 19:15:08 -08:00
|
|
|
project('graphicsconverter', ['cpp', 'c'],
|
2023-11-17 12:30:24 -08:00
|
|
|
version : '0.1',
|
|
|
|
default_options : ['warning_level=3',
|
2023-11-18 12:55:26 -08:00
|
|
|
'cpp_std=c++17',
|
2023-11-17 13:12:01 -08:00
|
|
|
'default_library=static'])
|
2023-11-17 12:30:24 -08:00
|
|
|
|
|
|
|
deps = [
|
2023-11-21 19:15:08 -08:00
|
|
|
dependency('Magick++', version : '>=6.9.11'),
|
|
|
|
dependency('openmp')
|
2023-11-17 12:30:24 -08:00
|
|
|
]
|
|
|
|
srcs = [
|
|
|
|
'palette.cpp',
|
|
|
|
'bitmapx16.cpp',
|
2023-11-21 19:15:08 -08:00
|
|
|
'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
|
|
|
]
|
|
|
|
exe = executable('b16converter', srcs,
|
|
|
|
install : true,
|
2023-11-21 19:15:08 -08:00
|
|
|
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)
|