26740a7e9164570c5c4893704999c37a64069009
[dcpomatic.git] / src / lib / wscript
1 def configure(conf):
2     conf.check_cc(msg = 'Checking for library libmhash', function_name = 'mhash_init', header_name = 'mhash.h', lib = 'mhash', uselib_store = 'MHASH')
3
4 def build(bld):
5     obj = bld(features = 'cxx cxxshlib')
6     obj.name = 'libdvdomatic'
7     obj.export_includes = ['.']
8     obj.uselib = 'AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE SWRESAMPLE SNDFILE BOOST_FILESYSTEM BOOST_THREAD OPENJPEG POSTPROC TIFF SIGC++ MAGICK SSH DCP GLIB MHASH'
9     if bld.env.TARGET_WINDOWS:
10         obj.uselib += ' WINSOCK2'
11     obj.source = """
12                  ab_transcode_job.cc
13                  ab_transcoder.cc
14                  config.cc
15                  copy_from_dvd_job.cc
16                  cross.cc
17                  dcp_content_type.cc
18                  dcp_video_frame.cc
19                  decoder.cc
20                  decoder_factory.cc
21                  delay_line.cc
22                  dolby_cp750.cc
23                  dvd.cc
24                  encoder.cc
25                  encoder_factory.cc
26                  examine_content_job.cc
27                  ffmpeg_compatibility.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                  scp_dcp_job.cc
43                  scaler.cc
44                  screen.cc
45                  server.cc
46                  sound_processor.cc
47                  thumbs_job.cc
48                  tiff_decoder.cc
49                  tiff_encoder.cc
50                  timer.cc
51                  transcode_job.cc
52                  transcoder.cc
53                  util.cc
54                  version.cc
55                  """
56
57     if not bld.env.DISABLE_PLAYER:
58         obj.source += " player.cc player_manager.cc"
59
60     obj.target = 'dvdomatic'