Support building GTK or EFL JavaScriptCore.

This commit is contained in:
David Anderson 2013-02-23 00:43:52 +00:00
Родитель ab963a76bc
Коммит ad8fa462c2
2 изменённых файлов: 18 добавлений и 3 удалений

Просмотреть файл

@ -4,12 +4,21 @@ cpu = x64
machine = 4
updateURL = http://www.arewefastyet.com/????
# for chromebooks:
#flags = hardfp
[v8]
source = v8
[jsc]
source = WebKit
# For later ubuntu releases...
#conf = --gtk
# For earlier ubuntu releases...
#conf = --efl
[jsci]
source = InterpKit

Просмотреть файл

@ -63,6 +63,10 @@ class Nitro(Engine):
super(Nitro, self).__init__(conf)
self.puller = 'svn'
self.source = conf.get('jsc', 'source')
if conf.has_option('jsc', 'conf'):
self.extra = conf.get('jsc', 'conf').split(' ')
else:
self.extra = []
self.args = None
self.important = False # WebKit changes too frequently, we'd need to detect JSC changes.
self.modes = [
@ -78,11 +82,13 @@ class Nitro(Engine):
return env
def build(self):
with Utils.FolderChanger(os.chdir(os.path.join('Tools', 'Scripts'))):
with utils.FolderChanger(os.path.join('Tools', 'Scripts')):
if self.cpu == 'x86':
Run(['/usr/bin/perl', 'build-jsc', '--32-bit'])
args = ['/usr/bin/perl', 'build-jsc', '--32-bit']
else:
Run(['/usr/bin/perl', 'build-jsc'])
args = ['/usr/bin/perl', 'build-jsc']
args.extend(self.extra)
Run(args)
def shell(self):
return os.path.join('WebKitBuild', 'Release', 'jsc')