Commit 79ae1c8d authored by Kiste's avatar Kiste
Browse files

Complete build system

parent f4e8f6c6
*.ninja
*.o
*.so
calc.cpp
meson-*
build.ninja
compile_commands.json
.ninja_*
build
project('libbulletml', 'c', 'cpp')
project('libbulletml', 'c', 'cpp', default_options : ['c_std=c89', 'cpp_std=c++03'])
incdir = include_directories('src')
......@@ -6,4 +6,41 @@ bison = find_program('bison')
bigen = generator(bison, output : ['@BASENAME@.cpp'], arguments : ['@INPUT@', '-y', '--output=@OUTPUT@'])
bifiles = bigen.process('src/calc.yy')
library('bulletml', 'src/bulletmlparser.cpp', 'src/bulletmlparser-tinyxml.cpp', 'src/bulletmlrunnerimpl.cpp', 'src/bulletmlrunner.cpp', 'src/bulletmltree.cpp', 'src/formula-variables.cpp', 'src/tinyxml/tinyxml.cpp', 'src/tinyxml/tinyxmlerror.cpp', 'src/tinyxml/tinyxmlparser.cpp', bifiles, include_directories : incdir)
bulletml = library('bulletml',
'src/bulletmlparser-tinyxml.cpp',
'src/bulletmlparser.cpp',
'src/bulletmlrunner.cpp',
'src/bulletmlrunnerimpl.cpp',
'src/bulletmltree.cpp',
'src/formula-variables.cpp',
'src/tinyxml/tinyxml.cpp',
'src/tinyxml/tinyxmlerror.cpp',
'src/tinyxml/tinyxmlparser.cpp',
bifiles, include_directories : incdir, install : true, version : '1.0', soversion : 0
)
install_headers(
'src/auto_ptr_fix.h',
'src/bulletmlcommon.h',
'src/bulletmlerror.h',
'src/bulletmlparser-tinyxml.h',
'src/bulletmlparser-xerces.h',
'src/bulletmlparser-ygg.h',
'src/bulletmlparser.h',
'src/bulletmlrunner.h',
'src/bulletmlrunnerimpl.h',
'src/bulletmltree.h',
'src/calc.h',
'src/formula-variables.h',
'src/formula.h',
'src/tree.h',
subdir : 'bulletml'
)
install_headers(
'src/tinyxml/tinyxml.h',
subdir : 'bulletml/tinyxml'
)
pkg = import('pkgconfig')
pkg.generate(libraries : bulletml, name : 'libbulletml', version : '1.0', description : 'C++ library to handle BulletML easily')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment