Makefile: refactor nim_status_client target
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
ced3242cdb
commit
e19105d878
19
Makefile
19
Makefile
|
@ -472,19 +472,24 @@ endif
|
||||||
|
|
||||||
$(NIM_STATUS_CLIENT): NIM_PARAMS += $(RESOURCES_LAYOUT)
|
$(NIM_STATUS_CLIENT): NIM_PARAMS += $(RESOURCES_LAYOUT)
|
||||||
$(NIM_STATUS_CLIENT): $(NIM_SOURCES) $(DOTHERSIDE) | statusq check-qt-dir $(STATUSGO) $(STATUSKEYCARDGO) $(QRCODEGEN) $(FLEETS) rcc compile-translations deps
|
$(NIM_STATUS_CLIENT): $(NIM_SOURCES) $(DOTHERSIDE) | statusq check-qt-dir $(STATUSGO) $(STATUSKEYCARDGO) $(QRCODEGEN) $(FLEETS) rcc compile-translations deps
|
||||||
echo -e $(BUILD_MSG) "$@" && \
|
echo -e $(BUILD_MSG) "$@"
|
||||||
$(ENV_SCRIPT) nim c $(NIM_PARAMS) --passL:"-L$(STATUSGO_LIBDIR)" --passL:"-lstatus" --passL:"-L$(STATUSKEYCARDGO_LIBDIR)" --passL:"-lkeycard" $(NIM_EXTRA_PARAMS) --passL:"$(QRCODEGEN)" --passL:"-lm" src/nim_status_client.nim && \
|
$(ENV_SCRIPT) nim c $(NIM_PARAMS) \
|
||||||
[[ $$? = 0 ]] && \
|
--passL:"-L$(STATUSGO_LIBDIR)" \
|
||||||
(([[ $(detected_OS) = Darwin ]] && \
|
--passL:"-lstatus" \
|
||||||
|
--passL:"-L$(STATUSKEYCARDGO_LIBDIR)" \
|
||||||
|
--passL:"-lkeycard" \
|
||||||
|
--passL:"$(QRCODEGEN)" \
|
||||||
|
--passL:"-lm" \
|
||||||
|
$(NIM_EXTRA_PARAMS) src/nim_status_client.nim
|
||||||
|
ifeq ($(detected_OS),Darwin)
|
||||||
install_name_tool -change \
|
install_name_tool -change \
|
||||||
libstatus.dylib \
|
libstatus.dylib \
|
||||||
@rpath/libstatus.dylib \
|
@rpath/libstatus.dylib \
|
||||||
bin/nim_status_client && \
|
bin/nim_status_client
|
||||||
install_name_tool -change \
|
install_name_tool -change \
|
||||||
libkeycard.dylib \
|
libkeycard.dylib \
|
||||||
@rpath/libkeycard.dylib \
|
@rpath/libkeycard.dylib \
|
||||||
bin/nim_status_client) || true)
|
bin/nim_status_client
|
||||||
ifeq ($(detected_OS),Darwin)
|
|
||||||
ifeq ("$(wildcard ./node_modules/.bin/fileicon)","")
|
ifeq ("$(wildcard ./node_modules/.bin/fileicon)","")
|
||||||
echo -e "\033[92mInstalling:\033[39m fileicon"
|
echo -e "\033[92mInstalling:\033[39m fileicon"
|
||||||
npm i
|
npm i
|
||||||
|
|
Loading…
Reference in New Issue