mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
215baff4c8
With wxWidgets 2.9.2 now in Externals, SCons was the only external dependency other than Xcode and building just SCons from Macports caused a fair mount of extra stuff to be built unnecessarily, so just include a copy of scons-local. Always build wxWidgets from Externals which allows us to get rid of the home-grown autoconf machinery in SconsTests. The main use case for args.cache was the wxconfig option, which is no longer relevant after the above changes and caching options has a lot of potential for confusion, especially since other build systems don't tend to do this, so we no longer do it now. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7381 8ced0084-cf51-0410-be5f-012b33b47a6e
61 lines
1.3 KiB
Python
61 lines
1.3 KiB
Python
# -*- python -*-
|
|
|
|
Import('env')
|
|
import os
|
|
import sys
|
|
|
|
def createVersion(env, target, source):
|
|
tmpstr = open(source[0].path, 'r').read().\
|
|
replace("$WCMODS?$WCREV$M:$WCREV$$", env['svnrev'])
|
|
outfile = open(target[0].path, 'w')
|
|
outfile.write(tmpstr + '\n')
|
|
outfile.close()
|
|
|
|
Execute(Delete('Src/svnrev.h'))
|
|
env.Command('Src/svnrev.h', 'Src/svnrev_template.h',
|
|
[Delete('${TARGET.srcpath}'), createVersion])
|
|
|
|
files = [
|
|
'Src/ABI.cpp',
|
|
'Src/BreakPoints.cpp',
|
|
'Src/CDUtils.cpp',
|
|
'Src/CPUDetect.cpp',
|
|
'Src/ColorUtil.cpp',
|
|
'Src/ConsoleListener.cpp',
|
|
'Src/Crypto/aes_cbc.cpp',
|
|
'Src/Crypto/aes_core.cpp',
|
|
'Src/Crypto/bn.cpp',
|
|
'Src/Crypto/ec.cpp',
|
|
'Src/Crypto/md5.cpp',
|
|
'Src/Crypto/sha1.cpp',
|
|
'Src/FileSearch.cpp',
|
|
'Src/FileUtil.cpp',
|
|
'Src/Hash.cpp',
|
|
'Src/IniFile.cpp',
|
|
'Src/LogManager.cpp',
|
|
'Src/MathUtil.cpp',
|
|
'Src/MemArena.cpp',
|
|
'Src/MemoryUtil.cpp',
|
|
'Src/Misc.cpp',
|
|
'Src/MsgHandler.cpp',
|
|
'Src/NandPaths.cpp',
|
|
'Src/SDCardUtil.cpp',
|
|
'Src/StringUtil.cpp',
|
|
'Src/SymbolDB.cpp',
|
|
'Src/SysConf.cpp',
|
|
'Src/Thread.cpp',
|
|
'Src/Thunk.cpp',
|
|
'Src/Timer.cpp',
|
|
'Src/Version.cpp',
|
|
'Src/VideoBackendBase.cpp',
|
|
'Src/x64Analyzer.cpp',
|
|
'Src/x64Emitter.cpp',
|
|
]
|
|
|
|
if sys.platform == 'win32':
|
|
files += ['Src/ExtendedTrace.cpp']
|
|
files += ['Src/stdafx.cpp']
|
|
|
|
env['CPPPATH'] += ['Src']
|
|
env['LIBS'] += env.StaticLibrary('common', files)
|