Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Commits

[master] 4d14c2f Install headers needed for vmod compilation in datadir/varnish/include, and export these locations in the pkg_config file.

 

 

Varnish commits RSS feed   Index | Next | Previous | View Threaded


martin at varnish-cache

May 10, 2012, 1:42 AM

Post #1 of 1 (87 views)
Permalink
[master] 4d14c2f Install headers needed for vmod compilation in datadir/varnish/include, and export these locations in the pkg_config file.

commit 4d14c2f746732f384ff429dcb9f5caedcf247aa8
Author: Martin Blix Grydeland <martin [at] varnish-software>
Date: Wed Feb 29 17:39:48 2012 +0100

Install headers needed for vmod compilation in
datadir/varnish/include, and export these locations in the pkg_config
file.

diff --git a/bin/varnishd/Makefile.am b/bin/varnishd/Makefile.am
index 8a925b9..bd91dd7 100644
--- a/bin/varnishd/Makefile.am
+++ b/bin/varnishd/Makefile.am
@@ -84,12 +84,9 @@ varnishd_SOURCES = \
waiter/cache_waiter_ports.c

noinst_HEADERS = \
- cache/cache.h \
cache/cache_backend.h \
cache/cache_esi.h \
- common/common.h \
common/heritage.h \
- common/params.h \
default_vcl.h \
hash/hash_slinger.h \
mgt/mgt.h \
@@ -99,6 +96,13 @@ noinst_HEADERS = \
storage/storage_persistent.h \
waiter/waiter.h

+# Headers for use with vmods
+pkgdataincludedir = $(pkgdatadir)/include
+nobase_pkgdatainclude_HEADERS = \
+ cache/cache.h \
+ common/common.h \
+ common/params.h
+
varnishd_CFLAGS = \
@PCRE_CFLAGS@ \
-DVARNISH_STATE_DIR='"${VARNISH_STATE_DIR}"' \
diff --git a/include/Makefile.am b/include/Makefile.am
index 91812fa..3faa540 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,5 +1,6 @@
#

+# API headers
nobase_pkginclude_HEADERS = \
tbl/acct_fields.h \
tbl/backend_poll.h \
@@ -26,6 +27,7 @@ nobase_pkginclude_HEADERS = \
vapi/vsl_int.h \
vcli.h

+# Private headers
nobase_noinst_HEADERS = \
binary_heap.h \
compat/daemon.h \
@@ -33,38 +35,42 @@ nobase_noinst_HEADERS = \
compat/srandomdev.h \
flopen.h \
libvcl.h \
- miniobj.h \
persistent.h \
- vas.h \
- vav.h \
- vbm.h \
- vcl.h \
vcli_common.h \
vcli_priv.h \
vcli_serve.h \
vcs_version.h \
- vcs.h \
vct.h \
- vdef.h \
vend.h \
vev.h \
vfil.h \
vin.h \
vlu.h \
vmb.h \
- vmod_abi.h \
vnum.h \
vpf.h \
+ vsub.h \
+ vss.h \
+ vtcp.h \
+ vtim.h
+
+# Headers for use with vmods
+pkgdataincludedir = $(pkgdatadir)/include
+nobase_pkgdatainclude_HEADERS = \
+ miniobj.h \
+ vas.h \
+ vav.h \
+ vbm.h \
+ vcl.h \
+ vcs.h \
+ vmod_abi.h \
vqueue.h \
vre.h \
+ vdef.h \
vrt.h \
vrt_obj.h \
vsb.h \
- vsub.h \
- vsha256.h \
- vss.h \
- vtcp.h \
- vtim.h
+ vsha256.h

tbl/vrt_stv_var.h tbl/vcl_returns.h vcl.h vrt_obj.h: $(top_srcdir)/lib/libvcl/generate.py $(top_srcdir)/include/vrt.h
mkdir -p tbl
diff --git a/varnishapi.pc.in b/varnishapi.pc.in
index 71cda56..7f5036a 100644
--- a/varnishapi.pc.in
+++ b/varnishapi.pc.in
@@ -1,11 +1,18 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
+bindir=@bindir@
+sbindir=@sbindir@
libdir=@libdir@
includedir=@includedir@
-vmoddir=${libdir}/varnish/vmods
+pkgincludedir=${includedir}/@PACKAGE@
+datarootdir=@datarootdir@
+datadir=@datadir@
+pkgdatadir=${datadir}/@PACKAGE@
+pkgdataincludedir=${pkgdatadir}/include
+vmoddir=${libdir}/@PACKAGE@/vmods

Name: VarnishAPI
Description: Varnish API
Version: @PACKAGE_VERSION@
-Cflags: -I${includedir}/varnish
+Cflags: -I${includedir}/@PACKAGE@
Libs: -L${libdir} -lvarnishapi

_______________________________________________
varnish-commit mailing list
varnish-commit [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit

Varnish commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.