2020-11-28 14:40:46 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
2020-11-28 14:08:28 +00:00
|
|
|
project('yttui', ['cpp'], default_options: ['buildtype=release', 'cpp_std=c++17'], version: '0.1.0')
|
|
|
|
|
|
|
|
add_project_arguments('-Werror=return-type', language: 'cpp')
|
|
|
|
|
2020-11-28 14:42:31 +00:00
|
|
|
termpaint_dep = dependency('termpaint', static: true, version: '>=0.3.0')
|
2020-11-28 14:08:28 +00:00
|
|
|
sqlite3_dep = dependency('sqlite3')
|
|
|
|
curl_dep = dependency('libcurl')
|
2020-11-28 14:42:31 +00:00
|
|
|
json_dep = dependency('nlohmann_json', version: '>=3.5.0')
|
2020-11-28 14:08:28 +00:00
|
|
|
|
|
|
|
#ide:editable-filelist
|
2020-12-16 18:41:58 +00:00
|
|
|
application_files = [
|
|
|
|
'application.cpp',
|
2020-11-28 14:08:28 +00:00
|
|
|
'db.cpp',
|
|
|
|
'tui.cpp',
|
|
|
|
'yt.cpp',
|
|
|
|
]
|
|
|
|
|
2020-12-16 18:41:58 +00:00
|
|
|
#ide:editable-filelist
|
|
|
|
application_deps = [
|
2020-11-28 14:08:28 +00:00
|
|
|
termpaint_dep,
|
|
|
|
sqlite3_dep,
|
|
|
|
curl_dep,
|
|
|
|
json_dep
|
|
|
|
]
|
|
|
|
|
2020-12-16 18:41:58 +00:00
|
|
|
application = static_library('yttui-application', application_files, dependencies: application_deps)
|
|
|
|
|
|
|
|
tui_files = [
|
|
|
|
'yttui.cpp',
|
|
|
|
]
|
|
|
|
executable('yttui', tui_files, link_with: [application], install: true)
|