Commit 2be031f3 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

Add pkg-config file for orc-test library

Fixes #16
parent 0c52fe84
......@@ -20,7 +20,7 @@ EXTRA_DIST = COPYING RELEASE autogen.sh gtk-doc.make orc.m4 \
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
pkgconfig_DATA = orc-$(ORC_MAJORMINOR).pc
pkgconfig_DATA = orc-$(ORC_MAJORMINOR).pc orc-test-$(ORC_MAJORMINOR).pc
cp_v_gen = $(cp_v_gen_$(V))
cp_v_gen_ = $(cp_v_gen_$(AM_DEFAULT_VERBOSITY))
......@@ -29,12 +29,20 @@ cp_v_gen_0 = @echo " CP $@";
orc-$(ORC_MAJORMINOR).pc: orc.pc
$(cp_v_gen)cp orc.pc orc-$(ORC_MAJORMINOR).pc
orc-test-$(ORC_MAJORMINOR).pc: orc-test.pc
$(cp_v_gen)cp orc-test.pc orc-test-$(ORC_MAJORMINOR).pc
orc-$(ORC_MAJORMINOR)-uninstalled.pc: orc-uninstalled.pc
$(cp_v_gen)cp orc-uninstalled.pc orc-$(ORC_MAJORMINOR)-uninstalled.pc
BUILT_SOURCES=orc-$(ORC_MAJORMINOR)-uninstalled.pc
orc-test-$(ORC_MAJORMINOR)-uninstalled.pc: orc-test-uninstalled.pc
$(cp_v_gen)cp orc-test-uninstalled.pc orc-test-$(ORC_MAJORMINOR)-uninstalled.pc
BUILT_SOURCES=orc-$(ORC_MAJORMINOR)-uninstalled.pc \
orc-test-$(ORC_MAJORMINOR)-uninstalled.pc
CLEANFILES = orc-$(ORC_MAJORMINOR).pc orc-$(ORC_MAJORMINOR)-uninstalled.pc
CLEANFILES = orc-$(ORC_MAJORMINOR).pc orc-$(ORC_MAJORMINOR)-uninstalled.pc \
orc-test-$(ORC_MAJORMINOR).pc orc-test-$(ORC_MAJORMINOR)-uninstalled.pc
ACLOCAL_AMFLAGS = -I m4
......
......@@ -271,6 +271,8 @@ examples/Makefile
tools/Makefile
orc-uninstalled.pc
orc.pc
orc-test.pc
orc-test-uninstalled.pc
])
AC_OUTPUT
......
......@@ -166,6 +166,7 @@ else
endif
endif
# FIXME: use pkg-config module
pc_conf.set('prefix', get_option('prefix'))
pc_conf.set('exec_prefix', get_option('prefix'))
pc_conf.set('libdir', join_paths(get_option('prefix'), get_option('libdir')))
......
prefix=
exec_prefix=
libdir=${pcfiledir}/orc-test/.libs
includedir=${pcfiledir}/
Name: orc-@ORC_MAJORMINOR@ uninstalled
Description: Test Library of Optimized Inner Loops Runtime Compiler
Version: @VERSION@
Requires: orc-@ORC_MAJORMINOR@
Libs: -L${libdir} -lorc-test-@ORC_MAJORMINOR@ @LIBM@ @LIBRT@
Cflags: -I${includedir}
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/orc-@ORC_MAJORMINOR@
Name: orc-test-@ORC_MAJORMINOR@
Description: Test Library of Optimized Inner Loops Runtime Compiler
Version: @VERSION@
Requires: orc-@ORC_MAJORMINOR@
Libs: -L${libdir} -lorc-test-@ORC_MAJORMINOR@
Libs.private: @LIBM@ @LIBRT@ @PTHREAD_LIBS@
Cflags: -I${includedir}
......@@ -26,5 +26,14 @@ else
orc_test_lib = orc_test_shr
endif
# pkg-config file
pkg = import('pkgconfig')
pkg.generate(orc_test_lib,
name: 'orc-test',
filebase: 'orc-test-' + orc_api,
subdirs: 'orc-' + orc_api,
description: 'Test Library of Optimized Inner Loops Runtime Compiler',
libraries: [libm, orc_dep])
orc_test_dep = declare_dependency(include_directories : orc_inc,
link_with : orc_test_lib)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment