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))
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
tools/Makefile
orc-uninstalled.pc
orc.pc
+orc-test.pc
+orc-test-uninstalled.pc
])
AC_OUTPUT
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')))
--- /dev/null
+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}
--- /dev/null
+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}
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)