changeset 41:b661ba234c3b

hooked unittest++ into scons ext building
author jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 12 Jul 2008 14:45:59 +0000
parents dbe85ccc8021
children 4c8334b0ab30
files ext/SConscript
diffstat 1 files changed, 18 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ext/SConscript	Sat Jul 12 12:43:15 2008 +0000
+++ b/ext/SConscript	Sat Jul 12 14:45:59 2008 +0000
@@ -1,4 +1,4 @@
-import os
+import os, shutil
 from utils.util_scripts.path import path
 
 Import('env')
@@ -6,25 +6,39 @@
 curpath = str(path('.'))
 installpath = str((path('.') / path('install')).abspath())
 
+print "======= FIFE EXTERNAL DEPENDENCY BUILD: GUICHAN ======="
 os.chdir(str(path('.') / path('guichan-0.8.1')))
-
 os.system('./configure')
 os.system('make')
 os.system('make install prefix=%s' % installpath)
 
+print "======= FIFE EXTERNAL DEPENDENCY BUILD: LIBPNG ======="
 os.chdir(str(path('..')))
-
 os.chdir(str(path('.') / path('libpng-1.2.29')))
-
 os.system('./configure')
 os.system('make all-am')
 os.system('make install prefix=%s' % installpath)
 os.system('make install-data-hook prefix=%s' % installpath)
 
+print "======= FIFE EXTERNAL DEPENDENCY BUILD: OPENAL-SOFT ======="
 os.chdir('..')
 os.chdir(str(path('.') / path('openal-soft')))
 os.system('./configure')
 os.system('make')
 os.system('make install prefix=%s' % installpath)
 
+print "======= FIFE EXTERNAL DEPENDENCY BUILD: UNITTEST++ ======="
+os.chdir('..')
+os.chdir(str(path('.') / path('UnitTest++')))
+os.system('make')
+shutil.copyfile('libUnitTest++.a', str(path(installpath) / path('lib') / path('libUnitTest++.a')))
+shutil.copyfile(
+	str(path('src') / path('UnitTest++.h')),
+	str(path(installpath) / path('include') / path('UnitTest++.h')))
+shutil.copyfile(
+	str(path('src') / path('TestReporterStdout.h')),
+	str(path(installpath) / path('include') / path('TestReporterStdout.h')))
+
+print "======= FIFE EXTERNAL DEPENDENCY BUILD: ALL DONE ( CHECK LOG FOR POSSIBLE ERRORS ) ======="
+
 os.chdir(curpath)