Mercurial > fife-parpg
view ext/SConscript @ 148:72c25cc27d8b
For your convenience pools now have a function
called purgeLoadedResources exposed to python
which will delete all loaded resources that
have a ref count of zero.
You can use this after closing a map or something
alike. It may however impact performance, as
the next map may very well reload the same resources.
Just be aware of that. :-)
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 11 Oct 2008 06:05:11 +0000 |
parents | fa33cda75471 |
children | 64738befdf3b |
line wrap: on
line source
import os, shutil from utils.util_scripts.path import path Import('env') 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)