From 8214c0d25267c114613fb4c2cafd5bbb8555cdba Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:20:41 +0100 Subject: [PATCH] Build macos version of NFD --- platforms/desktop-shared/Makefile.common | 3 +++ platforms/desktop-shared/nfd/{nfd_cocoa.cpp => nfd_cocoa.mm} | 0 2 files changed, 3 insertions(+) rename platforms/desktop-shared/nfd/{nfd_cocoa.cpp => nfd_cocoa.mm} (100%) diff --git a/platforms/desktop-shared/Makefile.common b/platforms/desktop-shared/Makefile.common index 9fc973d2..8b3339bf 100644 --- a/platforms/desktop-shared/Makefile.common +++ b/platforms/desktop-shared/Makefile.common @@ -62,6 +62,9 @@ all: $(TARGET) $(TARGET): $(OBJECTS) $(CXX) -o $@ $(OBJECTS) $(LDFLAGS) +%.o: %.mm + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + %.o: %.cpp $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< diff --git a/platforms/desktop-shared/nfd/nfd_cocoa.cpp b/platforms/desktop-shared/nfd/nfd_cocoa.mm similarity index 100% rename from platforms/desktop-shared/nfd/nfd_cocoa.cpp rename to platforms/desktop-shared/nfd/nfd_cocoa.mm