Skip to content

Commit

Permalink
pkgconfig for the project.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelkgutierrez committed May 21, 2018
1 parent 7bf9787 commit 88730f7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ README.md LICENSE autogen docs

SUBDIRS = \
src \
tests
tests \
pkgconfig
5 changes: 4 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ AC_PREREQ([2.60])
AC_INIT([sdsdkv],
[0.1-alpha],
[[email protected]],
[sdsdkv])
[sdsdkv],
[https://xgitlab.cels.anl.gov/sds/sdsdkv])
#dnl TODO(skg) add project URL.

AC_CONFIG_MACRO_DIR([config])
Expand Down Expand Up @@ -114,6 +115,8 @@ AC_CONFIG_FILES([
Makefile
src/Makefile
tests/Makefile
pkgconfig/Makefile
pkgconfig/sdsdkv.pc
])

AC_OUTPUT
Expand Down
13 changes: 13 additions & 0 deletions pkgconfig/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Copyright (c) 2018 Los Alamos National Security, LLC
# All rights reserved.
#
# This file is part of the sdsdkv project. See the LICENSE file at the
# top-level directory of this distribution.
#

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = sdsdkv.pc

# These are generated.
MOSTLYCLEANFILES = $(pkgconfig_DATA)
13 changes: 13 additions & 0 deletions pkgconfig/sdsdkv.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: @PACKAGE_NAME@
Description: A distributed key-value service build from other Mochi services.
Version: @PACKAGE_VERSION@
URL: @PACKAGE_URL@
Requires: sdskeyval ch-placement ssg
Libs: -L${libdir} -lsdsdkv
Libs.private: @SSG_LIBS@ @CH_PLACEMENT_LIBS@ @SDSKV_CLIENT_LIBS@ @SDSKV_SERVER_LIBS@
Cflags: -I${includedir}

0 comments on commit 88730f7

Please sign in to comment.