from waflib import Logs, Context
APPNAME = 'dcpomatic'
-libdcp_version = '1.8.68'
+libdcp_version = '1.8.73'
libsub_version = '1.6.42'
this_version = subprocess.Popen(shlex.split('git tag -l --points-at HEAD'), stdout=subprocess.PIPE).communicate()[0]
conf.check_cfg(package='libzip', args='--cflags --libs', uselib_store='ZIP', mandatory=True)
conf.check_cxx(fragment="""
#include <zip.h>
- int main() { zip_source_t* foo; }
+ int main() { zip_source_t* foo; (void)foo; }
""",
mandatory=False,
msg="Checking for zip_source_t",
uselib="ZIP",
define_name='DCPOMATIC_HAVE_ZIP_SOURCE_T'
)
+ conf.check_cxx(fragment="""
+ #include <zip.h>
+ int main() { struct zip* zip = nullptr; zip_source_t* source = nullptr; zip_file_add(zip, "foo", source, ZIP_FL_ENC_GUESS); }
+ """,
+ mandatory=False,
+ msg="Checking for zip_file_add",
+ uselib="ZIP",
+ define_name='DCPOMATIC_HAVE_ZIP_FILE_ADD'
+ )
# libbz2; must be explicitly linked on macOS for some reason
conf.check_cxx(fragment="""