71a2b23f41be508c893b0c250ee1137e389b93f2
[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 DCP GLIB'
11     if bld.env.TARGET_WINDOWS:
12         obj.uselib += ' WINSOCK2'
13     if bld.env.DEBUG_HASH:
14         obj.uselib += ' MHASH'
15     obj.source = """
16                  ab_transcode_job.cc
17                  ab_transcoder.cc
18                  config.cc
19                  copy_from_dvd_job.cc
20                  cross.cc
21                  dcp_content_type.cc
22                  dcp_video_frame.cc
23                  decoder.cc
24                  decoder_factory.cc
25                  delay_line.cc
26                  dolby_cp750.cc
27                  dvd.cc
28                  encoder.cc
29                  encoder_factory.cc
30                  examine_content_job.cc
31                  ffmpeg_compatibility.cc
32                  ffmpeg_decoder.cc
33                  film.cc
34                  film_state.cc
35                  filter.cc
36                  format.cc
37                  image.cc
38                  imagemagick_decoder.cc
39                  j2k_still_encoder.cc
40                  j2k_wav_encoder.cc
41                  job.cc
42                  job_manager.cc
43                  log.cc
44                  lut.cc
45                  make_dcp_job.cc
46                  scp_dcp_job.cc
47                  scaler.cc
48                  screen.cc
49                  server.cc
50                  sound_processor.cc
51                  thumbs_job.cc
52                  tiff_decoder.cc
53                  tiff_encoder.cc
54                  timer.cc
55                  transcode_job.cc
56                  transcoder.cc
57                  util.cc
58                  version.cc
59                  """
60
61     if not bld.env.DISABLE_PLAYER:
62         obj.source += " player.cc player_manager.cc"
63
64     obj.target = 'dvdomatic'