download_vs_toolchain.py 982 B

1234567891011121314151617181920212223242526272829
  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. # This script is used to run the vs_toolchain.py script to download the
  11. # Visual Studio toolchain. It's just a temporary measure while waiting for the
  12. # Chrome team to move find_depot_tools into src/build to get rid of these
  13. # workarounds (similar one in gyp_libyuv).
  14. import os
  15. import sys
  16. checkout_root = os.path.dirname(os.path.realpath(__file__))
  17. sys.path.insert(0, os.path.join(checkout_root, 'build'))
  18. sys.path.insert(0, os.path.join(checkout_root, 'tools', 'find_depot_tools'))
  19. import vs_toolchain
  20. if __name__ == '__main__':
  21. sys.exit(vs_toolchain.main())