Working prototype of an auto builder that watches for changes and runs the build after getting the git status. It's missing the necessary next step of matching up changes to git files, but it does the most of the build already.
This commit is contained in:
parent
39f89ecbf2
commit
96b1297c62
10 changed files with 254 additions and 7 deletions
|
@ -1,13 +1,31 @@
|
|||
project('lcppthw', 'cpp',
|
||||
default_options: ['cpp_std=c++20'])
|
||||
|
||||
cmake = import('cmake')
|
||||
opts = cmake.subproject_options()
|
||||
opts.add_cmake_defines({
|
||||
'USE_ICONV': false,
|
||||
'USE_SSH': 'exec',
|
||||
'BUILD_SHARED_LIBS': true,
|
||||
'BUILD_TESTS': false,
|
||||
})
|
||||
libgit2_proj = cmake.subproject('libgit2', options: opts)
|
||||
libgit2package_dep = libgit2_proj.dependency('libgit2package')
|
||||
|
||||
efsw_proj = cmake.subproject('efsw')
|
||||
efsw_dep = efsw_proj.dependency('efsw')
|
||||
|
||||
dependencies = [
|
||||
dependency('fmt'),
|
||||
dependency('sqlite3'),
|
||||
dependency('sqlitecpp')
|
||||
libgit2package_dep,
|
||||
efsw_dep,
|
||||
]
|
||||
|
||||
executable('goc', 'goc.cpp',
|
||||
cpp_args: '-DFMT_HEADER_ONLY',
|
||||
dependencies: [dependency('fmt')])
|
||||
|
||||
executable('watchgit', 'watchgit.cpp',
|
||||
cpp_args: '-DFMT_HEADER_ONLY',
|
||||
dependencies: dependencies)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue