Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(748)

Unified Diff: webrtc/build/find_directx_sdk.py

Issue 2509703002: Remove all references to GYP (Closed)
Patch Set: Rebased Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/build/filename_rules.gypi ('k') | webrtc/build/gyp_webrtc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/build/find_directx_sdk.py
diff --git a/webrtc/build/find_directx_sdk.py b/webrtc/build/find_directx_sdk.py
deleted file mode 100644
index aadd55bd680efd88ccb7ab4dd6c8624af8b226e2..0000000000000000000000000000000000000000
--- a/webrtc/build/find_directx_sdk.py
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
-#
-# Use of this source code is governed by a BSD-style license
-# that can be found in the LICENSE file in the root of the source
-# tree. An additional intellectual property rights grant can be found
-# in the file PATENTS. All contributing project authors may
-# be found in the AUTHORS file in the root of the source tree.
-
-"""Searches for DirectX SDK installation and prints full path to it."""
-
-import os
-import subprocess
-import sys
-
-
-def main():
- sys.stdout.write(FindDirectXInstallation())
- return 0
-
-
-def FindDirectXInstallation():
- """Try to find an installation location for the DirectX SDK. Check for the
- standard environment variable, and if that doesn't exist, try to find
- via the registry. Returns empty string if not found in either location."""
-
- dxsdk_dir = os.environ.get('DXSDK_DIR')
- if dxsdk_dir:
- return dxsdk_dir
-
- # Setup params to pass to and attempt to launch reg.exe.
- cmd = ['reg.exe', 'query', r'HKLM\Software\Microsoft\DirectX', '/s']
- p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- for line in p.communicate()[0].splitlines():
- if 'InstallPath' in line:
- return line.split(' ')[3] + "\\"
-
- return ''
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « webrtc/build/filename_rules.gypi ('k') | webrtc/build/gyp_webrtc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698