copy ..\libdcp\ratings build\
copy ..\openssl\apps\openssl.exe build\test\
xcopy fonts build\fonts\
+move build\fonts\fonts.conf.windows build\fonts\fonts.conf
build\test\unit-tests.exe --log_level=test_suite %1 %2
#ifdef DCPOMATIC_WINDOWS
putenv ("PANGOCAIRO_BACKEND=fontconfig");
- putenv (String::compose("FONTCONFIG_PATH=%1", resources_path().string()).c_str());
+ if (boost::filesystem::exists(resources_path() / "fonts.conf")) {
+ /* The actual application after installation */
+ putenv(String::compose("FONTCONFIG_PATH=%1", resources_path().string()).c_str());
+ } else {
+ /* The place where fonts.conf is during tests */
+ putenv("FONTCONFIG_PATH=build\\fonts");
+ }
#endif
#ifdef DCPOMATIC_OSX