chore: DOtherSide shared lib extension differs by platform
`.so` for Linux, `.dylib` for macOS
This commit is contained in:
parent
8cc8f4d659
commit
e5adeb60f2
9
Makefile
9
Makefile
|
@ -59,7 +59,12 @@ deps: | deps-common
|
|||
|
||||
update: | update-common
|
||||
|
||||
DOTHERSIDE := None
|
||||
ifeq ($(detected_OS), Darwin)
|
||||
DOTHERSIDE := vendor/DOtherSide/build/lib/libDOtherSide.dylib
|
||||
else
|
||||
DOTHERSIDE := vendor/DOtherSide/build/lib/libDOtherSide.so
|
||||
endif
|
||||
|
||||
APPIMAGETOOL := appimagetool-x86_64.AppImage
|
||||
|
||||
|
@ -85,11 +90,11 @@ $(STATUSGO): | deps
|
|||
|
||||
build-linux: $(DOTHERSIDE) $(STATUSGO) src/nim_status_client.nim | deps
|
||||
echo -e $(BUILD_MSG) "$@" && \
|
||||
$(ENV_SCRIPT) nim c -d:nimDebugDlOpen -L:$(STATUSGO) -d:ssl -L:-lm $(NIM_PARAMS) -L:-LlibDOtherSide.so --outdir:./bin src/nim_status_client.nim
|
||||
$(ENV_SCRIPT) nim c -d:nimDebugDlOpen -L:$(STATUSGO) -d:ssl -L:-lm $(NIM_PARAMS) -L:$(DOTHERSIDE) --outdir:./bin src/nim_status_client.nim
|
||||
|
||||
build-macos: $(DOTHERSIDE) $(STATUSGO) src/nim_status_client.nim | deps
|
||||
echo -e $(BUILD_MSG) "$@" && \
|
||||
$(ENV_SCRIPT) nim c -d:nimDebugDlOpen -L:$(STATUSGO) -d:ssl -L:-lm -L:"-framework Foundation -framework Security -framework IOKit -framework CoreServices" $(NIM_PARAMS) -L:-LlibDOtherSide.so --outdir:./bin src/nim_status_client.nim
|
||||
$(ENV_SCRIPT) nim c -d:nimDebugDlOpen -L:$(STATUSGO) -d:ssl -L:-lm -L:"-framework Foundation -framework Security -framework IOKit -framework CoreServices" $(NIM_PARAMS) -L:$(DOTHERSIDE) --outdir:./bin src/nim_status_client.nim
|
||||
|
||||
APPIMAGE := NimStatusClient-x86_64.AppImage
|
||||
|
||||
|
|
Loading…
Reference in New Issue