Hi Remi,

>  .gitignore  |    1 +
>  Makefile.am |   10 ++++++++--
>  ofono.pc.in |   10 ++++++++++
>  3 files changed, 19 insertions(+), 2 deletions(-)
>  create mode 100644 ofono.pc.in
> 
> diff --git a/.gitignore b/.gitignore
> index 7cfb1d9..59308be 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -20,6 +20,7 @@ install-sh
>  libtool
>  ltmain.sh
>  missing
> +ofono.pc
>  stamp-h1
>  autom4te.cache
>  
> diff --git a/Makefile.am b/Makefile.am
> index 1f09c11..e8570f8 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -21,6 +21,9 @@ local_headers = $(foreach file,$(pkginclude_HEADERS) \
>                               $(nodist_pkginclude_HEADERS), \
>                                       include/ofono/$(notdir $(file)))
>  
> +pkgconfigdir = $(libdir)/pkgconfig
> +pkgconfig_DATA = ofono.pc
> +
>  
>  if DATAFILES
>  dbusconfdir = @DBUS_CONFDIR@
> @@ -364,7 +367,7 @@ src_ofonod_LDFLAGS = -Wl,--export-dynamic \
>  
>  BUILT_SOURCES = $(local_headers)
>  
> -CLEANFILES = src/builtin.h $(BUILT_SOURCES) $(rules_DATA)
> +CLEANFILES = src/builtin.h ofono.pc $(BUILT_SOURCES) $(rules_DATA)
>  
>  plugindir = $(pkglibdir)/plugins
>  
> @@ -477,7 +480,7 @@ testdir = $(pkglibdir)/test
>  test_SCRIPTS = $(test_scripts)
>  endif
>  
> -EXTRA_DIST = src/genbuiltin $(udev_files) \
> +EXTRA_DIST = src/genbuiltin ofono.pc.in $(udev_files) \
>                                       $(doc_files) $(test_scripts)
>  
>  dist_man_MANS = doc/ofonod.8
> @@ -572,5 +575,8 @@ include/ofono/%.h: include/%.h
>       $(AM_V_at)$(MKDIR_P) include/ofono
>       $(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
>  
> +%.pc: %.pc.in $(builddir)/config.status
> +     $(AM_V_GEN)$(SHELL) ./config.status --file=$@ >/dev/null
> +

I do wanna keep this in sync with ConnMan actually. In ConnMan we create
this one via configure.ac script. So I think we should do the same here
as well.

Regards

Marcel


_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to