summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-06-13 03:30:05 +0200
committerGravatar Martin Szulecki2020-06-14 23:18:39 +0200
commiteff97404bd3ca5954a100a68705474956f1a89dc (patch)
tree7ffd6f1b0d4fb29f43ffb1c7f9cbeaaa5cdd0790 /src
parent4bbbd7f8d5043366a8f7c532a118431013635153 (diff)
downloadlibplist-eff97404bd3ca5954a100a68705474956f1a89dc.tar.gz
libplist-eff97404bd3ca5954a100a68705474956f1a89dc.tar.bz2
Add API version to library and pkgconfig file for proper linking
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am20
-rw-r--r--src/libplist++-2.0.pc.in2
-rw-r--r--src/libplist-2.0.pc.in2
3 files changed, 12 insertions, 12 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 02b0478..6583add 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,12 +7,12 @@ AM_CFLAGS = $(GLOBAL_CFLAGS)
AM_LDFLAGS = $(GLOBAL_LDFLAGS)
lib_LTLIBRARIES = \
- libplist.la \
- libplist++.la
+ libplist-2.0.la \
+ libplist++-2.0.la
-libplist_la_LIBADD = $(top_builddir)/libcnary/libcnary.la
-libplist_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBPLIST_SO_VERSION) -no-undefined
-libplist_la_SOURCES = \
+libplist_2_0_la_LIBADD = $(top_builddir)/libcnary/libcnary.la
+libplist_2_0_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBPLIST_SO_VERSION) -no-undefined
+libplist_2_0_la_SOURCES = \
base64.c base64.h \
bytearray.c bytearray.h \
strbuf.h \
@@ -24,9 +24,9 @@ libplist_la_SOURCES = \
bplist.c \
plist.c plist.h
-libplist___la_LIBADD = libplist.la
-libplist___la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBPLIST_SO_VERSION) -no-undefined
-libplist___la_SOURCES = \
+libplist___2_0_la_LIBADD = libplist-2.0.la
+libplist___2_0_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBPLIST_SO_VERSION) -no-undefined
+libplist___2_0_la_SOURCES = \
Node.cpp \
Structure.cpp \
Array.cpp \
@@ -53,8 +53,8 @@ libplist___la_SOURCES = \
$(top_srcdir)/include/plist/Uid.h
if WIN32
-libplist_la_LDFLAGS += -avoid-version -static-libgcc
-libplist___la_LDFLAGS += -avoid-version -static-libgcc
+libplist_2_0_la_LDFLAGS += -avoid-version -static-libgcc
+libplist___2_0_la_LDFLAGS += -avoid-version -static-libgcc
endif
pkgconfigdir = $(libdir)/pkgconfig
diff --git a/src/libplist++-2.0.pc.in b/src/libplist++-2.0.pc.in
index 05b6bb4..79dc315 100644
--- a/src/libplist++-2.0.pc.in
+++ b/src/libplist++-2.0.pc.in
@@ -6,6 +6,6 @@ includedir=@includedir@
Name: @PACKAGE_NAME@++
Description: C++ binding for @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lplist++
+Libs: -L${libdir} -lplist++-2.0
Cflags: -I${includedir}
Requires.private: libplist-2.0 >= @PACKAGE_VERSION@
diff --git a/src/libplist-2.0.pc.in b/src/libplist-2.0.pc.in
index 0bd6932..43d9f57 100644
--- a/src/libplist-2.0.pc.in
+++ b/src/libplist-2.0.pc.in
@@ -6,5 +6,5 @@ includedir=@includedir@
Name: @PACKAGE_NAME@
Description: A library to handle Apple Property Lists whereas they are binary or XML
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lplist
+Libs: -L${libdir} -lplist-2.0
Cflags: -I${includedir}