meson/test cases/frameworks/1 boost/meson.build

32 lines
1.3 KiB
Meson
Raw Normal View History

project('boosttest', 'cpp',
default_options : ['cpp_std=c++11'])
2013-03-24 19:21:35 +08:00
add_project_arguments(['-DBOOST_LOG_DYN_LINK'],
language : 'cpp'
)
# We want to have multiple separate configurations of Boost
# within one project. The need to be independent of each other.
# Use one without a library dependency and one with it.
2013-03-24 19:21:35 +08:00
2013-06-02 19:06:43 +08:00
nolinkdep = dependency('boost', modules: 'utility')
2013-08-12 03:55:40 +08:00
linkdep = dependency('boost', modules : ['thread', 'system'])
2017-05-26 03:09:32 +08:00
staticdep = dependency('boost', modules : ['thread', 'system'], static : true)
testdep = dependency('boost', modules : 'test')
nomoddep = dependency('boost')
extralibdep = dependency('boost', modules : ['thread', 'system', 'log_setup', 'log'])
2013-03-24 19:21:35 +08:00
2014-06-22 22:26:36 +08:00
nolinkexe = executable('nolinkedexe', 'nolinkexe.cc', dependencies : nolinkdep)
linkexe = executable('linkedexe', 'linkexe.cc', dependencies : linkdep)
2017-05-30 01:22:14 +08:00
staticexe = executable('staticlinkedexe', 'linkexe.cc', dependencies : staticdep)
unitexe = executable('utf', 'unit_test.cpp', dependencies: testdep)
nomodexe = executable('nomod', 'nomod.cpp', dependencies : nomoddep)
extralibexe = executable('extralibexe', 'extralib.cpp', dependencies : extralibdep)
2013-03-24 19:21:35 +08:00
2017-05-26 03:09:32 +08:00
test('Boost nolinktest', nolinkexe)
test('Boost linktest', linkexe)
test('Boost statictest', staticexe)
test('Boost UTF test', unitexe)
test('Boost nomod', nomodexe)
test('Boost extralib test', extralibexe)