Skip to content

Commit

Permalink
lib: Add support for pkgconfig for libovsdb.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Graf <[email protected]>
Acked-by: Flavio Leitner <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
Thomas Graf authored and blp committed Nov 13, 2014
1 parent b82b157 commit 32fe2cf
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ AC_CONFIG_FILES(datapath/linux/Makefile.main)
AC_CONFIG_FILES(tests/atlocal)
AC_CONFIG_FILES(lib/libopenvswitch.pc)
AC_CONFIG_FILES(ofproto/libofproto.pc)
AC_CONFIG_FILES(ovsdb/libovsdb.pc)

dnl This makes sure that include/openflow gets created in the build directory.
AC_CONFIG_COMMANDS([include/openflow/openflow.h.stamp])
Expand Down
1 change: 1 addition & 0 deletions ovsdb/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/ovsdb-server.1
/ovsdb-tool
/ovsdb-tool.1
/libovsdb.pc
3 changes: 3 additions & 0 deletions ovsdb/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ ovsdb_libovsdb_la_SOURCES = \
ovsdb_libovsdb_la_CFLAGS = $(AM_CFLAGS)
ovsdb_libovsdb_la_CPPFLAGS = $(AM_CPPFLAGS)

pkgconfig_DATA += \
$(srcdir)/ovsdb/libovsdb.pc

MAN_FRAGMENTS += \
ovsdb/remote-active.man \
ovsdb/remote-passive.man
Expand Down
11 changes: 11 additions & 0 deletions ovsdb/libovsdb.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: libofproto
Description: OVSDB library of Open vSwitch
Version: @VERSION@
Libs: -L${libdir} -lovsdb
Libs.private: @LIBS@
Cflags: -I${includedir}/openvswitch

0 comments on commit 32fe2cf

Please sign in to comment.