Przeglądaj źródła

add a pkg-config file for socl

Nathalie Furmento 13 lat temu
rodzic
commit
b7476c9a04
3 zmienionych plików z 33 dodań i 0 usunięć
  1. 1 0
      configure.ac
  2. 3 0
      socl/Makefile.am
  3. 29 0
      socl/socl-1.0.pc.in

+ 1 - 0
configure.ac

@@ -1551,6 +1551,7 @@ AC_OUTPUT([
 	socl/Makefile
 	socl/src/Makefile
 	socl/examples/Makefile
+        socl/socl-1.0.pc
 	libstarpu.pc
 	starpu-1.0.pc
 	mpi/libstarpumpi.pc

+ 3 - 0
socl/Makefile.am

@@ -28,3 +28,6 @@ libsocl_la_include_HEADERS = \
   include/CL/cl_starpu.h \
   include/CL/opencl.h \
   include/CL/cl.hpp
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = socl-1.0.pc

+ 29 - 0
socl/socl-1.0.pc.in

@@ -0,0 +1,29 @@
+# StarPU --- Runtime system for heterogeneous multicore architectures.
+#
+# Copyright (C) 2009-2011  Université de Bordeaux 1
+# Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
+#
+# StarPU is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or (at
+# your option) any later version.
+#
+# StarPU is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+# See the GNU Lesser General Public License in COPYING.LGPL for more details.
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: socl
+Description: offers OpenCL implementation on top of StarPU
+Version: @PACKAGE_VERSION@
+Cflags: -I${includedir}/starpu/@STARPU_EFFECTIVE_VERSION@
+Libs: -L${libdir} -lsocl-@STARPU_EFFECTIVE_VERSION@
+Libs.private: @LDFLAGS@ @LIBS@
+Requires: starpu-1.0
+Requires.private: