From: Ronan Le Martret Date: Wed, 14 May 2014 12:05:33 +0000 (+0200) Subject: Create a tizen-platform-wrapper.pc file. X-Git-Tag: submit/tizen_common/20140610.120852^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fsystem%2Ftizen-platform-wrapper.git;a=commitdiff_plain;h=bd588398289ed3d216889e2dd1b91d3aeabca1ef Create a tizen-platform-wrapper.pc file. Change-Id: Iff98b2ad636924abf4a656e54adab830f9f374c7 Signed-off-by: Ronan Le Martret --- diff --git a/Makefile.am b/Makefile.am index 6b75694..f84b21e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,5 @@ SUBDIRS = src +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = tizen-platform-wrapper.pc diff --git a/configure.ac b/configure.ac index 4acb89c..7b4e1ce 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,8 @@ AC_FUNC_MALLOC AC_FUNC_MMAP AC_CHECK_FUNCS([dup2 endpwent munmap strndup]) -AC_CONFIG_FILES([Makefile - src/Makefile]) +AC_CONFIG_FILES([ +Makefile +src/Makefile +tizen-platform-wrapper.pc:tizen-platform-wrapper.pc.in]) AC_OUTPUT diff --git a/packaging/tizen-platform-wrapper.spec b/packaging/tizen-platform-wrapper.spec index cb1451f..027a699 100644 --- a/packaging/tizen-platform-wrapper.spec +++ b/packaging/tizen-platform-wrapper.spec @@ -18,7 +18,7 @@ cp %{SOURCE1001} . %build %reconfigure -make %{?_smp_mflags} +%__make %{?_smp_mflags} %install %make_install @@ -28,3 +28,5 @@ make %{?_smp_mflags} %license LGPL_2.0 %{_bindir}/* %{_datadir}/%{name}/* +%{_libdir}/pkgconfig/tizen-platform-wrapper.pc + diff --git a/src/Makefile.am b/src/Makefile.am index f65b06d..bf994a3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,23 @@ bin_PROGRAMS = tzplatform-tool -tzplatform_tool_SOURCES = buffer.c foreign.c heap.c parser.c toolbox.c - -dist_pkgdata_DATA = buffer.c buffer.h foreign.c foreign.h heap.c heap.h parser.c parser.h scratch.c scratch.h tzplatform_config.c tzplatform_config.h tzplatform_get.c passwd.h passwd.c +tzplatform_tool_SOURCES = buffer.c \ + foreign.c \ + heap.c \ + parser.c \ + toolbox.c +dist_pkgdata_DATA = buffer.c \ + buffer.h \ + foreign.c \ + foreign.h \ + heap.c \ + heap.h \ + parser.c \ + parser.h \ + scratch.c \ + scratch.h \ + tzplatform_config.c \ + tzplatform_config.h \ + tzplatform_get.c \ + passwd.h \ + passwd.c diff --git a/tizen-platform-wrapper.pc.in b/tizen-platform-wrapper.pc.in new file mode 100644 index 0000000..3df2ca4 --- /dev/null +++ b/tizen-platform-wrapper.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +srcdir=@datadir@ +Name: @PACKAGE_NAME@ +Description: Tizen Platform Wrapper library. +Version: @PACKAGE_VERSION@ +URL: @PACKAGE_URL@ +Libs: -L${libdir} +Cflags: -I${includedir}/ \ No newline at end of file