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