From 94f8f216b675a77f76aac9f10bb8663b23c8e805 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Sat, 28 Aug 2021 18:22:56 -0400 Subject: [PATCH] macos uses .dylib --- .gitignore | 1 + Makefile | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 53069a5..23f9340 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,6 @@ cwtch-sources.jar cwtch.aar libCwtch.h libCwtch.so +libCwtch.dylib libCwtch.dll ios/ diff --git a/Makefile b/Makefile index 57972fe..f7510a3 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ all: linux android windows linux: libCwtch.so -macos: libCwtch.so +macos: libCwtch.dylib android: cwtch.aar @@ -18,6 +18,10 @@ libCwtch.so: lib.go ./switch-ffi.sh go build -buildmode c-shared -o libCwtch.so +libCwtch.dylib: lib.go + ./switch-ffi.sh + go build -buildmode c-shared -o libCwtch.dylib + cwtch.aar: lib.go ./switch-gomobile.sh gomobile bind -target android