1
0
mirror of https://github.com/danog/libtgvoip.git synced 2024-11-30 04:39:03 +01:00

Add support for pkg-config

This commit is contained in:
Ilya Fedin 2020-01-05 12:25:31 +04:00 committed by John Preston
parent 798f515d14
commit 4ce5e22ed2
3 changed files with 15 additions and 1 deletions

View File

@ -755,6 +755,8 @@ libtgvoip_la_SOURCES = $(SRC) $(TGVOIP_HDRS)
tgvoipincludedir = $(includedir)/tgvoip tgvoipincludedir = $(includedir)/tgvoip
nobase_tgvoipinclude_HEADERS = $(TGVOIP_HDRS) nobase_tgvoipinclude_HEADERS = $(TGVOIP_HDRS)
pkgconfig_DATA = tgvoip.pc
CXXFLAGS += -std=gnu++0x $(CFLAGS) CXXFLAGS += -std=gnu++0x $(CFLAGS)
if TARGET_OS_OSX if TARGET_OS_OSX
OBJCFLAGS = $(CFLAGS) OBJCFLAGS = $(CFLAGS)

View File

@ -9,6 +9,8 @@ AM_INIT_AUTOMAKE([subdir-objects])
AM_SILENT_RULES([yes]) AM_SILENT_RULES([yes])
LT_INIT LT_INIT
PKG_INSTALLDIR
# Checks for programs. # Checks for programs.
AC_PROG_CXX AC_PROG_CXX
AC_PROG_CC AC_PROG_CC
@ -109,5 +111,5 @@ AC_FUNC_MALLOC
AC_FUNC_REALLOC AC_FUNC_REALLOC
AC_CHECK_FUNCS([clock_gettime floor gettimeofday inet_ntoa memmove memset select socket sqrt strcasecmp strchr strerror strncasecmp strstr strtol strtoul uname]) AC_CHECK_FUNCS([clock_gettime floor gettimeofday inet_ntoa memmove memset select socket sqrt strcasecmp strchr strerror strncasecmp strstr strtol strtoul uname])
AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([Makefile tgvoip.pc])
AC_OUTPUT AC_OUTPUT

10
tgvoip.pc.in Normal file
View File

@ -0,0 +1,10 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: tgvoip
Description: VoIP library for Telegram clients
Version: 2.4.4
Libs: -L${libdir} -ltgvoip
Cflags: -I${includedir}/tgvoip