Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Platform.hpp « libslic3r « src - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 735728e89a913ffab20101373dbc44d47dfe61b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef SLIC3R_Platform_HPP
#define SLIC3R_Platform_HPP

namespace Slic3r {

enum class Platform
{
	Uninitialized,
	Unknown,
	Windows,
	OSX,
	Linux,
	BSDUnix,
};

enum class PlatformFlavor
{
	Uninitialized,
	Unknown,
	// For Windows and OSX, until we need to be more specific.
	Generic,
	// For Platform::Linux
	GenericLinux,
	LinuxOnChromium,
	// Microsoft's Windows on Linux (Linux kernel simulated on NTFS kernel)
	WSL,
	// Microsoft's Windows on Linux, version 2 (virtual machine)
	WSL2,
	// For Platform::BSDUnix
	OpenBSD,
};

// To be called on program start-up.
void 			detect_platform();

Platform 		platform();
PlatformFlavor 	platform_flavor();

} // namespace Slic3r

#endif // SLIC3R_Platform_HPP