Add colour conversion identifier to video identifier.
[dcpomatic.git] / test / wscript
1 def configure(conf):
2     boost_test_suffix=''
3     if conf.env.TARGET_WINDOWS:
4         boost_test_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                               """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework%s' % boost_test_suffix, uselib_store = 'BOOST_TEST')
11
12 def build(bld):
13     obj = bld(features = 'cxx cxxprogram')
14     obj.name   = 'unit-tests'
15     obj.uselib = 'BOOST_TEST DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML'
16     obj.use    = 'libdcpomatic'
17     obj.source = """
18                  test.cc
19                  colour_conversion_test.cc
20                  audio_delay_test.cc
21                  silence_padding_test.cc
22                  audio_merger_test.cc
23                  resampler_test.cc
24                  ffmpeg_audio_test.cc
25                  threed_test.cc
26                  play_test.cc
27                  frame_rate_test.cc
28                  ffmpeg_pts_offset.cc
29                  ffmpeg_examiner_test.cc
30                  black_fill_test.cc
31                  scaling_test.cc
32                  ratio_test.cc
33                  pixel_formats_test.cc
34                  make_black_test.cc
35                  film_metadata_test.cc
36                  stream_test.cc
37                  util_test.cc
38                  ffmpeg_dcp_test.cc
39                  job_test.cc
40                  client_server_test.cc
41                  image_test.cc
42                  4k_test.cc
43                  """
44
45     obj.target = 'unit-tests'
46     obj.install_path = ''