-
Notifications
You must be signed in to change notification settings - Fork 90
chore: status-go with nim-sds #19402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d60e62c
edddc41
20c5e83
6882d12
f7c8930
cb72d51
831ec23
d9f252e
e731397
db9cdcb
8156c85
743cd9f
c7ee660
16bc8d1
a5abae2
206253c
e9617b4
2100ca1
cf2f8ed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -242,6 +242,13 @@ ifeq ($(USE_NWAKU), true) | |
| NIM_EXTRA_PARAMS += --passL:"-L$(LIBWAKU_LIBDIR)" --passL:"-lwaku" | ||
| endif | ||
|
|
||
| NIM_SDS_SOURCE_DIR ?= $(GIT_ROOT)/../nim-sds | ||
| export NIM_SDS_SOURCE_DIR | ||
| NIMSDS_LIBDIR := $(NIM_SDS_SOURCE_DIR)/build | ||
| NIMSDS_LIBFILE := $(NIMSDS_LIBDIR)/libsds.$(LIB_EXT) | ||
| NIM_EXTRA_PARAMS += --passL:"-L$(NIMSDS_LIBDIR)" --passL:"-lsds" | ||
| STATUSGO_MAKE_PARAMS += NIM_SDS_SOURCE_DIR="$(NIM_SDS_SOURCE_DIR)" | ||
|
|
||
| INCLUDE_DEBUG_SYMBOLS ?= false | ||
| ifeq ($(INCLUDE_DEBUG_SYMBOLS),true) | ||
| # We need `-d:debug` to get Nim's default stack traces | ||
|
|
@@ -790,7 +797,7 @@ $(STATUS_CLIENT_EXE): compile_windows_resources nim_status_client nim_windows_la | |
| cp bin/nim_windows_launcher.exe $(OUTPUT)/Status.exe | ||
| rcedit $(OUTPUT)/bin/Status.exe --set-icon $(OUTPUT)/resources/status.ico | ||
| rcedit $(OUTPUT)/Status.exe --set-icon $(OUTPUT)/resources/status.ico | ||
| cp $(DOTHERSIDE_LIBFILE) $(STATUSGO) $(STATUSKEYCARDGO) $(STATUSQ_INSTALL_PATH)/StatusQ/* $(OUTPUT)/bin/ | ||
| cp $(DOTHERSIDE_LIBFILE) $(STATUSGO) $(STATUSKEYCARDGO) $(NIMSDS_LIBFILE) $(STATUSQ_INSTALL_PATH)/StatusQ/* $(OUTPUT)/bin/ | ||
| cp "$(shell which libgcc_s_seh-1.dll)" $(OUTPUT)/bin/ | ||
| cp "$(shell which libwinpthread-1.dll)" $(OUTPUT)/bin/ | ||
| cp "$(shell which libcrypto-3-x64.dll)" $(OUTPUT)/bin/ | ||
|
|
@@ -831,7 +838,10 @@ pkg-linux: check-pkg-target-linux $(STATUS_CLIENT_APPIMAGE) | |
|
|
||
| tgz-linux: $(STATUS_CLIENT_TARBALL) | ||
|
|
||
| pkg-macos: check-pkg-target-macos $(STATUS_CLIENT_DMG) | ||
| clean-libsds-cache: | ||
| @echo "Cleaning libsds_d from cache..." | ||
| rm -rf ~/.cache/nim/libsds_d | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seem to be very specific. What's this about? Will it work on Windows?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is to avoid compilation issues between macos and iOS. i.e., error such as:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then shouldn't this be done in |
||
| pkg-macos: clean-libsds-cache check-pkg-target-macos $(STATUS_CLIENT_DMG) | ||
|
|
||
| pkg-windows: check-pkg-target-windows $(STATUS_CLIENT_EXE) | ||
|
|
||
|
|
@@ -858,12 +868,12 @@ run: $(RUN_TARGET) | |
|
|
||
| run-linux: nim_status_client | ||
| echo -e "\033[92mRunning:\033[39m bin/nim_status_client" | ||
| LD_LIBRARY_PATH="$(QT_LIBDIR)":"$(LIBWAKU_LIBDIR)":"$(STATUSGO_LIBDIR)":"$(STATUSKEYCARDGO_LIBDIR)":"$(STATUSQ_INSTALL_PATH)/StatusQ":"$(LD_LIBRARY_PATH)" \ | ||
| LD_LIBRARY_PATH="$(QT_LIBDIR)":"$(LIBWAKU_LIBDIR)":"$(NIMSDS_LIBDIR)":"$(STATUSGO_LIBDIR)":"$(STATUSKEYCARDGO_LIBDIR)":"$(STATUSQ_INSTALL_PATH)/StatusQ":"$(LD_LIBRARY_PATH)" \ | ||
| ./bin/nim_status_client $(ARGS) | ||
|
|
||
| run-linux-gdb: nim_status_client | ||
| echo -e "\033[92mRunning:\033[39m bin/nim_status_client" | ||
| LD_LIBRARY_PATH="$(QT_LIBDIR)":"$(LIBWAKU_LIBDIR)":"$(STATUSGO_LIBDIR)":"$(STATUSKEYCARDGO_LIBDIR)":"$(STATUSQ_INSTALL_PATH)/StatusQ":"$(LD_LIBRARY_PATH)" \ | ||
| LD_LIBRARY_PATH="$(QT_LIBDIR)":"$(LIBWAKU_LIBDIR)":"$(NIMSDS_LIBDIR)":"$(STATUSGO_LIBDIR)":"$(STATUSKEYCARDGO_LIBDIR)":"$(STATUSQ_INSTALL_PATH)/StatusQ":"$(LD_LIBRARY_PATH)" \ | ||
| gdb -ex=r ./bin/nim_status_client $(ARGS) | ||
|
|
||
| run-macos: nim_status_client | ||
|
|
@@ -886,7 +896,7 @@ NIM_TEST_FILES := $(wildcard test/nim/*.nim) | |
| NIM_TESTS := $(foreach test_file,$(NIM_TEST_FILES),nim-test-run/$(test_file)) | ||
|
|
||
| nim-test-run/%: | dotherside $(STATUSGO) $(QRCODEGEN) | ||
| LD_LIBRARY_PATH="$(QT_LIBDIR)":"$(LIBWAKU_LIBDIR)":"$(STATUSGO_LIBDIR)":"$(LD_LIBRARY_PATH)" $(ENV_SCRIPT) \ | ||
| LD_LIBRARY_PATH="$(QT_LIBDIR)":"$(LIBWAKU_LIBDIR)":"$(NIMSDS_LIBDIR)":"$(STATUSGO_LIBDIR)":"$(LD_LIBRARY_PATH)" $(ENV_SCRIPT) \ | ||
| nim c $(NIM_PARAMS) $(NIM_EXTRA_PARAMS) --mm:refc --passL:"-L$(STATUSGO_LIBDIR)" --passL:"-lstatus" --passL:"$(QRCODEGEN)" -r $(subst nim-test-run/,,$@) | ||
|
|
||
| tests-nim-linux: $(NIM_TESTS) | ||
|
|
||
jakubgs marked this conversation as resolved.
Show resolved
Hide resolved
|
| +2 −4 | .github/workflows/pr.yml | |
| +3 −0 | Dockerfile | |
| +100 −24 | Makefile | |
| +2 −0 | _assets/ci/Jenkinsfile.desktop | |
| +18 −0 | _assets/ci/Jenkinsfile.mobile | |
| +21 −0 | _assets/ci/Jenkinsfile.nix | |
| +18 −0 | _assets/ci/Jenkinsfile.tests | |
| +18 −0 | _assets/ci/Jenkinsfile.tests-rpc | |
| +2 −1 | _assets/scripts/run_functional_tests.sh | |
| +39 −2 | flake.lock | |
| +6 −2 | flake.nix | |
| +1 −0 | go.mod | |
| +2 −0 | go.sum | |
| +2 −0 | messaging/layers/reliability/reliability.go | |
| +8 −9 | nix/pkgs/status-go/library/default.nix | |
| +12 −6 | nix/shell.nix | |
| +73 −4 | protocol/messenger_contact_requests_test.go | |
| +13 −3 | protocol/messenger_handler.go | |
| +5 −5 | services/connector/api.go | |
| +7 −7 | services/connector/api_test.go | |
| +17 −6 | services/connector/context.go | |
| +7 −12 | services/connector/context_test.go | |
| +1 −1 | services/connector/service.go | |
| +1 −1 | services/connector/test_helpers_test.go | |
| +0 −1 | tests-functional/clients/connector.py |
Uh oh!
There was an error while loading. Please reload this page.