]> mj.ucw.cz Git - libucw.git/commitdiff
Added libucw-* prefix to all libraries (libcharset -> libucw-charset, etc.)
authorPavel Charvat <pchar@ucw.cz>
Fri, 6 Dec 2013 12:02:07 +0000 (13:02 +0100)
committerPavel Charvat <pchar@ucw.cz>
Fri, 6 Dec 2013 12:02:07 +0000 (13:02 +0100)
15 files changed:
Makefile
WWW/index.html
charset/Makefile
charset/libcharset.pc [deleted file]
charset/libucw-charset.pc [new file with mode: 0644]
debug/check-configs
examples/internal/Makefile
images/Makefile
images/libimages.pc [deleted file]
images/libucw-images.pc [new file with mode: 0644]
shxml/Makefile
shxml/libshxml.pc [deleted file]
shxml/libucw-xml.pc [new file with mode: 0644]
shxml/source.c
ucw/kmp-test.c

index c126cd16ee8c6a2af61e3fd5c4cbfda30598e00e..53fdd562be44adf99c778afafc828272bfc6cc55 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ include $(BUILDSYS)/Makefile
 
 # Set up names of common libraries (to avoid forward references in rules)
 ifdef CONFIG_CHARSET
-LIBCHARSET=$(o)/charset/libcharset.pc
+LIBCHARSET=$(o)/charset/libucw-charset.pc
 endif
 
 # The UCW library
@@ -46,12 +46,12 @@ include $(s)/charset/Makefile
 endif
 
 ifdef CONFIG_IMAGES
-LIBIMAGES=$(o)/images/libimages.pc
+LIBIMAGES=$(o)/images/libucw-images.pc
 include $(s)/images/Makefile
 endif
 
 ifdef CONFIG_SHXML
-LIBSHXML=$(o)/shxml/libshxml.pc
+LIBSHXML=$(o)/shxml/libucw-xml.pc
 include $(s)/shxml/Makefile
 endif
 
index 582b7d6fefd19753b474a5ec05a326614aabd17c..cec0985e4f469390cb2685665246e68362ef5626 100644 (file)
@@ -89,9 +89,9 @@
                                        The package also contains several other libraries from the Sherlock Holmes project, which you might find useful.
                                        So far, they are completely optional and not much documented.
                                <ul>
-                                       <li><strong>libcharset</strong> &ndash; manipulation of character sets and UniCode categories
-                                       <li><strong>libimages</strong> &ndash; manipulation of images
-                                       <li><strong>libshxml</strong> &ndash; a lightning fast and flexible XML parser
+                                       <li><strong>libucw-charset</strong> &ndash; manipulation of character sets and UniCode categories
+                                       <li><strong>libucw-images</strong> &ndash; manipulation of images
+                                       <li><strong>libucw-xml</strong> &ndash; a lightning fast and flexible XML parser
                                </ul>
                        </div>
                </div>
index 32cc82a7637102008980eb58efa37daf6dced645..e54039e03147aa6006602546ae4b0c9588644626 100644 (file)
@@ -5,26 +5,26 @@ DIRS+=charset
 LIBCHARSET_MODS=toupper tolower tocat toligatures unaccent charconv setnames fb-charconv stk-charconv mp-charconv
 LIBCHARSET_INCLUDES=charconv.h unicat.h fb-charconv.h stk-charconv.h mp-charconv.h
 
-$(o)/charset/libcharset.a: $(addsuffix .o,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS)))
-$(o)/charset/libcharset-pic.a: $(addsuffix .oo,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS)))
-$(o)/charset/libcharset.so: $(addsuffix .oo,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS)))
-$(o)/charset/libcharset.pc: $(LIBUCW)
+$(o)/charset/libucw-charset.a: $(addsuffix .o,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS)))
+$(o)/charset/libucw-charset-pic.a: $(addsuffix .oo,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS)))
+$(o)/charset/libucw-charset.so: $(addsuffix .oo,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS)))
+$(o)/charset/libucw-charset.pc: $(LIBUCW)
 
 ifdef CONFIG_STATIC_PIC
-$(o)/charset/libcharset.pc: $(o)/charset/libcharset-pic.a
+$(o)/charset/libucw-charset.pc: $(o)/charset/libucw-charset-pic.a
 endif
 
-API_LIBS+=libcharset
+API_LIBS+=libucw-charset
 API_INCLUDES+=$(o)/charset/.include-stamp
 $(o)/charset/.include-stamp: $(addprefix $(s)/charset/,$(LIBCHARSET_INCLUDES))
 $(o)/charset/.include-stamp: IDST=charset
-run/lib/pkgconfig/libcharset.pc: $(o)/charset/libcharset.pc
+run/lib/pkgconfig/libucw-charset.pc: $(o)/charset/libucw-charset.pc
 
 ifdef CONFIG_CHARSET_UTILS
 PROGS+=$(o)/charset/cs2cs
 endif
 
-$(o)/charset/cs2cs: $(o)/charset/cs2cs.o $(LIBUCW) $(o)/charset/libcharset.pc
+$(o)/charset/cs2cs: $(o)/charset/cs2cs.o $(LIBUCW) $(o)/charset/libucw-charset.pc
 
 build_charsets:
        cd $(s)/charset && sh misc/generate
@@ -32,14 +32,14 @@ build_charsets:
 clean::
        rm -f $(s)/charset/misc/u-*
 
-INSTALL_TARGETS+=install-libcharset
-install-libcharset:
+INSTALL_TARGETS+=install-libucw-charset
+install-libucw-charset:
        install -d -m 755 $(DESTDIR)$(INSTALL_INCLUDE_DIR)/charset $(DESTDIR)$(INSTALL_LIB_DIR) $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
        install -m 644 $(addprefix run/include/charset/,$(LIBCHARSET_INCLUDES)) $(DESTDIR)$(INSTALL_INCLUDE_DIR)/charset
-       install -m 644 run/lib/libcharset.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
-       install -m 644 run/lib/pkgconfig/libcharset.pc $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
+       install -m 644 run/lib/libucw-charset.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
+       install -m 644 run/lib/pkgconfig/libucw-charset.pc $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
 ifdef CONFIG_STATIC_PIC
-       install -m 644 run/lib/libcharset-pic.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
+       install -m 644 run/lib/libucw-charset-pic.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
 endif
 
-.PHONY: install-libcharset
+.PHONY: install-libucw-charset
diff --git a/charset/libcharset.pc b/charset/libcharset.pc
deleted file mode 100644 (file)
index 258797c..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-# pkg-config metadata for libcharset
-
-libdir=@LIBDIR@
-incdir=.
-
-# Override if you want to use the -pic version
-picsuffix=
-
-Name: libcharset
-Description: Character set conversion library
-Version: @UCW_VERSION@
-Cflags: -I${incdir}
-Libs: -L${libdir} -lcharset${picsuffix}
-Requires: @DEPS@
diff --git a/charset/libucw-charset.pc b/charset/libucw-charset.pc
new file mode 100644 (file)
index 0000000..9119bdb
--- /dev/null
@@ -0,0 +1,14 @@
+# pkg-config metadata for libucw-charset
+
+libdir=@LIBDIR@
+incdir=.
+
+# Override if you want to use the -pic version
+picsuffix=
+
+Name: libucw-charset
+Description: Character set conversion library
+Version: @UCW_VERSION@
+Cflags: -I${incdir}
+Libs: -L${libdir} -lucw-charset${picsuffix}
+Requires: @DEPS@
index 90799016bc4ba209f2464ffb8f87429830fdc956..49085282f984d35537fb9eb20836931e83a77048 100755 (executable)
@@ -44,7 +44,7 @@ function try
 rm -rf tests
 mkdir tests
 if [ "$1" == DARWIN ] ; then
-       # All tests on Darwin need CONFIG_SHARED, due to libcharset collision
+       # All tests on Darwin need CONFIG_SHARED, due to libucw-charset collision
        # only visible with static linking.
        FLAGS="CONFIG_SHARED"
        try debug/default.cfg $FLAGS CONFIG_UCW_PCRE                                    # `make tests' does not work with non-local builds with shared libs
index 633ca09856e6c22b0fdb1b864b577a3b5a98b8e5..817029d82f7b92885fb00344230bf24de7fbd6c4 100644 (file)
@@ -16,19 +16,17 @@ BUILDSYS=$(s)/build
 include $(BUILDSYS)/Maketop
 
 # Set up names of common libraries (to avoid forward references in rules)
-LIBLANG=$(o)/lang/liblang.pc
-LIBCHARSET=$(o)/charset/libcharset.pc
-LIBIMAGES=$(o)/images/libimages.pc
+LIBCHARSET=$(o)/charset/libucw-charset.pc
+LIBIMAGES=$(o)/images/libucw-images.pc
 
 # Include makefiles of libraries we wish to use
 include $(s)/ucw/Makefile
 include $(s)/charset/Makefile
-include $(s)/lang/Makefile
 include $(s)/images/Makefile
 
 # Programs we want to compile
 PROGS+=$(o)/test
-$(o)/test: $(o)/test.o $(LIBUCW) $(LIBLANG) $(LIBCHARSET) $(LIBIMAGES)
+$(o)/test: $(o)/test.o $(LIBUCW) $(LIBCHARSET) $(LIBIMAGES)
 
 # All tests (%-t) get automatically linked with libucw
 TESTING_DEPS=$(LIBUCW)
index 98a53636c214894920a4c69e5eecf3106d75802d..815c078164c33b72c21650f7689403ff8ddeea2e 100644 (file)
@@ -16,7 +16,7 @@ LIBIMAGES_DEPS=$(LIBUCW)
 endif
 
 ifdef CONFIG_STATIC_PIC
-LIBIMAGES_DEPS+=$(o)/images/libimages-pic.a
+LIBIMAGES_DEPS+=$(o)/images/libucw-images-pic.a
 endif
 
 ifdef CONFIG_IMAGES_DUP
@@ -64,10 +64,10 @@ endif
 PROGS+=$(LIBIMAGES_PROGS)
 CONFIGS+=$(LIBIMAGES_CONFIGS)
 
-$(o)/images/libimages.a: $(addsuffix .o,$(addprefix $(o)/images/,$(LIBIMAGES_MODS)))
-$(o)/images/libimages-pic.a: $(addsuffix .oo,$(addprefix $(o)/images/,$(LIBIMAGES_MODS)))
-$(o)/images/libimages.so: $(addsuffix .oo,$(addprefix $(o)/images/,$(LIBIMAGES_MODS)))
-$(o)/images/libimages.pc: $(LIBIMAGES_DEPS)
+$(o)/images/libucw-images.a: $(addsuffix .o,$(addprefix $(o)/images/,$(LIBIMAGES_MODS)))
+$(o)/images/libucw-images-pic.a: $(addsuffix .oo,$(addprefix $(o)/images/,$(LIBIMAGES_MODS)))
+$(o)/images/libucw-images.so: $(addsuffix .oo,$(addprefix $(o)/images/,$(LIBIMAGES_MODS)))
+$(o)/images/libucw-images.pc: $(LIBIMAGES_DEPS)
 
 $(o)/images/image-tool: $(o)/images/image-tool.o $(LIBIMAGES)
 $(o)/images/color-tool: $(o)/images/color-tool.o $(LIBIMAGES)
@@ -82,22 +82,22 @@ TESTS+=$(o)/images/color.test
 $(o)/images/color-t: $(LIBIMAGES)
 $(o)/images/color.test: $(o)/images/color-t
 
-API_LIBS+=libimages
+API_LIBS+=libucw-images
 API_INCLUDES+=$(o)/images/.include-stamp
 $(o)/images/.include-stamp: $(addprefix $(s)/images/,$(LIBIMAGES_INCLUDES))
 $(o)/images/.include-stamp: IDST=images
-run/lib/pkgconfig/libimages.pc: $(o)/images/libimages.pc
+run/lib/pkgconfig/libucw-images.pc: $(o)/images/libucw-images.pc
 
-INSTALL_TARGETS+=install-libimages
-install-libimages:
+INSTALL_TARGETS+=install-libucw-images
+install-libucw-images:
        install -d -m 755 $(addprefix $(DESTDIR),$(INSTALL_BIN_DIR) $(INSTALL_INCLUDE_DIR)/images $(INSTALL_LIB_DIR) $(INSTALL_PKGCONFIG_DIR) $(INSTALL_CONFIG_DIR))
        install -m 755 $(LIBIMAGES_PROGS) $(DESTDIR)$(INSTALL_BIN_DIR)
        install -m 644 $(addprefix run/include/images/,$(LIBIMAGES_INCLUDES)) $(DESTDIR)$(INSTALL_INCLUDE_DIR)/images
-       install -m 644 run/lib/libimages.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
-       install -m 644 run/lib/pkgconfig/libimages.pc $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
+       install -m 644 run/lib/libucw-images.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
+       install -m 644 run/lib/pkgconfig/libucw-images.pc $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
        install -m 644 $(addprefix run/$(CONFIG_DIR)/,$(LIBIMAGES_CONFIGS)) $(DESTDIR)$(INSTALL_CONFIG_DIR)
 ifdef CONFIG_STATIC_PIC
-       install -m 644 run/lib/libimages-pic.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
+       install -m 644 run/lib/libucw-images-pic.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
 endif
 
-.PHONY: install-libimages
+.PHONY: install-libucw-images
diff --git a/images/libimages.pc b/images/libimages.pc
deleted file mode 100644 (file)
index e8ca58f..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-# pkg-config metadata for libimages
-
-libdir=@LIBDIR@
-incdir=.
-
-# Override if you want to use the -pic version
-picsuffix=
-
-Name: libimages
-Description: Sherlock image library
-Version: @UCW_VERSION@
-Cflags: -I${incdir}
-Libs: -L${libdir} -limages${picsuffix} -lm -lpthread @LIBIMAGES_LIBS@
-Requires: @DEPS@
diff --git a/images/libucw-images.pc b/images/libucw-images.pc
new file mode 100644 (file)
index 0000000..3a129ce
--- /dev/null
@@ -0,0 +1,14 @@
+# pkg-config metadata for libucw-images
+
+libdir=@LIBDIR@
+incdir=.
+
+# Override if you want to use the -pic version
+picsuffix=
+
+Name: libucw-images
+Description: UCW image library
+Version: @UCW_VERSION@
+Cflags: -I${incdir}
+Libs: -L${libdir} -lucw-images${picsuffix} -lm -lpthread @LIBIMAGES_LIBS@
+Requires: @DEPS@
index ecdba488bce95a998f1ee9f6316960f947aef97e..ccd03ceae59006048d805b1165d6c2ee4786691e 100644 (file)
@@ -9,13 +9,13 @@ LIBSHXML_INCLUDES=xml.h dtd.h
 
 LIBSHXML_MOD_PATHS=$(addprefix $(o)/shxml/,$(LIBSHXML_MODS))
 
-$(o)/shxml/libshxml.a: $(addsuffix .o,$(LIBSHXML_MOD_PATHS))
-$(o)/shxml/libshxml-pic.a: $(addsuffix .oo,$(LIBSHXML_MOD_PATHS))
-$(o)/shxml/libshxml.so: $(addsuffix .oo,$(LIBSHXML_MOD_PATHS))
-$(o)/shxml/libshxml.pc: $(LIBCHARSET)
+$(o)/shxml/libucw-xml.a: $(addsuffix .o,$(LIBSHXML_MOD_PATHS))
+$(o)/shxml/libucw-xml-pic.a: $(addsuffix .oo,$(LIBSHXML_MOD_PATHS))
+$(o)/shxml/libucw-xml.so: $(addsuffix .oo,$(LIBSHXML_MOD_PATHS))
+$(o)/shxml/libucw-xml.pc: $(LIBCHARSET)
 
 ifdef CONFIG_STATIC_PIC
-$(o)/shxml/libshxml.pc: $(o)/shxml/libshxml-pic.a
+$(o)/shxml/libucw-xml.pc: $(o)/shxml/libucw-xml-pic.a
 endif
 
 $(o)/shxml/common.o: $(o)/shxml/unicat.h
@@ -35,20 +35,20 @@ TESTS+=$(o)/shxml/xml-test.test
 $(o)/shxml/xml-test: $(o)/shxml/xml-test.o $(LIBSHXML)
 $(o)/shxml/xml-test.test: $(o)/shxml/xml-test
 
-API_LIBS+=libshxml
+API_LIBS+=libucw-xml
 API_INCLUDES+=$(o)/shxml/.include-stamp
 $(o)/shxml/.include-stamp: $(addprefix $(s)/shxml/,$(LIBSHXML_INCLUDES))
 $(o)/shxml/.include-stamp: IDST=shxml
-run/lib/pkgconfig/libshxml.pc: $(o)/shxml/libshxml.pc
+run/lib/pkgconfig/libucw-xml.pc: $(o)/shxml/libucw-xml.pc
 
-INSTALL_TARGETS+=install-sh-xml
+INSTALL_TARGETS+=install-libucw-xml
 install-sh-xml:
        install -d -m 755 $(DESTDIR)$(INSTALL_INCLUDE_DIR)/shxml $(DESTDIR)$(INSTALL_LIB_DIR) $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
        install -m 644 $(addprefix run/include/shxml/,$(LIBSHXML_INCLUDES)) $(DESTDIR)$(INSTALL_INCLUDE_DIR)/shxml
-       install -m 644 run/lib/pkgconfig/libshxml.pc $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
-       install -m 644 run/lib/libshxml.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
+       install -m 644 run/lib/pkgconfig/libucw-xml.pc $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
+       install -m 644 run/lib/libucw-xml.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
 ifdef CONFIG_STATIC_PIC
-       install -m 644 run/lib/libshxml-pic.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
+       install -m 644 run/lib/libucw-xml-pic.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
 endif
 
-.PHONY: install-sh-xml
+.PHONY: install-libucw-xml
diff --git a/shxml/libshxml.pc b/shxml/libshxml.pc
deleted file mode 100644 (file)
index 44983e2..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-# pkg-config metadata for libshxml
-
-libdir=@LIBDIR@
-incdir=.
-
-# Override if you want to use the -pic version
-picsuffix=
-
-Name: libshxml
-Description: XML parser for Sherlock project
-Version: @UCW_VERSION@
-Cflags: -I${incdir}
-Libs: -L${libdir} -lshxml${picsuffix}
-Requires: @DEPS@
diff --git a/shxml/libucw-xml.pc b/shxml/libucw-xml.pc
new file mode 100644 (file)
index 0000000..7082a54
--- /dev/null
@@ -0,0 +1,14 @@
+# pkg-config metadata for libucw-xml
+
+libdir=@LIBDIR@
+incdir=.
+
+# Override if you want to use the -pic version
+picsuffix=
+
+Name: libucw-xml
+Description: XML parser for LibUCW project
+Version: @UCW_VERSION@
+Cflags: -I${incdir}
+Libs: -L${libdir} -lucw-xml${picsuffix}
+Requires: @DEPS@
index d672b797ef075437a4a83390eeb6f9e796542b39..d6d1f3b320e65f29819dec35b2f5c0a17ca77bc3 100644 (file)
@@ -307,7 +307,7 @@ xml_parse_encoding_name(struct xml_context *ctx)
 static void
 xml_init_charconv(struct xml_context *ctx, int cs)
 {
-  // XXX: with a direct access to libcharset tables could be faster
+  // XXX: with a direct access to libucw-charset tables could be faster
   struct xml_source *src = ctx->src;
   TRACE(ctx, "wrapping charset %s", charset_name(cs));
   src->wrapped_fb = src->fb;
index 49d4cf29710d5e9610b36767ef0baee1ac6ed884..59c61ff02ae337f09088d8bf1615045bae01bce7 100644 (file)
@@ -50,7 +50,7 @@ test1(void)
   kmp1_cleanup(&kmp);
 }
 
-#ifdef CONFIG_CHARSET          /* This one depends on libcharset */
+#ifdef CONFIG_CHARSET          /* This one depends on libucw-charset */
 
 /* TEST2 - various tracing */