forked from cory/tildefriends
raspi fixes. Sigh.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3367 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
d75f276b86
commit
86ee9b1829
15
SConstruct
15
SConstruct
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
import platform
|
||||
import sys
|
||||
|
||||
options = Variables('options.cache', ARGUMENTS)
|
||||
@ -29,6 +30,18 @@ env.Append(CPPPATH=[
|
||||
])
|
||||
|
||||
objectSuffix = '.obj' if sys.platform == 'win32' else '.o'
|
||||
raspi = platform.machine() == 'armv7l'
|
||||
if raspi:
|
||||
libObjects += [
|
||||
os.path.join(v8, 'out', 'arm.release', 'obj.target', 'src', 'libv8_libplatform.a'),
|
||||
os.path.join(v8, 'out', 'arm.release', 'obj.target', 'src', 'libv8_base.a'),
|
||||
os.path.join(v8, 'out', 'arm.release', 'obj.target', 'src', 'libv8_libbase.a'),
|
||||
os.path.join(v8, 'out', 'arm.release', 'obj.target', 'src', 'libv8_libsampler.a'),
|
||||
os.path.join(v8, 'out', 'arm.release', 'obj.target', 'src', 'libv8_nosnapshot.a'),
|
||||
os.path.join(v8, 'out', 'arm.release', 'obj.target', 'third_party', 'icu', 'libicui18n.a'),
|
||||
os.path.join(v8, 'out', 'arm.release', 'obj.target', 'third_party', 'icu', 'libicuuc.a'),
|
||||
]
|
||||
else:
|
||||
libObjects += Glob(os.path.join(v8, 'out', 'obj', 'v8_base', '*' + objectSuffix))
|
||||
libObjects += Glob(os.path.join(v8, 'out', 'obj', 'v8_libbase', '*' + objectSuffix))
|
||||
libObjects += Glob(os.path.join(v8, 'out', 'obj', 'v8_libsampler', '*' + objectSuffix))
|
||||
@ -62,7 +75,7 @@ else:
|
||||
os.path.join(uv, 'out/Debug/obj.target'),
|
||||
])
|
||||
|
||||
env.Command('icudtl.dat', os.path.join(v8, 'out/icudtl.dat'), Copy("$TARGET", "$SOURCE"))
|
||||
env.Command('icudtl.dat', os.path.join(v8, 'out/arm.release/icudtl.dat' if raspi else 'out/icudtl.dat'), Copy("$TARGET", "$SOURCE"))
|
||||
|
||||
ldapEnv = env.Clone()
|
||||
if sys.platform == 'win32':
|
||||
|
Loading…
Reference in New Issue
Block a user