add meson.build
This commit is contained in:
parent
6a72941b00
commit
1074aed28b
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,6 @@
|
||||||
|
# meson build dir
|
||||||
|
build/
|
||||||
|
|
||||||
Log.o
|
Log.o
|
||||||
|
|
||||||
# for test
|
# for test
|
||||||
|
|
17
meson.build
Normal file
17
meson.build
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
inc = include_directories('.')
|
||||||
|
|
||||||
|
lib_okaestne_log = both_libraries('okaestne-log',
|
||||||
|
'Log.cpp',
|
||||||
|
include_directories: inc,
|
||||||
|
cpp_args: ['-O2', '-std=c++11', '-Wall', '-Wextra', '-pedantic-errors', '-g']
|
||||||
|
)
|
||||||
|
|
||||||
|
# to depend on in other projects:
|
||||||
|
okaestne_log_static_dep = declare_dependency(
|
||||||
|
link_with: lib_okaestne_log,
|
||||||
|
include_directories: inc
|
||||||
|
)
|
||||||
|
okaestne_log_shared_dep = declare_dependency(
|
||||||
|
link_with: lib_okaestne_log,
|
||||||
|
include_directories: inc
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user