feat: make run

This commit is contained in:
Richard Ramos 2020-05-19 11:32:48 -04:00 committed by Iuri Matias
parent 87e31105e3
commit 7149f50778
1 changed files with 5 additions and 2 deletions

View File

@ -78,7 +78,7 @@ $(DOTHERSIDE): | deps
mkdir -p build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. $(HANDLE_OUTPUT) && \
$(MAKE) # IF WE WANT TO USE LIBDOTHERSIDE AS STATIC LIBRARY, USE `$(MAKE) DOtherSideStatic` INSTEAD
$(MAKE) DOtherSide # IF WE WANT TO USE LIBDOTHERSIDE AS STATIC LIBRARY, USE `$(MAKE) DOtherSideStatic` INSTEAD
STATUSGO := vendor/status-go/build/bin/libstatus.a
@ -96,6 +96,9 @@ 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:$(DOTHERSIDE) --outdir:./bin src/nim_status_client.nim
run:
LD_LIBRARY_PATH=vendor/DOtherSide/build/lib ./bin/nim_status_client
APPIMAGE := NimStatusClient-x86_64.AppImage
$(APPIMAGE): $(DEFAULT_TARGET) $(APPIMAGETOOL) nim-status.desktop
@ -133,6 +136,6 @@ $(APPIMAGE): $(DEFAULT_TARGET) $(APPIMAGETOOL) nim-status.desktop
appimage: $(APPIMAGE)
clean: | clean-common
rm -rf $(APPIMAGE) bin/* vendor/DOtherSide/build tmp/dist vendor/status-go/build/bin
rm -rf $(APPIMAGE) bin/* vendor/* tmp/dist
endif # "variables.mk" was not included