Remove DCP subtitle support.
[libsub.git] / test / wscript
1 def configure(conf):
2     boost_lib_suffix = ''
3     if conf.env.TARGET_WINDOWS:
4         boost_lib_suffix = '-mt'
5
6     conf.check_cxx(fragment="""
7                             #define BOOST_TEST_MODULE Config test\n
8                             #include <boost/test/unit_test.hpp>\n
9                             int main() {}
10                             """,
11                             msg='Checking for boost unit testing library',
12                             lib='boost_unit_test_framework%s' % boost_lib_suffix,
13                             uselib_store='BOOST_TEST')
14
15     conf.env.prepend_value('LINKFLAGS', '-Lsrc')
16
17 def build(bld):
18     obj = bld(features='cxx cxxprogram')
19     obj.name   = 'tests'
20     obj.uselib = 'BOOST_TEST BOOST_REGEX BOOST_FILESYSTEM CXML'
21     obj.use    = 'libsub-1.0'
22     obj.source = """
23                  iso6937_test.cc
24                  ssa_reader_test.cc
25                  stl_binary_reader_test.cc
26                  stl_binary_writer_test.cc
27                  stl_text_reader_test.cc
28                  subrip_reader_test.cc
29                  time_test.cc
30                  test.cc
31                  vertical_position_test.cc
32                  webvtt_reader_test.cc
33                  """
34     obj.target = 'tests'
35     obj.install_path = ''