|
|
|
@ -19,28 +19,21 @@ class NaCl(recipe_util.Recipe):
|
|
|
|
solution = {
|
|
|
|
solution = {
|
|
|
|
'name' : 'native_client',
|
|
|
|
'name' : 'native_client',
|
|
|
|
'url' : url,
|
|
|
|
'url' : url,
|
|
|
|
'deps_file' : '.DEPS.git',
|
|
|
|
'deps_file' : 'DEPS',
|
|
|
|
'managed' : False,
|
|
|
|
'managed' : False,
|
|
|
|
'custom_deps' : {},
|
|
|
|
'custom_deps' : {},
|
|
|
|
'safesync_url': '',
|
|
|
|
'safesync_url': '',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
spec = {
|
|
|
|
spec = {
|
|
|
|
'solutions': [solution],
|
|
|
|
'solutions': [solution],
|
|
|
|
'auto': True
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if props.get('submodule_git_svn_spec'):
|
|
|
|
|
|
|
|
spec['submodule_git_svn_spec'] = props['submodule_git_svn_spec']
|
|
|
|
|
|
|
|
if props.get('target_os'):
|
|
|
|
if props.get('target_os'):
|
|
|
|
spec['target_os'] = props['target_os'].split(',')
|
|
|
|
spec['target_os'] = props['target_os'].split(',')
|
|
|
|
if props.get('target_os_only'):
|
|
|
|
if props.get('target_os_only'):
|
|
|
|
spec['target_os_only'] = props['target_os_only']
|
|
|
|
spec['target_os_only'] = props['target_os_only']
|
|
|
|
checkout_type = 'gclient_git_svn'
|
|
|
|
|
|
|
|
if props.get('nosvn'):
|
|
|
|
|
|
|
|
checkout_type = 'gclient_git'
|
|
|
|
|
|
|
|
spec_type = '%s_spec' % checkout_type
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
'type': checkout_type,
|
|
|
|
'type': 'gclient_git',
|
|
|
|
spec_type: spec,
|
|
|
|
'gclient_git_spec': spec,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
|