build: common instead of seperate

This commit is contained in:
SimonFJ20 2023-01-09 21:15:24 +01:00
parent deb40d01fc
commit e187da0d8d
4 changed files with 6 additions and 20 deletions

View File

@ -1,7 +1,5 @@
markup_sources += files( common_sources += files(
'parser.cpp', 'parser.cpp',
'lexer.cpp', 'lexer.cpp',
) )
# markup_inc = include_directories('.')

View File

@ -11,20 +11,12 @@ project(
fmt_dep = dependency('fmt') fmt_dep = dependency('fmt')
sdl2_dep = dependency('sdl2') sdl2_dep = dependency('sdl2')
common_sources = []
utils_sources = []
subdir('utils') subdir('utils')
scriptlang_sources = []
subdir('scriptlang') subdir('scriptlang')
markup_sources = []
subdir('markup') subdir('markup')
common_sources = utils_sources + scriptlang_sources + markup_sources browser_sources = common_sources
browser_sources = [] + common_sources
subdir('browser') subdir('browser')
browser_sources browser_sources
@ -42,7 +34,7 @@ executable(
], ],
) )
server_sources = [] + common_sources server_sources = common_sources
subdir('server') subdir('server')
executable( executable(

View File

@ -1,7 +1,5 @@
scriptlang_sources += files( common_sources += files(
'parser.cpp', 'parser.cpp',
'lexer.cpp', 'lexer.cpp',
) )
# scriptlang_inc = include_directories('.')

View File

@ -1,4 +1,2 @@
utils_sources = files() common_sources = files()
# utils_inc = include_directories('.')