mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-07 17:48:05 +02:00
Add includedir test
This commit is contained in:
parent
cf48f83724
commit
3d673211a7
3 changed files with 29 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
TESTS = check-cflags check-libs check-define-variable \
|
||||
check-libs-private check-requires-private
|
||||
check-libs-private check-requires-private check-includedir
|
||||
|
||||
EXTRA_DIST = $(TESTS) common simple.pc requires-test.pc public-dep.pc \
|
||||
private-dep.pc
|
||||
private-dep.pc includedir.pc
|
||||
|
||||
|
|
|
|||
15
check/check-includedir
Executable file
15
check/check-includedir
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#! /bin/sh
|
||||
|
||||
# Do the Solaris Dance:
|
||||
if [ ! -d ~root ] ; then
|
||||
exec /usr/xpg4/bin/sh $0 "$@"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
. ${srcdir}/common
|
||||
|
||||
ARGS="--cflags includedir"
|
||||
RESULT="-I/usr/include/somedir"
|
||||
|
||||
run_test
|
||||
12
check/includedir.pc
Normal file
12
check/includedir.pc
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
prefix=/usr
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${prefix}/include/somedir
|
||||
|
||||
Name: Simple test
|
||||
Description: Dummy pkgconfig test package for testing pkgconfig
|
||||
Version: 1.0.0
|
||||
Requires:
|
||||
Libs: -lsimple
|
||||
Libs.private: -lm
|
||||
Cflags: -I${includedir}
|
||||
Loading…
Add table
Reference in a new issue