This commit is contained in:
parent
bb876b9620
commit
a4c61b0e38
6 changed files with 38 additions and 41 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue