Skip to content

Commit

Permalink
lib: Add support for pkgconfig for libofproto.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
Acked-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
  • Loading branch information
Thomas Graf authored and blp committed Nov 13, 2014
1 parent 81696de commit b82b157
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -173,6 +173,7 @@ AC_CONFIG_FILES(datapath/linux/Makefile)
AC_CONFIG_FILES(datapath/linux/Makefile.main)
AC_CONFIG_FILES(tests/atlocal)
AC_CONFIG_FILES(lib/libopenvswitch.pc)
AC_CONFIG_FILES(ofproto/libofproto.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 ofproto/.gitignore
@@ -1,3 +1,4 @@
/Makefile
/Makefile.in
/ipfix-entities.def
/libofproto.pc
2 changes: 2 additions & 0 deletions ofproto/automake.mk
Expand Up @@ -59,6 +59,8 @@ if WIN32
ofproto_libofproto_la_LIBADD += ${PTHREAD_LIBS}
endif

pkgconfig_DATA += \
$(srcdir)/ofproto/libofproto.pc

# Distribute this generated file in order not to require Python at
# build time if ofproto/ipfix.xml is not modified.
Expand Down
11 changes: 11 additions & 0 deletions ofproto/libofproto.pc.in
@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

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

0 comments on commit b82b157

Please sign in to comment.