DirectWrite support (#28)
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
Reviewed-on: #28
This commit is contained in:
parent
610c63228e
commit
575b8eaee1
17 changed files with 24715 additions and 54 deletions
33
configure
vendored
33
configure
vendored
|
|
@ -2,6 +2,11 @@
|
|||
our $target = `uname -s`;
|
||||
$target =~ s/\r?\n$//;
|
||||
|
||||
# MSYS with MinGW gives us some other shit idk
|
||||
if (index($target, "MINGW") != -1) {
|
||||
$target = "Windows";
|
||||
}
|
||||
|
||||
foreach my $l (@ARGV) {
|
||||
if ($l =~ /^--.+$/) {
|
||||
}
|
||||
|
|
@ -39,14 +44,12 @@ require("./pl/utils.pl");
|
|||
|
||||
param_set("classic-theme", 0);
|
||||
param_set("stb-image", 1);
|
||||
param_set("xrender", 1);
|
||||
param_set("opengl", 0);
|
||||
param_set("vulkan", 0);
|
||||
param_set("vulkan-string-helper", 1);
|
||||
param_set("shared", 1);
|
||||
param_set("static", 1);
|
||||
param_set("examples", 1);
|
||||
param_set("dbus", 1);
|
||||
|
||||
# (option that only makes sense on x11)
|
||||
param_set("allow-sloppy-focus", 0);
|
||||
|
|
@ -56,7 +59,8 @@ my %features = (
|
|||
"stb-image" => "use stb_image, instead use libjpeg/libpng",
|
||||
"stb-truetype" => "use stb_truetype",
|
||||
"freetype2" => "use FreeType2",
|
||||
"xrender" => "use XRender",
|
||||
"directwrite" => "(Windows only) use DirectWrite",
|
||||
"xrender" => "(X11 only) use XRender",
|
||||
"opengl" => "build OpenGL widget",
|
||||
"vulkan" => "build Vulkan widget",
|
||||
"vulkan-string-helper" => "use Vulkan string helper",
|
||||
|
|
@ -69,7 +73,7 @@ my %features = (
|
|||
);
|
||||
my @features_keys = (
|
||||
"1classic-theme", "1stb-image",
|
||||
"1stb-truetype", "1freetype2",
|
||||
"1stb-truetype", "1freetype2", "1directwrite",
|
||||
"1opengl", "2xrender",
|
||||
"1vulkan", "2vulkan-string-helper",
|
||||
"1shared", "1static",
|
||||
|
|
@ -87,13 +91,34 @@ sub def_platform {
|
|||
}
|
||||
if($target eq "Linux" || $target eq "FreeBSD") {
|
||||
param_set("x11", 1);
|
||||
param_set("xrender", 1);
|
||||
if(!param_get("tiny")){
|
||||
param_set("wayland", 1);
|
||||
}
|
||||
param_set("dbus", 1);
|
||||
}
|
||||
if($target eq "NetBSD" || $target eq "OpenBSD") {
|
||||
param_set("x11", 1);
|
||||
}
|
||||
if($target eq "Windows") {
|
||||
if ($^O eq "Win32")
|
||||
{
|
||||
require Win32;
|
||||
Win32->import();
|
||||
my ( $osvername, $major, $minor, $id ) = Win32::GetOSVersion();
|
||||
|
||||
if($major >= 10) {
|
||||
param_set("directwrite", 1);
|
||||
} else {
|
||||
param_set("directwrite", 0);
|
||||
}
|
||||
} else {
|
||||
# assume cross compiling
|
||||
param_set("directwrite", 1);
|
||||
}
|
||||
} else {
|
||||
param_set("directwrite", 0);
|
||||
}
|
||||
}
|
||||
|
||||
foreach my $l (@ARGV) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue