54 lines
1.6 KiB
Meson
54 lines
1.6 KiB
Meson
|
project(
|
||
|
meson.current_source_dir().split('/').get(-1),
|
||
|
'cpp',
|
||
|
version : '1.0.0',
|
||
|
default_options : [
|
||
|
'warning_level=1',
|
||
|
'optimization=3',
|
||
|
'cpp_std=c++20',
|
||
|
])
|
||
|
|
||
|
add_project_arguments (
|
||
|
'-Wpedantic',
|
||
|
'-Wno-shadow',
|
||
|
'-Wno-unused-but-set-variable',
|
||
|
'-Wno-comment',
|
||
|
'-Wno-unused-parameter',
|
||
|
'-Wno-unused-value',
|
||
|
'-Wno-unused-header',
|
||
|
'-Wno-missing-field-initializers',
|
||
|
'-Wno-narrowing',
|
||
|
'-Wno-deprecated-enum-enum-conversion',
|
||
|
'-Wno-volatile',
|
||
|
'-Wno-format-security',
|
||
|
'-Wno-switch',
|
||
|
'-Wno-ignored-attributes',
|
||
|
'-Wno-unused-variable',
|
||
|
'-Wno-deprecated-enum-enum-conversion',
|
||
|
language: 'cpp'
|
||
|
)
|
||
|
|
||
|
#############################################################
|
||
|
|
||
|
#args = ['-lglfw', '-ldl', '-lGL', '-lpthread', '-lX11', '-lXxf86vm', '-lXrandr', '-lXi']
|
||
|
args = []
|
||
|
deps = []
|
||
|
inc = []
|
||
|
|
||
|
deps = [
|
||
|
dependency('uuid'),
|
||
|
dependency('threads'),
|
||
|
dependency('libpqxx'),
|
||
|
subproject('hack').get_variable('hack_dep'),
|
||
|
subproject('nlohmann_json').get_variable('nlohmann_json_dep'),
|
||
|
subproject('jwt-cpp').get_variable('jwt_dep'),
|
||
|
subproject('httplib').get_variable('cpp_httplib_dep'),
|
||
|
]
|
||
|
|
||
|
subdir('src')
|
||
|
subdir('tests')
|
||
|
|
||
|
message('==================================================================================================================')
|
||
|
message('=== т.к. мы не включаем зависимости в проект, котрый пушм на гит, то их нужно все подключить в deps (см. выше) ===')
|
||
|
message('==================================================================================================================')
|