diff options
Diffstat (limited to 'check')
-rw-r--r-- | check/Makefile.am | 8 | ||||
-rwxr-xr-x | check/check-requires-private | 27 | ||||
-rw-r--r-- | check/private-dep.pc | 6 | ||||
-rw-r--r-- | check/public-dep.pc | 6 | ||||
-rw-r--r-- | check/requires-test.pc | 8 |
5 files changed, 53 insertions, 2 deletions
diff --git a/check/Makefile.am b/check/Makefile.am index 94655f6..e2c15d9 100644 --- a/check/Makefile.am +++ b/check/Makefile.am @@ -1,3 +1,7 @@ -TESTS = check-cflags check-libs check-define-variable check-libs-private -EXTRA_DIST = $(TESTS) common simple.pc +TESTS = check-cflags check-libs check-define-variable \ + check-libs-private check-requires-private + +EXTRA_DIST = $(TESTS) common simple.pc requires-test.pc public-dep.pc \ + private-dep.pc + diff --git a/check/check-requires-private b/check/check-requires-private new file mode 100755 index 0000000..744d790 --- /dev/null +++ b/check/check-requires-private @@ -0,0 +1,27 @@ +#! /bin/sh + +set -e + +. ${srcdir}/common + +# expect cflags from requires-test and public-dep +ARGS="--cflags requires-test" +RESULT="-I/requires-test/include -I/public-dep/include" +run_test + +# still expect those cflags for static linking case +ARGS="--static --cflags requires-test" +RESULT="-I/requires-test/include -I/public-dep/include" +run_test + +# expect libs for just requires-test and public-dep +ARGS="--libs requires-test" +RESULT="-L/requires-test/lib -L/public-dep/lib -lrequires-test -lpublic-dep" +run_test + +# expect libs for requires-test, public-dep and private-dep in static case +ARGS="--static --libs requires-test" +RESULT="-L/requires-test/lib -L/private-dep/lib -L/public-dep/lib -lrequires-test -lprivate-dep -lpublic-dep" +run_test + + diff --git a/check/private-dep.pc b/check/private-dep.pc new file mode 100644 index 0000000..cb40139 --- /dev/null +++ b/check/private-dep.pc @@ -0,0 +1,6 @@ +Name: Requires test package +Description: Dummy pkgconfig test package for testing Requires/Requires.private +Version: 1.0.0 +Libs: -L/private-dep/lib -lprivate-dep +Cflags: -I/private-dep/include + diff --git a/check/public-dep.pc b/check/public-dep.pc new file mode 100644 index 0000000..7350e5d --- /dev/null +++ b/check/public-dep.pc @@ -0,0 +1,6 @@ +Name: Requires test package +Description: Dummy pkgconfig test package for testing Requires/Requires.private +Version: 1.0.0 +Libs: -L/public-dep/lib -lpublic-dep +Cflags: -I/public-dep/include + diff --git a/check/requires-test.pc b/check/requires-test.pc new file mode 100644 index 0000000..ed836cf --- /dev/null +++ b/check/requires-test.pc @@ -0,0 +1,8 @@ +Name: Requires test package +Description: Dummy pkgconfig test package for testing Requires/Requires.private +Version: 1.0.0 +Requires: public-dep +Requires.private: private-dep +Libs: -L/requires-test/lib -lrequires-test +Cflags: -I/requires-test/include + |