commit dc8884fa919d2457d5f1e0a2de053734e363c482 Author: Ahmed Siam Date: Wed Jun 21 14:28:40 2023 +0300 Include i18n header file and pkgconfig data diff --git a/Makefile.am b/Makefile.am index 3d9abca..a91c89d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,4 +3,7 @@ ACLOCAL_AMFLAGS=-I m4 export LOCALES_DIR=$(datadir)/$(PACKAGE_NAME) export LOCALES_DATA=$(LOCALES_DIR)/locales.dat +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = i18n.pc + SUBDIRS = src locales diff --git a/configure.ac b/configure.ac index a82f627..73a11c6 100644 --- a/configure.ac +++ b/configure.ac @@ -7,6 +7,7 @@ AC_CONFIG_FILES([ Makefile src/Makefile locales/Makefile + i18n.pc ]) AC_CONFIG_MACRO_DIRS([m4]) diff --git a/i18n.pc.in b/i18n.pc.in new file mode 100644 index 0000000..71d8b88 --- /dev/null +++ b/i18n.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: i18n +Version: 0.1.0 +Description: +Cflags: -I${includedir} +Libs: -L${libdir} -li18n diff --git a/src/Makefile.am b/src/Makefile.am index 5479ae2..0294b53 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,6 +3,7 @@ icuformat_SOURCES = icuformat.cpp lib_LTLIBRARIES = libi18n.la libi18n_la_SOURCES= i18n.cpp +include_HEADERS = i18n.h icuformat_LDADD = libi18n.la