diff options
Diffstat (limited to 'deps/gyp/test/library/src')
-rw-r--r-- | deps/gyp/test/library/src/lib1.c | 10 | ||||
-rw-r--r-- | deps/gyp/test/library/src/lib1_moveable.c | 10 | ||||
-rw-r--r-- | deps/gyp/test/library/src/lib2.c | 10 | ||||
-rw-r--r-- | deps/gyp/test/library/src/lib2_moveable.c | 10 | ||||
-rw-r--r-- | deps/gyp/test/library/src/library.gyp | 58 | ||||
-rw-r--r-- | deps/gyp/test/library/src/program.c | 15 | ||||
-rw-r--r-- | deps/gyp/test/library/src/shared_dependency.gyp | 33 |
7 files changed, 0 insertions, 146 deletions
diff --git a/deps/gyp/test/library/src/lib1.c b/deps/gyp/test/library/src/lib1.c deleted file mode 100644 index 3866b1b845..0000000000 --- a/deps/gyp/test/library/src/lib1.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <stdio.h> - -#ifdef _WIN32 -__declspec(dllexport) -#endif -void lib1_function(void) -{ - fprintf(stdout, "Hello from lib1.c\n"); - fflush(stdout); -} diff --git a/deps/gyp/test/library/src/lib1_moveable.c b/deps/gyp/test/library/src/lib1_moveable.c deleted file mode 100644 index 5d3cc1d9aa..0000000000 --- a/deps/gyp/test/library/src/lib1_moveable.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <stdio.h> - -#ifdef _WIN32 -__declspec(dllexport) -#endif -void moveable_function(void) -{ - fprintf(stdout, "Hello from lib1_moveable.c\n"); - fflush(stdout); -} diff --git a/deps/gyp/test/library/src/lib2.c b/deps/gyp/test/library/src/lib2.c deleted file mode 100644 index 21dda72653..0000000000 --- a/deps/gyp/test/library/src/lib2.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <stdio.h> - -#ifdef _WIN32 -__declspec(dllexport) -#endif -void lib2_function(void) -{ - fprintf(stdout, "Hello from lib2.c\n"); - fflush(stdout); -} diff --git a/deps/gyp/test/library/src/lib2_moveable.c b/deps/gyp/test/library/src/lib2_moveable.c deleted file mode 100644 index f645071d1e..0000000000 --- a/deps/gyp/test/library/src/lib2_moveable.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <stdio.h> - -#ifdef _WIN32 -__declspec(dllexport) -#endif -void moveable_function(void) -{ - fprintf(stdout, "Hello from lib2_moveable.c\n"); - fflush(stdout); -} diff --git a/deps/gyp/test/library/src/library.gyp b/deps/gyp/test/library/src/library.gyp deleted file mode 100644 index bc35516426..0000000000 --- a/deps/gyp/test/library/src/library.gyp +++ /dev/null @@ -1,58 +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. - -{ - 'variables': { - 'moveable_function%': 0, - }, - 'targets': [ - { - 'target_name': 'program', - 'type': 'executable', - 'dependencies': [ - 'lib1', - 'lib2', - ], - 'sources': [ - 'program.c', - ], - }, - { - 'target_name': 'lib1', - 'type': '<(library)', - 'sources': [ - 'lib1.c', - ], - 'conditions': [ - ['moveable_function=="lib1"', { - 'sources': [ - 'lib1_moveable.c', - ], - }], - ], - }, - { - 'target_name': 'lib2', - 'type': '<(library)', - 'sources': [ - 'lib2.c', - ], - 'conditions': [ - ['moveable_function=="lib2"', { - 'sources': [ - 'lib2_moveable.c', - ], - }], - ], - }, - ], - 'conditions': [ - ['OS=="linux"', { - 'target_defaults': { - # Support 64-bit shared libs (also works fine for 32-bit). - 'cflags': ['-fPIC'], - }, - }], - ], -} diff --git a/deps/gyp/test/library/src/program.c b/deps/gyp/test/library/src/program.c deleted file mode 100644 index d460f60e40..0000000000 --- a/deps/gyp/test/library/src/program.c +++ /dev/null @@ -1,15 +0,0 @@ -#include <stdio.h> - -extern void lib1_function(void); -extern void lib2_function(void); -extern void moveable_function(void); - -int main(void) -{ - fprintf(stdout, "Hello from program.c\n"); - fflush(stdout); - lib1_function(); - lib2_function(); - moveable_function(); - return 0; -} diff --git a/deps/gyp/test/library/src/shared_dependency.gyp b/deps/gyp/test/library/src/shared_dependency.gyp deleted file mode 100644 index 7d29f5de59..0000000000 --- a/deps/gyp/test/library/src/shared_dependency.gyp +++ /dev/null @@ -1,33 +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. - -{ - 'targets': [ - { - 'target_name': 'lib1', - 'type': 'shared_library', - 'sources': [ - 'lib1.c', - ], - }, - { - 'target_name': 'lib2', - 'type': 'shared_library', - 'sources': [ - 'lib2.c', - ], - 'dependencies': [ - 'lib1', - ], - }, - ], - 'conditions': [ - ['OS=="linux"', { - 'target_defaults': { - # Support 64-bit shared libs (also works fine for 32-bit). - 'cflags': ['-fPIC'], - }, - }], - ], -} |