Skip to content

Commit 326bf10

Browse files
committed
TS-3351: add basic pkg-config support
1 parent 4beccb0 commit 326bf10

5 files changed

Lines changed: 38 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*.a
33
*.so
44
*.pyc
5-
*.in
5+
Makefile.in
66
*~
77
*.tar.gz
88
*.lo
@@ -131,6 +131,7 @@ lib/tsconfig/test-tsconfig
131131

132132
tools/http_load/http_load
133133
tools/jtest/jtest
134+
tools/trafficserver.pc
134135

135136
BUILDS
136137
DEBUG

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
-*- coding: utf-8 -*-
22
Changes with Apache Traffic Server 5.3.0
33

4+
*) [TS-3351] Add basic pkg-config support.
5+
46
*) [TS-3349] Add DscpSet API's.
57

68
*) [TS-3344] 401 responses invalidate cache entry even if

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,6 +1911,7 @@ AC_CONFIG_FILES([
19111911
rc/trafficserver.service
19121912
rc/trafficserver.xml
19131913
tools/Makefile
1914+
tools/trafficserver.pc
19141915
tools/tsxs
19151916
])
19161917

tools/Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
bin_SCRIPTS = tsxs tspush
2121

22+
pkgconfigdir = $(libdir)/pkgconfig
23+
pkgconfig_DATA = trafficserver.pc
24+
2225
AM_LDFLAGS = @EXTRA_CXX_LDFLAGS@ @LIBTOOL_LINK_FLAGS@
2326
AM_CPPFLAGS = $(iocore_include_dirs) \
2427
-I$(top_srcdir)/lib -I$(top_builddir)/lib \

tools/trafficserver.pc.in

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
Name: trafficserver
18+
Description: The @PACKAGE_NAME@ caching HTTP proxy server
19+
URL: http://trafficserver.apache.org/
20+
Version: @PACKAGE_VERSION@
21+
22+
prefix=@prefix@
23+
exec_prefix=@exec_prefix@
24+
includedir=@includedir@
25+
libdir=@libdir@
26+
27+
# plugindir is the directory in which plugins should be installed.
28+
plugindir=@libexecdir@
29+
30+
Cflags: -I${includedir}

0 commit comments

Comments
 (0)