[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r8533 - gnuradio/branches/developers/eb/mp-sched/dtool
From: |
eb |
Subject: |
[Commit-gnuradio] r8533 - gnuradio/branches/developers/eb/mp-sched/dtools/bin |
Date: |
Thu, 29 May 2008 16:23:51 -0600 (MDT) |
Author: eb
Date: 2008-05-29 16:23:50 -0600 (Thu, 29 May 2008)
New Revision: 8533
Added:
gnuradio/branches/developers/eb/mp-sched/dtools/bin/install-tbb
Log:
script to install threading building blocks
Added: gnuradio/branches/developers/eb/mp-sched/dtools/bin/install-tbb
===================================================================
--- gnuradio/branches/developers/eb/mp-sched/dtools/bin/install-tbb
(rev 0)
+++ gnuradio/branches/developers/eb/mp-sched/dtools/bin/install-tbb
2008-05-29 22:23:50 UTC (rev 8533)
@@ -0,0 +1,53 @@
+#!/usr/bin/env python
+
+"""
+Install the release and debug libs and includes under --prefix
+"""
+
+from optparse import OptionParser
+import os
+import os.path
+
+default_prefix="/opt/intel/tbb"
+
+pkgconfig_filename = "tbb.pc"
+pkgconfig_file_contents = """\
+prefix=%s
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: tbb
+Description: Intel Threading Building Blocks
+Requires:
+Version: 2.0
+Libs: -L${libdir} -ltbb -ltbbmalloc
+Cflags: -I${includedir}
+"""
+
+def main():
+ parser = OptionParser()
+ parser.add_option('','--prefix', default=default_prefix,
+ help="install architecture-independent files in PREFIX
[default=%default]")
+ (options, args) = parser.parse_args()
+ if len(args) != 0:
+ parser.print_help()
+ raise SystemExit, 1
+
+ prefix = options.prefix
+
+ os.system('install -d ' + os.path.join(prefix, 'include/tbb'))
+ os.system('install -d ' + os.path.join(prefix, 'include/tbb/machine'))
+ os.system('install -d ' + os.path.join(prefix, 'lib'))
+ os.system('install -d ' + os.path.join(prefix, 'lib/pkgconfig'))
+ os.system('install -t ' + os.path.join(prefix, 'lib') + '
build/linux*release/*.so*')
+ os.system('install -t ' + os.path.join(prefix, 'lib') + '
build/linux*debug/*.so*')
+ os.system('install -t ' + os.path.join(prefix, 'include/tbb') + '
include/tbb/*.h')
+ os.system('install -t ' + os.path.join(prefix, 'include/tbb/machine') + '
include/tbb/machine/*.h')
+
+ f = open(os.path.join(prefix, 'lib/pkgconfig', pkgconfig_filename), 'w')
+ f.write(pkgconfig_file_contents % (prefix,))
+ f.close()
+
+if __name__ == "__main__":
+ main()
Property changes on:
gnuradio/branches/developers/eb/mp-sched/dtools/bin/install-tbb
___________________________________________________________________
Name: svn:executable
+ *
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r8533 - gnuradio/branches/developers/eb/mp-sched/dtools/bin,
eb <=