Commit 7e9c801b authored by Kiste's avatar Kiste
Browse files

Move build scripts

parent 79ae1c8d
project('libbulletml', 'c', 'cpp', default_options : ['c_std=c89', 'cpp_std=c++03'])
incdir = include_directories('src')
bison = find_program('bison')
bigen = generator(bison, output : ['@BASENAME@.cpp'], arguments : ['@INPUT@', '-y', '--output=@OUTPUT@'])
bifiles = bigen.process('src/calc.yy')
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')
subdir('src')
bison = find_program('bison')
bigen = generator(bison, output : ['@BASENAME@.cpp'], arguments : ['@INPUT@', '-y', '--output=@OUTPUT@'])
bifiles = bigen.process('calc.yy')
bulletml = library('bulletml',
'bulletmlparser-tinyxml.cpp',
'bulletmlparser.cpp',
'bulletmlrunner.cpp',
'bulletmlrunnerimpl.cpp',
'bulletmltree.cpp',
'formula-variables.cpp',
'tinyxml/tinyxml.cpp',
'tinyxml/tinyxmlerror.cpp',
'tinyxml/tinyxmlparser.cpp',
bifiles, install : true, version : '1.0', soversion : 0
)
install_headers(
'auto_ptr_fix.h',
'bulletmlcommon.h',
'bulletmlerror.h',
'bulletmlparser-tinyxml.h',
'bulletmlparser-xerces.h',
'bulletmlparser-ygg.h',
'bulletmlparser.h',
'bulletmlrunner.h',
'bulletmlrunnerimpl.h',
'bulletmltree.h',
'calc.h',
'formula-variables.h',
'formula.h',
'tree.h',
subdir : 'bulletml'
)
install_headers(
'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