comparison ext/SConscript @ 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 4a0efb7baf70
children
comparison
equal deleted inserted replaced
40:dbe85ccc8021 41:b661ba234c3b
1 import os 1 import os, shutil
2 from utils.util_scripts.path import path 2 from utils.util_scripts.path import path
3 3
4 Import('env') 4 Import('env')
5 5
6 curpath = str(path('.')) 6 curpath = str(path('.'))
7 installpath = str((path('.') / path('install')).abspath()) 7 installpath = str((path('.') / path('install')).abspath())
8 8
9 print "======= FIFE EXTERNAL DEPENDENCY BUILD: GUICHAN ======="
9 os.chdir(str(path('.') / path('guichan-0.8.1'))) 10 os.chdir(str(path('.') / path('guichan-0.8.1')))
10
11 os.system('./configure') 11 os.system('./configure')
12 os.system('make') 12 os.system('make')
13 os.system('make install prefix=%s' % installpath) 13 os.system('make install prefix=%s' % installpath)
14 14
15 print "======= FIFE EXTERNAL DEPENDENCY BUILD: LIBPNG ======="
15 os.chdir(str(path('..'))) 16 os.chdir(str(path('..')))
16
17 os.chdir(str(path('.') / path('libpng-1.2.29'))) 17 os.chdir(str(path('.') / path('libpng-1.2.29')))
18
19 os.system('./configure') 18 os.system('./configure')
20 os.system('make all-am') 19 os.system('make all-am')
21 os.system('make install prefix=%s' % installpath) 20 os.system('make install prefix=%s' % installpath)
22 os.system('make install-data-hook prefix=%s' % installpath) 21 os.system('make install-data-hook prefix=%s' % installpath)
23 22
23 print "======= FIFE EXTERNAL DEPENDENCY BUILD: OPENAL-SOFT ======="
24 os.chdir('..') 24 os.chdir('..')
25 os.chdir(str(path('.') / path('openal-soft'))) 25 os.chdir(str(path('.') / path('openal-soft')))
26 os.system('./configure') 26 os.system('./configure')
27 os.system('make') 27 os.system('make')
28 os.system('make install prefix=%s' % installpath) 28 os.system('make install prefix=%s' % installpath)
29 29
30 print "======= FIFE EXTERNAL DEPENDENCY BUILD: UNITTEST++ ======="
31 os.chdir('..')
32 os.chdir(str(path('.') / path('UnitTest++')))
33 os.system('make')
34 shutil.copyfile('libUnitTest++.a', str(path(installpath) / path('lib') / path('libUnitTest++.a')))
35 shutil.copyfile(
36 str(path('src') / path('UnitTest++.h')),
37 str(path(installpath) / path('include') / path('UnitTest++.h')))
38 shutil.copyfile(
39 str(path('src') / path('TestReporterStdout.h')),
40 str(path(installpath) / path('include') / path('TestReporterStdout.h')))
41
42 print "======= FIFE EXTERNAL DEPENDENCY BUILD: ALL DONE ( CHECK LOG FOR POSSIBLE ERRORS ) ======="
43
30 os.chdir(curpath) 44 os.chdir(curpath)