diff options
Diffstat (limited to 'deps/gyp/test/external-cross-compile/src')
11 files changed, 0 insertions, 159 deletions
diff --git a/deps/gyp/test/external-cross-compile/src/bogus1.cc b/deps/gyp/test/external-cross-compile/src/bogus1.cc deleted file mode 100644 index 1b8d01199b..0000000000 --- a/deps/gyp/test/external-cross-compile/src/bogus1.cc +++ /dev/null @@ -1 +0,0 @@ -From bogus1.cc diff --git a/deps/gyp/test/external-cross-compile/src/bogus2.c b/deps/gyp/test/external-cross-compile/src/bogus2.c deleted file mode 100644 index cbf4a123c4..0000000000 --- a/deps/gyp/test/external-cross-compile/src/bogus2.c +++ /dev/null @@ -1 +0,0 @@ -From bogus2.c diff --git a/deps/gyp/test/external-cross-compile/src/cross.gyp b/deps/gyp/test/external-cross-compile/src/cross.gyp deleted file mode 100644 index aeda76b5bd..0000000000 --- a/deps/gyp/test/external-cross-compile/src/cross.gyp +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright (c) 2009 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. - -{ - 'includes': ['cross_compile.gypi'], - 'target_defaults': { - 'variables': { - 'nix_lame%': 0, - }, - 'target_conditions': [ - ['nix_lame==1', { - 'sources/': [ - ['exclude', 'lame'], - ], - }], - ], - }, - 'targets': [ - { - 'target_name': 'program', - 'type': 'executable', - 'dependencies': [ - 'program_inc', - ], - 'include_dirs': [ - '<(SHARED_INTERMEDIATE_DIR)', - ], - 'sources': [ - 'program.cc', - ], - }, - { - 'target_name': 'program_inc', - 'type': 'none', - 'dependencies': ['cross_program'], - 'actions': [ - { - 'action_name': 'program_inc', - 'inputs': ['<(SHARED_INTERMEDIATE_DIR)/cross_program.fake'], - 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/cross_program.h'], - 'action': ['python', 'tochar.py', '<@(_inputs)', '<@(_outputs)'], - }, - ], - # Allows the test to run without hermetic cygwin on windows. - 'msvs_cygwin_shell': 0, - }, - { - 'target_name': 'cross_program', - 'type': 'none', - 'variables': { - 'cross': 1, - 'nix_lame': 1, - }, - 'dependencies': ['cross_lib'], - 'sources': [ - 'test1.cc', - 'test2.c', - 'very_lame.cc', - '<(SHARED_INTERMEDIATE_DIR)/cross_lib.fake', - ], - }, - { - 'target_name': 'cross_lib', - 'type': 'none', - 'variables': { - 'cross': 1, - 'nix_lame': 1, - }, - 'sources': [ - 'test3.cc', - 'test4.c', - 'bogus1.cc', - 'bogus2.c', - 'sort_of_lame.cc', - ], - 'sources!': [ - 'bogus1.cc', - 'bogus2.c', - ], - }, - ], -} diff --git a/deps/gyp/test/external-cross-compile/src/cross_compile.gypi b/deps/gyp/test/external-cross-compile/src/cross_compile.gypi deleted file mode 100644 index 36e651903f..0000000000 --- a/deps/gyp/test/external-cross-compile/src/cross_compile.gypi +++ /dev/null @@ -1,23 +0,0 @@ -{ - 'target_defaults': { - 'variables': { - 'cross%': 0, - }, - 'target_conditions': [ - ['cross==1', { - 'actions': [ - { - 'action_name': 'cross compile >(_target_name)', - 'inputs': ['^@(_sources)'], - 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/>(_target_name).fake'], - 'action': [ - 'python', 'fake_cross.py', '>@(_outputs)', '^@(_sources)', - ], - # Allows the test to run without hermetic cygwin on windows. - 'msvs_cygwin_shell': 0, - }, - ], - }], - ], - }, -} diff --git a/deps/gyp/test/external-cross-compile/src/fake_cross.py b/deps/gyp/test/external-cross-compile/src/fake_cross.py deleted file mode 100644 index 05eacc6a63..0000000000 --- a/deps/gyp/test/external-cross-compile/src/fake_cross.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/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. - -import sys - -fh = open(sys.argv[1], 'w') - -filenames = sys.argv[2:] - -for filename in filenames: - subfile = open(filename) - data = subfile.read() - subfile.close() - fh.write(data) - -fh.close() diff --git a/deps/gyp/test/external-cross-compile/src/program.cc b/deps/gyp/test/external-cross-compile/src/program.cc deleted file mode 100644 index 5172ae90fe..0000000000 --- a/deps/gyp/test/external-cross-compile/src/program.cc +++ /dev/null @@ -1,16 +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. - */ - -#include <stdio.h> - -static char data[] = { -#include "cross_program.h" -}; - -int main(void) { - fwrite(data, 1, sizeof(data), stdout); - return 0; -} diff --git a/deps/gyp/test/external-cross-compile/src/test1.cc b/deps/gyp/test/external-cross-compile/src/test1.cc deleted file mode 100644 index b584c31d15..0000000000 --- a/deps/gyp/test/external-cross-compile/src/test1.cc +++ /dev/null @@ -1 +0,0 @@ -From test1.cc diff --git a/deps/gyp/test/external-cross-compile/src/test2.c b/deps/gyp/test/external-cross-compile/src/test2.c deleted file mode 100644 index 367ae19ea0..0000000000 --- a/deps/gyp/test/external-cross-compile/src/test2.c +++ /dev/null @@ -1 +0,0 @@ -From test2.c diff --git a/deps/gyp/test/external-cross-compile/src/test3.cc b/deps/gyp/test/external-cross-compile/src/test3.cc deleted file mode 100644 index 9eb64735b8..0000000000 --- a/deps/gyp/test/external-cross-compile/src/test3.cc +++ /dev/null @@ -1 +0,0 @@ -From test3.cc diff --git a/deps/gyp/test/external-cross-compile/src/test4.c b/deps/gyp/test/external-cross-compile/src/test4.c deleted file mode 100644 index 8ecc33ec16..0000000000 --- a/deps/gyp/test/external-cross-compile/src/test4.c +++ /dev/null @@ -1 +0,0 @@ -From test4.c diff --git a/deps/gyp/test/external-cross-compile/src/tochar.py b/deps/gyp/test/external-cross-compile/src/tochar.py deleted file mode 100644 index c0780d984f..0000000000 --- a/deps/gyp/test/external-cross-compile/src/tochar.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/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. - -import sys - -src = open(sys.argv[1]) -dst = open(sys.argv[2], 'w') -for ch in src.read(): - dst.write('%d,\n' % ord(ch)) -src.close() -dst.close() |