omdb/meson.build
2026-02-05 20:42:41 -06:00

46 lines
898 B
Meson

project(
'omdb',
'c', 'cpp',
meson_version : '>= 1.3.0',
version : '0.1',
default_options : ['warning_level=3', 'cpp_std=c++17', 'c_std=c11'],
)
curl = dependency('libcurl')
cpp_flags = []
c_flags = ['-DPOSIXLY_CORRECT',
'-D_DEFAULT_SOURCE',
'-Wno-c99-extensions']
dependencies = [
curl
]
common_sources = [
'cJSON.c',
'fetch.c',
'image.cpp',
'tiv_lib.cpp',
]
add_project_arguments(cpp_flags, language : 'cpp')
add_project_arguments(c_flags, language : 'c')
exe = executable(
'omdb',
[common_sources, 'omdb.c'],
dependencies : dependencies,
include_directories : include_directories('deps'),
install : true,
)
tmdb_exe = executable(
'tmdb',
[common_sources, 'tmdb.c'],
dependencies : dependencies,
include_directories : include_directories('deps'),
install : true,
)
test('basic', exe, args : [ '-k', 'API_KEY', 'Jack Frost' ])