init haiku
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-04-28 15:06:38 +00:00
commit 22b0891598
9 changed files with 34 additions and 5 deletions

5
pl/ostype/Haiku.pl Normal file
View file

@ -0,0 +1,5 @@
$cc = "g++";
use_backend("haiku");
1;

View file

@ -95,6 +95,10 @@ if (grep(/^cocoa$/, @backends) || param_get("gnustep")) {
$gl_libs = "-framework OpenGL";
}
if (grep(/^haiku$/, @backends)) {
new_object("src/backend/haiku.cxx");
}
if (param_get("stb-image")) {
add_cflags("-DUSE_STB_IMAGE");
if (param_get("tiny")) {

View file

@ -54,7 +54,7 @@ sub set_shared_flag {
sub new_object {
my @l = glob($_[0]);
foreach my $e (@l) {
$e =~ s/\.(c|m)$/$object_suffix/;
$e =~ s/\.(cxx|c|m)$/$object_suffix/;
push(@library_targets, $e);
}
}