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:
parent
798f515d14
commit
4ce5e22ed2
@ -755,6 +755,8 @@ libtgvoip_la_SOURCES = $(SRC) $(TGVOIP_HDRS)
|
||||
tgvoipincludedir = $(includedir)/tgvoip
|
||||
nobase_tgvoipinclude_HEADERS = $(TGVOIP_HDRS)
|
||||
|
||||
pkgconfig_DATA = tgvoip.pc
|
||||
|
||||
CXXFLAGS += -std=gnu++0x $(CFLAGS)
|
||||
if TARGET_OS_OSX
|
||||
OBJCFLAGS = $(CFLAGS)
|
||||
|
@ -9,6 +9,8 @@ AM_INIT_AUTOMAKE([subdir-objects])
|
||||
AM_SILENT_RULES([yes])
|
||||
LT_INIT
|
||||
|
||||
PKG_INSTALLDIR
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CXX
|
||||
AC_PROG_CC
|
||||
@ -109,5 +111,5 @@ AC_FUNC_MALLOC
|
||||
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_CONFIG_FILES([Makefile])
|
||||
AC_CONFIG_FILES([Makefile tgvoip.pc])
|
||||
AC_OUTPUT
|
||||
|
10
tgvoip.pc.in
Normal file
10
tgvoip.pc.in
Normal 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
|
Loading…
Reference in New Issue
Block a user