blob: b7b86a2014ec3824b973056b19b4ed0686ec8068 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#!/usr/bin/env python
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This wrapper script runs the Debian sysroot installation scripts, if they
# exist.
#
# The script is a no-op except for linux users who have the following in their
# GYP_DEFINES:
#
# * branding=Chrome
# * buildtype=Official
#
# and not:
#
# * chromeos=1
import os.path
import subprocess
import sys
def main():
if sys.platform != 'linux2':
return 0
SRC_DIR = os.path.dirname(os.path.dirname(os.path.dirname(
os.path.realpath(__file__))))
SCRIPT_FILE = os.path.join(SRC_DIR,
'chrome',
'installer',
'linux',
'sysroot_scripts',
'install-debian.wheezy.sysroot.py')
if os.path.exists(SCRIPT_FILE):
ret = subprocess.call([SCRIPT_FILE, '--linux-only', '--arch=amd64'])
if ret != 0:
return ret
ret = subprocess.call([SCRIPT_FILE, '--linux-only', '--arch=i386'])
if ret != 0:
return ret
return 0
if __name__ == '__main__':
sys.exit(main())
|