1*4e366538SXin Li#!/usr/bin/env vpython3 2*4e366538SXin Li 3*4e366538SXin Li# Copyright 2014 The LibYuv Project Authors. All rights reserved. 4*4e366538SXin Li# 5*4e366538SXin Li# Use of this source code is governed by a BSD-style license 6*4e366538SXin Li# that can be found in the LICENSE file in the root of the source 7*4e366538SXin Li# tree. An additional intellectual property rights grant can be found 8*4e366538SXin Li# in the file PATENTS. All contributing project authors may 9*4e366538SXin Li# be found in the AUTHORS file in the root of the source tree. 10*4e366538SXin Li 11*4e366538SXin Li# This script is used to run the vs_toolchain.py script to download the 12*4e366538SXin Li# Visual Studio toolchain. It's just a temporary measure while waiting for the 13*4e366538SXin Li# Chrome team to move find_depot_tools into src/build to get rid of these 14*4e366538SXin Li# workarounds (similar one in gyp_libyuv). 15*4e366538SXin Li 16*4e366538SXin Liimport os 17*4e366538SXin Liimport sys 18*4e366538SXin Li 19*4e366538SXin Li 20*4e366538SXin Licheckout_root = os.path.dirname(os.path.realpath(__file__)) 21*4e366538SXin Lisys.path.insert(0, os.path.join(checkout_root, 'build')) 22*4e366538SXin Lisys.path.insert(0, os.path.join(checkout_root, 'tools', 'find_depot_tools')) 23*4e366538SXin Li 24*4e366538SXin Li 25*4e366538SXin Liimport vs_toolchain # pylint: disable=wrong-import-position 26*4e366538SXin Li 27*4e366538SXin Li 28*4e366538SXin Liif __name__ == '__main__': 29*4e366538SXin Li sys.exit(vs_toolchain.main()) 30