diff options
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 9fff4c8..c0c7073 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,12 +7,10 @@ AM_CFLAGS = -Werror -Wall -Wextra -pedantic -std=gnu99 \ # etc), it shouldn't matter. Later it would be nice to abstract XML # manipulations anyway, to allow libexpat as an alternative. - lib_LTLIBRARIES = librexmpp.la librexmpp_la_SOURCES = rexmpp_roster.h rexmpp_roster.c \ rexmpp_tcp.h rexmpp_tcp.c \ - rexmpp_socks.h rexmpp_socks.c \ rexmpp.h rexmpp.c \ rexmpp_dns.h rexmpp_dns.c \ rexmpp_tls.h rexmpp_tls.c \ @@ -24,6 +22,7 @@ librexmpp_la_SOURCES = rexmpp_roster.h rexmpp_roster.c \ rexmpp_jingle.h rexmpp_jingle.c \ rexmpp_base64.h rexmpp_base64.c \ rexmpp_sasl.h rexmpp_sasl.c + include_HEADERS = config.h rexmpp_roster.h rexmpp_tcp.h rexmpp_socks.h rexmpp.h \ rexmpp_dns.h rexmpp_tls.h rexmpp_jid.h rexmpp_openpgp.h rexmpp_console.h \ rexmpp_pubsub.h rexmpp_http_upload.h rexmpp_jingle.h rexmpp_base64.h \ @@ -37,3 +36,19 @@ librexmpp_la_LIBADD = $(LIBXML_LIBS) \ $(GNUTLS_LIBS) $(LIBDANE_LIBS) $(OPENSSL_LIBS) \ $(GSASL_LIBS) $(UNBOUND_LIBS) $(CARES_LIBS) $(GPGME_LIBS) $(ICU_I18N_LIBS) \ $(LIBGCRYPT_LIBS) $(CURL_LIBS) $(NICE_LIBS) $(GLIB_LIBS) $(SRTP_LIBS) +librexmpp_la_LDFLAGS = [] + +if USE_RUST +librexmpp_rust_a_SOURCES = rexmpp_socks.rs +noinst_LIBRARIES = librexmpp_rust.a +librexmpp_la_LIBADD += librexmpp_rust.a +librexmpp_la_LDFLAGS += -L. -lpthread -ldl + +# todo: setup it properly, to rebuild whenever the sources are +# changed. +librexmpp_rust.a: + rustc --crate-type=staticlib -o $@ $(librexmpp_rust_a_SOURCES) + +else +librexmpp_la_SOURCES += rexmpp_socks.h rexmpp_socks.c +endif |