lots of stuff

This commit is contained in:
Mars 2024-05-31 22:59:00 -04:00
parent e8fb8ec19f
commit 791e237470
Signed by: pupbrained
GPG key ID: 874E22DF2F9DFCB5
224 changed files with 19811 additions and 129 deletions

View file

@ -22,7 +22,7 @@ add_project_arguments(
language: 'cpp'
)
source_file_names = ['src/main.cpp', 'src/os/os.h']
source_file_names = ['src/main.cpp', 'src/os/os.h', 'src/config/config.cpp', 'src/config/config.h']
if host_machine.system() == 'linux'
source_file_names += ['src/os/linux.cpp']
@ -38,22 +38,23 @@ foreach file : source_file_names
sources += files(file)
endforeach
boost_dep = dependency('boost')
cpr_dep = cc.find_library('cpr')
curl_dep = cc.find_library('curl')
fmt_dep = dependency('fmt')
tomlplusplus_dep = cc.find_library('tomlplusplus')
playerctl_dep = dependency('playerctl')
deps = []
deps += cc.find_library('cpr')
deps += cc.find_library('curl')
deps += cc.find_library('tomlplusplus')
deps += dependency('boost')
deps += dependency('fmt')
if host_machine.system() == 'linux'
deps += dependency('playerctl')
endif
incdir = include_directories('include')
executable(
'draconis++',
sources,
dependencies: [
boost_dep,
cpr_dep,
curl_dep,
fmt_dep,
tomlplusplus_dep,
playerctl_dep
]
dependencies: deps,
include_directories: incdir
)