From 1a923940f8981bf2b96501144367be41012bfa9c Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sat, 8 Nov 2025 02:35:56 +0000 Subject: [PATCH] darwin flags git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@639 b9cfdab3-6d41-4d17-bbe4-086880011989 --- pl/ostype/Darwin.pl | 5 +++++ pl/rules.pl | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 pl/ostype/Darwin.pl diff --git a/pl/ostype/Darwin.pl b/pl/ostype/Darwin.pl new file mode 100644 index 0000000..c51b686 --- /dev/null +++ b/pl/ostype/Darwin.pl @@ -0,0 +1,5 @@ +# $Id$ +$shared = "-dynamiclib"; +use_backend("darwin"); + +1; diff --git a/pl/rules.pl b/pl/rules.pl index a334cad..2e24be2 100644 --- a/pl/rules.pl +++ b/pl/rules.pl @@ -15,6 +15,10 @@ if($backend eq "x11"){ add_libs("-lgdi32"); $gl_libs = "-lopengl32 -lglu32"; +}elsif($backend eq "darwin"){ + add_cflags("-DUSE_DARWIN"); + new_object("src/backend/mac/*.c"); + add_ldflags("-framework Carbon"); } if(param_get("stb-image")){