From 0dea61d825186bde6f8e8bb59fcb96f4ecfb3994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20=E2=80=9CCyberTailor=E2=80=9D?= Date: Wed, 10 Nov 2021 00:15:56 +0500 Subject: [PATCH] Add libboinc.pc pkg-config file --- configure.ac | 1 + lib/Makefile.am | 1 + lib/libboinc.pc.in | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 lib/libboinc.pc.in diff --git a/configure.ac b/configure.ac index 0d4def58ce..1fc4842187 100644 --- a/configure.ac +++ b/configure.ac @@ -1352,6 +1352,7 @@ AC_CONFIG_FILES([ doc/manpages/Makefile html/Makefile lib/Makefile + lib/libboinc.pc locale/Makefile Makefile py/Boinc/version.py diff --git a/lib/Makefile.am b/lib/Makefile.am index 448a0670a8..7dd5308dbf 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -183,6 +183,7 @@ noinst_HEADERS = \ unix_util.h lib_LTLIBRARIES = libboinc.la +pkgconfig_DATA = libboinc.pc libboinc_la_SOURCES = $(generic_sources) $(mac_sources) $(win_sources) libboinc_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) libboinc_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) diff --git a/lib/libboinc.pc.in b/lib/libboinc.pc.in new file mode 100644 index 0000000000..d8b63369e8 --- /dev/null +++ b/lib/libboinc.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: boinc +Description: BOINC library +Version: @PACKAGE_VERSION@ + +Cflags: -I${includedir}/boinc +Cflags.private: @PTHREAD_CFLAGS@ +Libs: -L${libdir} -lboinc +Libs.private: @PTHREAD_LIBS@