mirror of
https://github.com/json-c/json-c.git
synced 2026-04-08 23:09:07 +08:00
Remove the old libjson.so name compatibility support. The library is only created as libjson-c.so now and headers are only installed into the ${prefix}/json-c directory.
This commit is contained in:
29
Makefile.am
29
Makefile.am
@@ -4,15 +4,9 @@ EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc json-c.vcproj
|
|||||||
SUBDIRS = . tests
|
SUBDIRS = . tests
|
||||||
|
|
||||||
lib_LTLIBRARIES = libjson-c.la
|
lib_LTLIBRARIES = libjson-c.la
|
||||||
if ENABLE_OLDNAME_COMPAT
|
|
||||||
lib_LTLIBRARIES+=libjson.la
|
|
||||||
endif
|
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = json-c.pc
|
pkgconfig_DATA = json-c.pc
|
||||||
if ENABLE_OLDNAME_COMPAT
|
|
||||||
pkgconfig_DATA += json.pc
|
|
||||||
endif
|
|
||||||
|
|
||||||
libjson_cincludedir = $(includedir)/json-c
|
libjson_cincludedir = $(includedir)/json-c
|
||||||
libjson_cinclude_HEADERS = \
|
libjson_cinclude_HEADERS = \
|
||||||
@@ -38,14 +32,6 @@ libjson_cinclude_HEADERS = \
|
|||||||
|
|
||||||
libjson_c_la_LDFLAGS = -version-info 2:0:0 -no-undefined
|
libjson_c_la_LDFLAGS = -version-info 2:0:0 -no-undefined
|
||||||
|
|
||||||
if ENABLE_OLDNAME_COMPAT
|
|
||||||
libjson_la_LDFLAGS = -version-info 1:0:1 -no-undefined -ljson-c
|
|
||||||
|
|
||||||
# Temporary libjson library. This will be removed after one release.
|
|
||||||
libjson_la_LIBADD = -ljson-c
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
libjson_c_la_SOURCES = \
|
libjson_c_la_SOURCES = \
|
||||||
arraylist.c \
|
arraylist.c \
|
||||||
debug.c \
|
debug.c \
|
||||||
@@ -65,22 +51,9 @@ distclean-local:
|
|||||||
maintainer-clean-local:
|
maintainer-clean-local:
|
||||||
-rm -rf configure
|
-rm -rf configure
|
||||||
|
|
||||||
if ENABLE_OLDNAME_COMPAT
|
|
||||||
# Remove old headers and create a compatibility link
|
|
||||||
install-data-hook:
|
|
||||||
if test -d "$(DESTDIR)@includedir@/json" ; then \
|
|
||||||
(cd "$(DESTDIR)@includedir@/json" && \
|
|
||||||
rm -f $(libjson_cinclude_HEADERS)) ; \
|
|
||||||
rmdir "$(DESTDIR)@includedir@/json" ; \
|
|
||||||
fi
|
|
||||||
test \! -e "$(DESTDIR)@includedir@/json" || rm "$(DESTDIR)@includedir@/json"
|
|
||||||
$(LN_S) json-c "$(DESTDIR)@includedir@/json"
|
|
||||||
|
|
||||||
uninstall-local:
|
uninstall-local:
|
||||||
rm -f "$(DESTDIR)@includedir@/json"
|
|
||||||
rm -rf "$(DESTDIR)@includedir@/json-c"
|
rm -rf "$(DESTDIR)@includedir@/json-c"
|
||||||
|
rm -f "$(DESTDIR)@includedir@/json"
|
||||||
endif
|
|
||||||
|
|
||||||
ANDROID_CFLAGS = -I$(top_srcdir) -DHAVE_CONFIG_H
|
ANDROID_CFLAGS = -I$(top_srcdir) -DHAVE_CONFIG_H
|
||||||
|
|
||||||
|
|||||||
@@ -7,14 +7,6 @@ AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
|
|||||||
|
|
||||||
AC_PROG_MAKE_SET
|
AC_PROG_MAKE_SET
|
||||||
|
|
||||||
AC_ARG_ENABLE(oldname-compat,
|
|
||||||
AS_HELP_STRING([--disable-oldname-compat],
|
|
||||||
[Don't include the old libjson.so library and include/json directory.]),
|
|
||||||
[],
|
|
||||||
[enable_oldname_compat=yes]
|
|
||||||
)
|
|
||||||
AM_CONDITIONAL(ENABLE_OLDNAME_COMPAT, [test "x${enable_oldname_compat}" != "xno"])
|
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
@@ -59,7 +51,6 @@ AM_PROG_LIBTOOL
|
|||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
json.pc
|
|
||||||
json-c.pc
|
json-c.pc
|
||||||
tests/Makefile
|
tests/Makefile
|
||||||
json-c-uninstalled.pc
|
json-c-uninstalled.pc
|
||||||
|
|||||||
11
json.pc.in
11
json.pc.in
@@ -1,11 +0,0 @@
|
|||||||
prefix=@prefix@
|
|
||||||
exec_prefix=@exec_prefix@
|
|
||||||
libdir=@libdir@
|
|
||||||
includedir=@includedir@
|
|
||||||
|
|
||||||
Name: json-c
|
|
||||||
Description: JSON implementation in C, compat shim. Use json-c instead.
|
|
||||||
Version: @VERSION@
|
|
||||||
Requires: json-c
|
|
||||||
Libs:
|
|
||||||
Cflags:
|
|
||||||
Reference in New Issue
Block a user