summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cross.h2
-rw-r--r--src/lib/cross_linux.cc4
-rw-r--r--src/lib/cross_osx.cc2
-rw-r--r--src/lib/cross_windows.cc2
4 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/cross.h b/src/lib/cross.h
index 20bab38a2..6d3c2bd2e 100644
--- a/src/lib/cross.h
+++ b/src/lib/cross.h
@@ -45,7 +45,9 @@ extern std::string cpu_info ();
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
diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc
index 406087917..8c81c5008 100644
--- a/src/lib/cross_linux.cc
+++ b/src/lib/cross_linux.cc
@@ -31,7 +31,9 @@ extern "C" {
}
#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>
@@ -140,11 +142,13 @@ openssl_path ()
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
diff --git a/src/lib/cross_osx.cc b/src/lib/cross_osx.cc
index fa12fb380..481edad0d 100644
--- a/src/lib/cross_osx.cc
+++ b/src/lib/cross_osx.cc
@@ -131,6 +131,7 @@ openssl_path ()
return path;
}
+#ifdef DCPOMATIC_DISK
boost::filesystem::path
disk_writer_path ()
{
@@ -139,6 +140,7 @@ 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
diff --git a/src/lib/cross_windows.cc b/src/lib/cross_windows.cc
index 130086898..f55e0a9c2 100644
--- a/src/lib/cross_windows.cc
+++ b/src/lib/cross_windows.cc
@@ -198,11 +198,13 @@ openssl_path ()
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