summaryrefslogtreecommitdiff
path: root/deps/gyp/test/win/vs-macros
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/win/vs-macros')
-rw-r--r--deps/gyp/test/win/vs-macros/as.py18
-rw-r--r--deps/gyp/test/win/vs-macros/containing-gyp.gyp39
-rw-r--r--deps/gyp/test/win/vs-macros/do_stuff.py8
-rw-r--r--deps/gyp/test/win/vs-macros/hello.cc7
-rw-r--r--deps/gyp/test/win/vs-macros/input-output-macros.gyp32
-rw-r--r--deps/gyp/test/win/vs-macros/input.S0
-rw-r--r--deps/gyp/test/win/vs-macros/projectname.gyp29
-rw-r--r--deps/gyp/test/win/vs-macros/stuff.blah1
-rw-r--r--deps/gyp/test/win/vs-macros/targetext.gyp59
-rw-r--r--deps/gyp/test/win/vs-macros/targetfilename.gyp59
-rw-r--r--deps/gyp/test/win/vs-macros/targetname.gyp52
-rw-r--r--deps/gyp/test/win/vs-macros/targetpath.gyp59
-rw-r--r--deps/gyp/test/win/vs-macros/test_exists.py10
-rw-r--r--deps/gyp/test/win/vs-macros/vcinstalldir.gyp41
14 files changed, 0 insertions, 414 deletions
diff --git a/deps/gyp/test/win/vs-macros/as.py b/deps/gyp/test/win/vs-macros/as.py
deleted file mode 100644
index e0bc3ae6f3..0000000000
--- a/deps/gyp/test/win/vs-macros/as.py
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2012 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.
-
-from optparse import OptionParser
-
-parser = OptionParser()
-parser.add_option('-a', dest='platform')
-parser.add_option('-o', dest='output')
-parser.add_option('-p', dest='path')
-(options, args) = parser.parse_args()
-
-f = open(options.output, 'w')
-print >>f, 'options', options
-print >>f, 'args', args
-f.close()
diff --git a/deps/gyp/test/win/vs-macros/containing-gyp.gyp b/deps/gyp/test/win/vs-macros/containing-gyp.gyp
deleted file mode 100644
index c07b639ff1..0000000000
--- a/deps/gyp/test/win/vs-macros/containing-gyp.gyp
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright (c) 2012 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.
-
-{
- 'targets': [
- {
- 'target_name': 'test_expansions',
- 'msvs_cygwin_shell': 0,
- 'type': 'none',
- 'rules': [
- {
- 'rule_name': 'assembler (gnu-compatible)',
- 'msvs_cygwin_shell': 0,
- 'msvs_quote_cmd': 0,
- 'extension': 'S',
- 'inputs': [
- 'as.py',
- ],
- 'outputs': [
- '$(IntDir)/$(InputName).obj',
- ],
- 'action':
- ['python',
- 'as.py',
- '-a', '$(PlatformName)',
- '-o', '$(IntDir)/$(InputName).obj',
- '-p', '<(DEPTH)',
- '$(InputPath)'],
- 'message': 'Building assembly language file $(InputPath)',
- 'process_outputs_as_sources': 1,
- },
- ],
- 'sources': [
- 'input.S',
- ],
- },
- ]
-}
diff --git a/deps/gyp/test/win/vs-macros/do_stuff.py b/deps/gyp/test/win/vs-macros/do_stuff.py
deleted file mode 100644
index 4669d3139b..0000000000
--- a/deps/gyp/test/win/vs-macros/do_stuff.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# Copyright (c) 2012 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 sys
-
-input = open(sys.argv[1], "r").read()
-open(sys.argv[2], "w").write(input + "Modified.")
diff --git a/deps/gyp/test/win/vs-macros/hello.cc b/deps/gyp/test/win/vs-macros/hello.cc
deleted file mode 100644
index 1711567ef5..0000000000
--- a/deps/gyp/test/win/vs-macros/hello.cc
+++ /dev/null
@@ -1,7 +0,0 @@
-// Copyright (c) 2012 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.
-
-int main() {
- return 0;
-}
diff --git a/deps/gyp/test/win/vs-macros/input-output-macros.gyp b/deps/gyp/test/win/vs-macros/input-output-macros.gyp
deleted file mode 100644
index b4520f8cb8..0000000000
--- a/deps/gyp/test/win/vs-macros/input-output-macros.gyp
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright (c) 2012 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.
-
-{
- 'targets': [
- {
- 'target_name': 'test_expansions',
- 'msvs_cygwin_shell': 0,
- 'type': 'none',
- 'rules': [
- {
- 'rule_name': 'generate_file',
- 'extension': 'blah',
- 'inputs': [
- 'do_stuff.py',
- ],
- 'outputs': [
- '$(OutDir)\\<(RULE_INPUT_NAME).something',
- ],
- 'action': ['python',
- 'do_stuff.py',
- '<(RULE_INPUT_PATH)',
- '$(OutDir)\\<(RULE_INPUT_NAME).something',],
- },
- ],
- 'sources': [
- 'stuff.blah',
- ],
- },
- ]
-}
diff --git a/deps/gyp/test/win/vs-macros/input.S b/deps/gyp/test/win/vs-macros/input.S
deleted file mode 100644
index e69de29bb2..0000000000
--- a/deps/gyp/test/win/vs-macros/input.S
+++ /dev/null
diff --git a/deps/gyp/test/win/vs-macros/projectname.gyp b/deps/gyp/test/win/vs-macros/projectname.gyp
deleted file mode 100644
index 625a177643..0000000000
--- a/deps/gyp/test/win/vs-macros/projectname.gyp
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright (c) 2012 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.
-
-{
- 'targets': [
- {
- 'target_name': 'test_expansions',
- 'type': 'executable',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(OutDir)\\$(ProjectName)_plus_something.exe',
- },
- },
- },
- {
- 'target_name': 'test_with_product_name',
- 'product_name': 'prod_name',
- 'type': 'executable',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(OutDir)\\$(ProjectName)_plus_something.exe',
- },
- },
- },
- ]
-}
diff --git a/deps/gyp/test/win/vs-macros/stuff.blah b/deps/gyp/test/win/vs-macros/stuff.blah
deleted file mode 100644
index d438b4a787..0000000000
--- a/deps/gyp/test/win/vs-macros/stuff.blah
+++ /dev/null
@@ -1 +0,0 @@
-Random data file.
diff --git a/deps/gyp/test/win/vs-macros/targetext.gyp b/deps/gyp/test/win/vs-macros/targetext.gyp
deleted file mode 100644
index 11f580e4a6..0000000000
--- a/deps/gyp/test/win/vs-macros/targetext.gyp
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright (c) 2014 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.
-
-{
- 'targets': [
- {
- 'target_name': 'test_targetext_executable',
- 'type': 'executable',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetDir)\\executable$(TargetExt)',
- },
- },
- },
- {
- 'target_name': 'test_targetext_loadable_module',
- 'type': 'loadable_module',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetDir)\\loadable_module$(TargetExt)',
- },
- },
- },
- {
- 'target_name': 'test_targetext_shared_library',
- 'type': 'shared_library',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetDir)\\shared_library$(TargetExt)',
- },
- },
- },
- {
- 'target_name': 'test_targetext_static_library',
- 'type': 'static_library',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLibrarianTool': {
- 'OutputFile': '$(TargetDir)\\static_library$(TargetExt)',
- },
- },
- },
- {
- 'target_name': 'test_targetext_product_extension',
- 'type': 'executable',
- 'sources': ['hello.cc'],
- 'product_extension': 'library',
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetDir)\\product_extension$(TargetExt)',
- },
- },
- },
- ]
-}
diff --git a/deps/gyp/test/win/vs-macros/targetfilename.gyp b/deps/gyp/test/win/vs-macros/targetfilename.gyp
deleted file mode 100644
index 8287320278..0000000000
--- a/deps/gyp/test/win/vs-macros/targetfilename.gyp
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright (c) 2014 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.
-
-{
- 'targets': [
- {
- 'target_name': 'test_targetfilename_executable',
- 'type': 'executable',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetDir)\\$(TargetFileName)',
- },
- },
- },
- {
- 'target_name': 'test_targetfilename_loadable_module',
- 'type': 'loadable_module',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetDir)\\$(TargetFileName)',
- },
- },
- },
- {
- 'target_name': 'test_targetfilename_shared_library',
- 'type': 'loadable_module',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetDir)\\$(TargetFileName)',
- },
- },
- },
- {
- 'target_name': 'test_targetfilename_static_library',
- 'type': 'static_library',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLibrarianTool': {
- 'OutputFile': '$(TargetDir)\\$(TargetFileName)',
- },
- },
- },
- {
- 'target_name': 'test_targetfilename_product_extension',
- 'type': 'executable',
- 'sources': ['hello.cc'],
- 'product_extension': 'foo',
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetDir)\\$(TargetFileName)',
- },
- },
- },
- ]
-}
diff --git a/deps/gyp/test/win/vs-macros/targetname.gyp b/deps/gyp/test/win/vs-macros/targetname.gyp
deleted file mode 100644
index a53d3c0aa3..0000000000
--- a/deps/gyp/test/win/vs-macros/targetname.gyp
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright (c) 2013 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.
-
-{
- 'targets': [
- {
- 'target_name': 'test_targetname',
- 'type': 'executable',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetDir)\\$(TargetName)_plus_something1.exe',
- },
- },
- },
- {
- 'target_name': 'test_targetname_with_prefix',
- 'product_prefix': 'prod_prefix',
- 'type': 'executable',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetDir)\\$(TargetName)_plus_something2.exe',
- },
- },
- },
- {
- 'target_name': 'test_targetname_with_prodname',
- 'product_name': 'prod_name',
- 'type': 'executable',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetDir)\\$(TargetName)_plus_something3.exe',
- },
- },
- },
- {
- 'target_name': 'test_targetname_with_prodname_with_prefix',
- 'product_name': 'prod_name',
- 'product_prefix': 'prod_prefix',
- 'type': 'executable',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetDir)\\$(TargetName)_plus_something4.exe',
- },
- },
- },
- ]
-}
diff --git a/deps/gyp/test/win/vs-macros/targetpath.gyp b/deps/gyp/test/win/vs-macros/targetpath.gyp
deleted file mode 100644
index a8699ffb25..0000000000
--- a/deps/gyp/test/win/vs-macros/targetpath.gyp
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright (c) 2014 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.
-
-{
- 'targets': [
- {
- 'target_name': 'test_targetpath_executable',
- 'type': 'executable',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetPath)',
- },
- },
- },
- {
- 'target_name': 'test_targetpath_loadable_module',
- 'type': 'loadable_module',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetPath)',
- },
- },
- },
- {
- 'target_name': 'test_targetpath_shared_library',
- 'type': 'loadable_module',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetPath)',
- },
- },
- },
- {
- 'target_name': 'test_targetpath_static_library',
- 'type': 'static_library',
- 'sources': ['hello.cc'],
- 'msvs_settings': {
- 'VCLibrarianTool': {
- 'OutputFile': '$(TargetPath)',
- },
- },
- },
- {
- 'target_name': 'test_targetpath_product_extension',
- 'type': 'executable',
- 'sources': ['hello.cc'],
- 'product_extension': 'foo',
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'OutputFile': '$(TargetPath)',
- },
- },
- },
- ]
-}
diff --git a/deps/gyp/test/win/vs-macros/test_exists.py b/deps/gyp/test/win/vs-macros/test_exists.py
deleted file mode 100644
index f5c90ad6f2..0000000000
--- a/deps/gyp/test/win/vs-macros/test_exists.py
+++ /dev/null
@@ -1,10 +0,0 @@
-# Copyright (c) 2012 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 os
-import sys
-
-if not os.path.exists(sys.argv[1]):
- raise
-open(sys.argv[2], 'w').close()
diff --git a/deps/gyp/test/win/vs-macros/vcinstalldir.gyp b/deps/gyp/test/win/vs-macros/vcinstalldir.gyp
deleted file mode 100644
index 3763a4eb18..0000000000
--- a/deps/gyp/test/win/vs-macros/vcinstalldir.gyp
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright (c) 2012 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.
-
-{
- 'targets': [
- {
- 'target_name': 'test_slash_trailing',
- 'type': 'none',
- 'msvs_cygwin_shell': '0',
- 'actions': [
- {
- 'action_name': 'root',
- 'inputs': [],
- 'outputs': ['out1'],
- 'action': ['python', 'test_exists.py', '$(VCInstallDir)', 'out1']
- },
- ],
- },
- {
- 'target_name': 'test_slash_dir',
- 'type': 'none',
- 'msvs_cygwin_shell': '0',
- 'actions': [
- {
- 'action_name': 'bin',
- 'inputs': [],
- 'outputs': ['out2'],
- 'action': ['python', 'test_exists.py', '$(VCInstallDir)bin', 'out2'],
- },
- {
- 'action_name': 'compiler',
- 'inputs': [],
- 'outputs': ['out3'],
- 'action': [
- 'python', 'test_exists.py', '$(VCInstallDir)bin\\cl.exe', 'out3'],
- },
- ],
- },
- ]
-}