asdcplib links.
[dcpomatic.git] / src / lib / wscript
1 def configure(conf):
2     if conf.options.debug_hash:
3         conf.env.append_value('CXXFLAGS', '-DDEBUG_HASH')
4         conf.check_cc(msg = 'Checking for library libmhash', function_name = 'mhash_init', header_name = 'mhash.h', lib = 'mhash', uselib_store = 'MHASH')
5
6 def build(bld):
7     obj = bld(features = 'cxx cxxshlib')
8     obj.name = 'libdvdomatic'
9     obj.export_includes = ['.']
10     obj.uselib = 'AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE SWRESAMPLE SNDFILE BOOST_FILESYSTEM BOOST_THREAD OPENJPEG POSTPROC TIFF SIGC++ MAGICK SSH'
11     obj.use = 'libasdcp-dvdomatic'
12     if bld.env.DEBUG_HASH:
13         obj.uselib += ' MHASH'
14     obj.source = """
15                  ab_transcode_job.cc
16                  ab_transcoder.cc
17                  config.cc
18                  copy_from_dvd_job.cc
19                  dcp_content_type.cc
20                  dcp_video_frame.cc
21                  decoder.cc
22                  decoder_factory.cc
23                  delay_line.cc
24                  dvd.cc
25                  encoder.cc
26                  encoder_factory.cc
27                  examine_content_job.cc
28                  ffmpeg_decoder.cc
29                  film.cc
30                  film_state.cc
31                  filter.cc
32                  format.cc
33                  image.cc
34                  imagemagick_decoder.cc
35                  j2k_still_encoder.cc
36                  j2k_wav_encoder.cc
37                  job.cc
38                  job_manager.cc
39                  log.cc
40                  lut.cc
41                  make_dcp_job.cc
42                  make_mxf_job.cc
43                  player.cc
44                  player_manager.cc
45                  scaler.cc
46                  screen.cc
47                  server.cc
48                  scp_dcp_job.cc
49                  shell_command_job.cc
50                  thumbs_job.cc
51                  tiff_decoder.cc
52                  tiff_encoder.cc
53                  timer.cc
54                  transcode_job.cc
55                  transcoder.cc
56                  util.cc
57                  """
58     obj.target = 'dvdomatic'