mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 10:09:36 -06:00
No more Binary in svn + scons clean up
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1158 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
27
SConstruct
27
SConstruct
@ -2,6 +2,7 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
import platform
|
||||
|
||||
# Home made tests
|
||||
sys.path.append('SconsTests')
|
||||
@ -213,13 +214,19 @@ if not env['osx64']:
|
||||
# add methods from utils to env
|
||||
env.AddMethod(utils.filterWarnings)
|
||||
|
||||
# output
|
||||
if sys.platform == 'darwin':
|
||||
platform = 'mac'
|
||||
else:
|
||||
platform = 'linux'
|
||||
# Where do we run from
|
||||
env['base_dir'] = os.getcwd()+ '/';
|
||||
|
||||
# install paths
|
||||
# TODO: support global install
|
||||
env['prefix'] = os.path.join(env['base_dir'] + 'Binary', platform.system() + '-' + platform.machine() + '/')
|
||||
#TODO add lib
|
||||
env['plugin_dir'] = env['prefix'] + 'Plugins/'
|
||||
#TODO add bin
|
||||
env['binary_dir'] = env['prefix']
|
||||
#TODO where should this go?
|
||||
env['data_dir'] = env['prefix']
|
||||
|
||||
env['plugin_dir'] = 'Binary/%s/Plugins/' % platform
|
||||
Export('env')
|
||||
|
||||
utils.GenerateRevFile(env['flavor'], "Source/Core/Common/Src/svnrev_template.h",
|
||||
@ -241,3 +248,11 @@ for subdir in dirs:
|
||||
subdir + os.sep + 'SConscript',
|
||||
duplicate = 0
|
||||
)
|
||||
|
||||
# Data install
|
||||
env.Install(env['data_dir'], 'Data/Sys')
|
||||
env.Install(env['data_dir'], 'Data/User')
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
env.Install(env['binary_dir'] + 'Dolphin.app/Contents/Resources/',
|
||||
Source/Core/DolphinWX/resources/Dolphin.icns)
|
||||
|
Reference in New Issue
Block a user