extern void run_ffprobe (boost::filesystem::path, boost::filesystem::path);
extern std::list<std::pair<std::string, std::string> > mount_info ();
extern boost::filesystem::path openssl_path ();
+#ifdef DCPOMATIC_DISK
extern boost::filesystem::path disk_writer_path ();
+#endif
#ifdef DCPOMATIC_OSX
extern boost::filesystem::path app_contents ();
#endif
}
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
+#ifdef DCPOMATIC_DISK
#include <boost/dll/runtime_symbol_info.hpp>
+#endif
#include <unistd.h>
#include <mntent.h>
#include <sys/types.h>
return "dcpomatic2_openssl";
}
+#ifdef DCPOMATIC_DISK
boost::filesystem::path
disk_writer_path ()
{
return boost::dll::program_location().parent_path() / "dcpomatic2_disk_writer";
}
+#endif
/* Apparently there is no way to create an ofstream using a UTF-8
filename under Windows. We are hence reduced to using fopen
return path;
}
+#ifdef DCPOMATIC_DISK
boost::filesystem::path
disk_writer_path ()
{
path /= "dcpomatic2_disk_writer";
return path;
}
+#endif
/* Apparently there is no way to create an ofstream using a UTF-8
filename under Windows. We are hence reduced to using fopen
return executable_path() / "openssl.exe";
}
+#ifdef DCPOMATIC_DISK
boost::filesystem::path
disk_writer_path ()
{
return executable_path() / "dcpomatic2_disk_writer.exe";
}
+#endif
/* Apparently there is no way to create an ofstream using a UTF-8
filename under Windows. We are hence reduced to using fopen
opt.add_option('--force-cpp11', action='store_true', default=False, help='force use of C++11')
opt.add_option('--variant', help='build variant (swaroop-studio, swaroop-theater)', choices=['swaroop-studio', 'swaroop-theater'])
opt.add_option('--use-lld', action='store_true', default=False, help='use lld linker')
- opt.add_option('--enable-disk', action='store_true', default=False, help='build dcpomatic2_disk tool; requires Boost process and lwext4 libraries')
+ opt.add_option('--enable-disk', action='store_true', default=False, help='build dcpomatic2_disk tool; requires Boost process, lwext4 and nanomsg libraries')
def configure(conf):
conf.load('compiler_cxx')
if conf.options.variant.startswith('swaroop-'):
conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_VARIANT_SWAROOP')
+ if conf.options.enable_disk:
+ conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_DISK')
+
if conf.options.use_lld:
try:
conf.find_program('ld.lld')