1 #!/usr/bin/env python 2 # 3 # Copyright (c) 2014 The WebRTC 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_webrtc). 15 16 import os 17 import sys 18 19 20 script_dir = os.path.dirname(os.path.realpath(__file__)) 21 checkout_root = os.path.abspath(os.path.join(script_dir, os.pardir, os.pardir)) 22 sys.path.insert(0, os.path.join(checkout_root, 'build')) 23 sys.path.insert(0, os.path.join(checkout_root, 'tools', 'find_depot_tools')) 24 25 26 import vs_toolchain 27 28 29 if __name__ == '__main__': 30 sys.exit(vs_toolchain.main()) 31