view ext/SConscript @ 432:4f2752d45458

This changes the behavior of Camera::resetRenderers(). It will no longer activate all layers for every renderer. This is now up to the clients to do. It also adds some code to the map loader that will automatically activate the layers in the InstanceRenderer. Clients that use the any of the renderers will now have to activate the layer they want to use. Also updated rio_de_hola and the editor to reflect changes. fixes[t:457]
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 24 Feb 2010 20:03:52 +0000
parents 64738befdf3b
children b5e7e14004a4
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)

def build_png(target, source, env):
	print "======= FIFE EXTERNAL DEPENDENCY BUILD: LIBPNG ======="
	failure = Execute(Action(['./configure',
							  'make all-am',
							  'make install prefix=%s' % installpath,
							  'make install-data-hook prefix=%s' % installpath],
		chdir=os.path.join(curpath, 'libpng-1.2.29')))
	
	if (failure):
		print 'Building failed: png'
		Exit(1)

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