Changeset 82149f4
- Timestamp:
- 2023-03-04T19:59:09Z (22 months ago)
- Branches:
- master
- Children:
- 50d0a72
- Parents:
- 709f41f
- git-author:
- Petr Vaněk <arkamar@…> (04-03-23 19:59:09)
- git-committer:
- GitHub <noreply@…> (04-03-23 19:59:09)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r709f41f r82149f4 11 11 # Program variables 12 12 objects = bitlbee.o dcc.o help.o ipc.o irc.o irc_im.o irc_cap.o irc_channel.o irc_commands.o irc_send.o irc_user.o irc_util.o nick.o $(OTR_BI) query.o root_commands.o set.o storage.o $(STORAGE_OBJS) auth.o $(AUTH_OBJS) unix.o conf.o log.o 13 headers = $(wildcard $(_SRCDIR_)*.h $(_SRCDIR_)lib/*.h $(_SRCDIR_)protocols/*.h) 13 allheaders = $(wildcard $(_SRCDIR_)*.h $(_SRCDIR_)lib/*.h $(_SRCDIR_)protocols/*.h) 14 ifeq ($(EXTERNAL_JSON_PARSER),1) 15 headers = $(filter-out $(_SRCDIR_)lib/json.h,$(allheaders)) 16 else 17 headers = $(allheaders) 18 endif 14 19 subdirs = lib protocols 15 20 -
configure
r709f41f r82149f4 330 330 331 331 echo "CFLAGS=$CFLAGS $CPPFLAGS" >> Makefile.settings 332 echo CFLAGS+=-I"${srcdir}" -I"${srcdir}"/lib -I"${srcdir}"/protocols -I. >> Makefile.settings333 332 334 333 echo CFLAGS+=-DHAVE_CONFIG_H -D_GNU_SOURCE >> Makefile.settings … … 421 420 # shellcheck disable=SC2129 422 421 echo "CFLAGS+=$(pkg-config --cflags json-parser)" >> Makefile.settings 422 echo "CFLAGS+=-DUSE_EXTERNAL_JSON_PARSER" >> Makefile.settings 423 423 echo "LDFLAGS_BITLBEE+=$(pkg-config --libs json-parser)" >> Makefile.settings 424 424 echo "LDFLAGS_TESTS+=$(pkg-config --libs json-parser)" >> Makefile.settings 425 425 fi 426 426 427 echo CFLAGS+=-I"${srcdir}" -I"${srcdir}"/lib -I"${srcdir}"/protocols -I. >> Makefile.settings 427 428 428 429 detect_gnutls() … … 868 869 esac 869 870 871 pkgconfigrequires='glib-2.0' 872 if [ "$external_json_parser" = '1' ]; then 873 pkgconfigrequires="$pkgconfigrequires json-parser" 874 fi 875 870 876 cat <<EOF >bitlbee.pc 871 877 prefix=$prefix … … 877 883 Name: bitlbee 878 884 Description: IRC to IM gateway 879 Requires: glib-2.0885 Requires: $pkgconfigrequires 880 886 Version: $BITLBEE_VERSION 881 887 Libs: $pkgconfiglibs -
lib/json.h
r709f41f r82149f4 29 29 */ 30 30 31 #ifdef USE_EXTERNAL_JSON_PARSER 32 #error Bitlbee was configured to use system json-parser, this header file should not be used. 33 #endif 34 31 35 #ifndef _JSON_H 32 36 #define _JSON_H -
lib/json_util.h
r709f41f r82149f4 22 22 ****************************************************************************/ 23 23 24 #include "json.h"24 #include <json.h> 25 25 26 26 #define JSON_O_FOREACH(o, k, v) \ -
lib/oauth2.c
r709f41f r82149f4 42 42 #include "oauth2.h" 43 43 #include "oauth.h" 44 #include "json.h"44 #include <json.h> 45 45 #include "json_util.h" 46 46 #include "url.h"
Note: See TracChangeset
for help on using the changeset viewer.