Typo in previous.
[libdcp.git] / wscript
diff --git a/wscript b/wscript
index a68939bd85d6c69545477fa5a37e9b6c878d7752..9260785182dd96d9ef39baba7ec99ded8cd426f2 100644 (file)
--- a/wscript
+++ b/wscript
@@ -2,7 +2,7 @@ import subprocess
 import os
 
 APPNAME = 'libdcp'
-VERSION = '0.54'
+VERSION = '0.62pre'
 
 def options(opt):
     opt.load('compiler_cxx')
@@ -22,7 +22,7 @@ def configure(conf):
     conf.env.ENABLE_DEBUG = conf.options.enable_debug
 
     if conf.options.target_windows:
-        conf.env.append_value('CXXFLAGS', '-DLIBDCP_WINDOWS')
+        conf.env.append_value('CXXFLAGS', ['-DLIBDCP_WINDOWS', '-DOPENSSL_SYS_WIN32'])
     else:
         conf.env.append_value('CXXFLAGS', '-DLIBDCP_POSIX')
 
@@ -31,6 +31,10 @@ def configure(conf):
 
     conf.check_cfg(package = 'openssl', args = '--cflags --libs', uselib_store = 'OPENSSL', mandatory = True)
     conf.check_cfg(package = 'libxml++-2.6', args = '--cflags --libs', uselib_store = 'LIBXML++', mandatory = True)
+    conf.check_cfg(package = 'xmlsec1', args = '--cflags --libs', uselib_store = 'XMLSEC1', mandatory = True)
+    # Remove erroneous escaping of quotes from xmlsec1 defines
+    conf.env.DEFINES_XMLSEC1 = [f.replace('\\', '') for f in conf.env.DEFINES_XMLSEC1]
+
     if conf.options.static:
         conf.check_cc(fragment = """
                        #include <stdio.h>\n
@@ -88,6 +92,15 @@ def configure(conf):
                    msg = 'Checking for boost signals2 library',
                    uselib_store = 'BOOST_SIGNALS2')
 
+    conf.check_cxx(fragment = """
+                             #include <boost/date_time.hpp>\n
+                             int main() { boost::gregorian::day_clock::local_day(); }\n
+                             """,
+                   msg = 'Checking for boost datetime library',
+                   libpath = '/usr/local/lib',
+                   lib = ['boost_date_time%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix],
+                   uselib_store = 'BOOST_DATETIME')
+
     conf.recurse('test')
     conf.recurse('asdcplib')