add libaxolotl

v1
Tony Olagbaiye 3 years ago
parent 8988d969a0
commit 28106825e8
No known key found for this signature in database
GPG Key ID: 9E2FF3BDEBDFC910

@ -36,7 +36,8 @@ use_guix()
PACKAGES=( PACKAGES=(
autoconf autoconf-archive automake libtool autoconf autoconf-archive automake libtool
make cmake gcc-toolchain pkg-config patchelf make cmake gcc-toolchain pkg-config patchelf
weechat xz libxml2 libstrophe json-c weechat libxml2 libstrophe
glib libsignal-protocol-c sqlite
) )
# Thanks <https://lists.gnu.org/archive/html/guix-devel/2016-09/msg00859.html> # Thanks <https://lists.gnu.org/archive/html/guix-devel/2016-09/msg00859.html>

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule "axc"]
path = axc
url = https://github.com/gkdr/axc

@ -24,18 +24,22 @@ SRCS=plugin.c \
message.c \ message.c \
user.c \ user.c \
DEPS= DEPS=axc/build/libaxc.a
OBJS=$(subst .c,.o,$(SRCS)) OBJS=$(subst .c,.o,$(SRCS))
all: weechat-xmpp all: weechat-xmpp
weechat-xmpp: $(DEPS) xmpp.so weechat-xmpp: $(DEPS) xmpp.so
xmpp.so: $(OBJS) xmpp.so: $(OBJS) $(DEPS)
$(CC) $(LDFLAGS) -o xmpp.so $(OBJS) $(LDLIBS) $(CC) $(LDFLAGS) -o xmpp.so $(OBJS) $(DEPS) $(LDLIBS)
which patchelf >/dev/null && \ which patchelf >/dev/null && \
patchelf --set-rpath $(LIBRARY_PATH):$(shell realpath $(shell dirname $(shell gcc --print-libgcc-file-name))/../../../) xmpp.so && \ patchelf --set-rpath $(LIBRARY_PATH):$(shell realpath $(shell dirname $(shell gcc --print-libgcc-file-name))/../../../) xmpp.so && \
patchelf --shrink-rpath xmpp.so || true patchelf --shrink-rpath xmpp.so || true
axc/build/libaxc.a:
$(MAKE) -C axc
axc: axc/build/libaxc.a
test: xmpp.so test: xmpp.so
env LD_PRELOAD=$(DEBUG) \ env LD_PRELOAD=$(DEBUG) \
weechat -a -P 'alias,buflist,irc' -r '/plugin load ./xmpp.so' weechat -a -P 'alias,buflist,irc' -r '/plugin load ./xmpp.so'
@ -55,6 +59,10 @@ tidy:
clean: clean:
$(RM) $(OBJS) $(RM) $(OBJS)
$(MAKE) -C axc clean
git submodule foreach --recursive git clean -xfd || true
git submodule foreach --recursive git reset --hard || true
git submodule update --init --recursive || true
distclean: clean distclean: clean
$(RM) *~ .depend $(RM) *~ .depend

@ -81,20 +81,26 @@
* [X] Opening PMs (/chat) * [X] Opening PMs (/chat)
** TODO [#A] Implement essential functionality (milestone v0.2) ** TODO [#A] Implement essential functionality (milestone v0.2)
* [X] Opening PMs with initial message * [X] Opening PMs with initial message
* [ ] Handle wide errors gracefully * [ ] [#B] Handle wide errors gracefully
* [ ] MUCs * [ ] MUCs
* [X] Opening (/enter) * [X] Opening (/enter)
* [X] Receiving * [X] Receiving
* [X] Sending * [X] Sending
* [ ] [#B] Edits
* [ ] [#B] Handle errors gracefully * [ ] [#B] Handle errors gracefully
* [ ] [#B] Presence/nicklist * [ ] [#B] Presence/nicklist
* [ ] [#B] Show topic * [ ] [#B] Enters
* [ ] [#B] Edits * [ ] [#B] Leaves
* [ ] OMEMO presence * [ ] [#B] Tracking
* [ ] OMEMO messages * [ ] [#B] Set/show topic
* [ ] OMEMO (libsignal-protocol-c / axc)
* [ ] Presence
* [ ] Messages
* [ ] MUC PMs * [ ] MUC PMs
* [ ] Send typing notifications * [ ] Send typing notifications
* [ ] Recv typing notifications * [ ] Recv typing notifications
* [ ] OTR (libotr)
* [ ] PGP (libgpgme)
** TODO [#C] Implement completion engine (milestone v0.3) ** TODO [#C] Implement completion engine (milestone v0.3)
** TODO [#D] Close all issues (milestone v1.0) ** TODO [#D] Close all issues (milestone v1.0)

1
axc

@ -0,0 +1 @@
Subproject commit 1d4454ea42d39a2064955f2a8de5f89787743f2a
Loading…
Cancel
Save