Linux: Call the install-debian-sysroot scripts directly instead of via a wrapper, now that the scripts on no longer internal.

BUG=246404

Review URL: https://chromiumcodereview.appspot.com/16507016

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205918 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
thestig@chromium.org 2013-06-12 20:33:54 +00:00
Родитель 5bab7e0c61
Коммит ad09b4d085
1 изменённых файлов: 0 добавлений и 45 удалений

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

@ -1,45 +0,0 @@
#!/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())