summaryrefslogtreecommitdiff
path: root/other-licenses/gyp-deps/tools/gyp/test/win/gyptest-cl-compile-as-winrt.py
diff options
context:
space:
mode:
Diffstat (limited to 'other-licenses/gyp-deps/tools/gyp/test/win/gyptest-cl-compile-as-winrt.py')
-rw-r--r--other-licenses/gyp-deps/tools/gyp/test/win/gyptest-cl-compile-as-winrt.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/other-licenses/gyp-deps/tools/gyp/test/win/gyptest-cl-compile-as-winrt.py b/other-licenses/gyp-deps/tools/gyp/test/win/gyptest-cl-compile-as-winrt.py
new file mode 100644
index 000000000..3e0168b67
--- /dev/null
+++ b/other-licenses/gyp-deps/tools/gyp/test/win/gyptest-cl-compile-as-winrt.py
@@ -0,0 +1,20 @@
+# Copyright (c) 2016 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import TestGyp
+
+import os
+import sys
+
+if (sys.platform == 'win32' and
+ int(os.environ.get('GYP_MSVS_VERSION', 0)) >= 2015):
+ test = TestGyp.TestGyp(formats=['msvs'])
+
+ CHDIR = 'compiler-flags'
+
+ test.run_gyp('compile-as-winrt.gyp', chdir=CHDIR)
+
+ test.build('compile-as-winrt.gyp', 'test-compile-as-winrt', chdir=CHDIR)
+
+ test.pass_test() \ No newline at end of file