gnustep support?
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoI_xD 2026-04-13 17:44:27 -07:00
commit a4c61b0e38
6 changed files with 38 additions and 41 deletions

View file

@ -52,10 +52,14 @@ if (grep(/^wayland$/, @backends)) {
$gl_libs = "-lGL -lGLU";
}
if (grep(/^cocoa$/, @backends)) {
if (grep(/^cocoa$/, @backends) || param_get("gnustep")) {
add_cflags("-DUSE_COCOA");
new_object("src/backend/cocoa.m");
if(param_get("gnustep")){
add_ldflags("-lobjc -lgnustep-base -lm -lgnustep-gui");
}
if (param_get("opengl")) {
new_object("src/widget/opengl_cocoa.m");
}

View file

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