web-stack-project/meson.build
2023-01-11 01:11:44 +01:00

56 lines
979 B
Meson

project(
'web-stack-project',
'cpp',
version: '0.1',
default_options: [
'warning_level=3',
'cpp_std=c++20',
],
)
fmt_dep = dependency('fmt')
sdl2_dep = dependency('sdl2')
add_project_arguments(
'-Wno-gnu-statement-expression-from-macro-expansion',
language: 'cpp',
)
common_sources = []
subdir('utils')
subdir('scriptlang')
subdir('markup')
browser_sources = common_sources
subdir('browser')
executable(
'web-browser',
browser_sources,
win_subsystem: 'console',
include_directories: [
include_directories('.'),
include_directories('browser'),
],
dependencies: [
fmt_dep,
sdl2_dep,
],
)
server_sources = common_sources
subdir('server')
executable(
'web-server',
server_sources,
win_subsystem: 'console',
include_directories: [
include_directories('.'),
include_directories('server'),
],
dependencies: [
fmt_dep,
],
)