view ext/SConscript @ 689:f67e9f47526d

Fixed the VFSDirectory so that it is compatible with the different versions of boost::filesystem. It chooses the correct functions based on the boost version being used. fixes[t:529]
author vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 31 Mar 2011 02:56:16 +0000
parents b5e7e14004a4
children
line wrap: on
line source

import os, sys, shutil
from utils.util_scripts.path import path

Import('env')

curpath = Dir('#/ext').srcnode().abspath
installpath = Dir(os.path.join(curpath, 'install')).srcnode().abspath

def build_guichan(target, source, env):
	print "======= FIFE EXTERNAL DEPENDENCY BUILD: GUICHAN ======="
	failure = Execute(Action(['./configure',
							  'make',
							  'make install prefix=%s' % installpath],
		chdir=os.path.join(curpath, 'guichan-0.8.2')))
	
	if (failure):
		print 'Building failed: guichan'
		Exit(1)

	
ext_cmd = env.Command('ext_target',
					  'install',
					  [build_guichan,
					   os.chdir(Dir('#').abspath)])
Alias('ext', ext_cmd)