File: SConscript

package info (click to toggle)
fife 0.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,012 kB
  • ctags: 26,660
  • sloc: cpp: 84,903; sh: 10,269; python: 8,753; xml: 1,213; makefile: 265; objc: 245; ansic: 229
file content (25 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)