Fix for RPI build

This commit is contained in:
Filip Sykala - NTB T15p 2022-12-15 13:20:28 +01:00
parent 1bbeedbfb8
commit 043c4c5e90

View File

@ -377,7 +377,18 @@ TEST_CASE("triangle intersection", "[]")
CHECK(abs(i.y() - 1.) < std::numeric_limits<double>::epsilon());
}
#ifndef __APPLE__
#if defined _WIN32
#define FONT_DIR_PATH "C:/Windows/Fonts";
#elif defined __linux__
#define FONT_DIR_PATH "/usr/share/fonts";
#endif
//#elif defined __APPLE__
//#define FONT_DIR_PATH "//System/Library/Fonts";
//#endif
#ifdef FONT_DIR_PATH
#include <string>
#include <iostream>
#include <filesystem>
@ -385,14 +396,9 @@ namespace fs = std::filesystem;
// Check function Emboss::is_italic that exist some italic and some non-italic font.
TEST_CASE("Italic check", "[Emboss]")
{
std::string dir_path = FONT_DIR_PATH;
std::queue<std::string> dir_paths;
#ifdef _WIN32
dir_paths.push("C:/Windows/Fonts");
#elif defined(__linux__)
dir_paths.push("/usr/share/fonts");
//#elif defined(__APPLE__)
// dir_paths.push("//System/Library/Fonts");
#endif
dir_paths.push(dir_path);
bool exist_italic = false;
bool exist_non_italic = false;
while (!dir_paths.empty()) {
@ -425,7 +431,7 @@ TEST_CASE("Italic check", "[Emboss]")
CHECK(exist_italic);
CHECK(exist_non_italic);
}
#endif // not __APPLE__
#endif // FONT_DIR_PATH
#include "libslic3r/CutSurface.hpp"
TEST_CASE("Cut surface", "[]")