diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /media/webrtc/trunk/tools/gyp/test/same-source-file-name/src | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/same-source-file-name/src')
10 files changed, 168 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/all.gyp b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/all.gyp new file mode 100644 index 000000000..4fe052c66 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/all.gyp @@ -0,0 +1,30 @@ +# 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': 'prog1', + 'type': 'executable', + 'defines': [ + 'PROG="prog1"', + ], + 'sources': [ + 'prog1.c', + 'func.c', + ], + }, + { + 'target_name': 'prog2', + 'type': 'executable', + 'defines': [ + 'PROG="prog2"', + ], + 'sources': [ + 'prog2.c', + 'func.c', + ], + }, + ], +} diff --git a/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/double-executable.gyp b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/double-executable.gyp new file mode 100644 index 000000000..477bd87e0 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/double-executable.gyp @@ -0,0 +1,21 @@ +# 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': 'prog3', + 'type': 'executable', + 'sources': [ + 'prog3.c', + 'func.c', + 'subdir1/func.c', + 'subdir2/func.c', + ], + 'defines': [ + 'PROG="prog3"', + ], + }, + ], +} diff --git a/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/double-shared.gyp b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/double-shared.gyp new file mode 100644 index 000000000..438b50f3f --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/double-shared.gyp @@ -0,0 +1,27 @@ +# 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': 'lib', + 'product_name': 'test_shared_lib', + 'type': 'shared_library', + 'sources': [ + 'prog2.c', + 'func.c', + 'subdir1/func.c', + 'subdir2/func.c', + ], + 'defines': [ + 'PROG="prog2"', + ], + 'conditions': [ + ['OS=="linux"', { + 'cflags': ['-fPIC'], + }], + ], + }, + ], +} diff --git a/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/double-static.gyp b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/double-static.gyp new file mode 100644 index 000000000..e49c0e125 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/double-static.gyp @@ -0,0 +1,22 @@ +# 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': 'lib', + 'product_name': 'test_static_lib', + 'type': 'static_library', + 'sources': [ + 'prog1.c', + 'func.c', + 'subdir1/func.c', + 'subdir2/func.c', + ], + 'defines': [ + 'PROG="prog1"', + ], + }, + ], +} diff --git a/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/func.c b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/func.c new file mode 100644 index 000000000..e069c692a --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/func.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +void func(void) +{ + printf("Hello %s from func.c\n", PROG); +} diff --git a/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/prog1.c b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/prog1.c new file mode 100644 index 000000000..604e2b9c9 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/prog1.c @@ -0,0 +1,16 @@ +#include <stdio.h> + +extern void func(void); + +int main(void) +{ + printf("Hello from prog1.c\n"); + func(); + /* + * Uncomment to test same-named files in different directories, + * which Visual Studio doesn't support. + subdir1_func(); + subdir2_func(); + */ + return 0; +} diff --git a/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/prog2.c b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/prog2.c new file mode 100644 index 000000000..466ee3500 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/prog2.c @@ -0,0 +1,16 @@ +#include <stdio.h> + +extern void func(void); + +int main(void) +{ + printf("Hello from prog2.c\n"); + func(); + /* + * Uncomment to test same-named files in different directories, + * which Visual Studio doesn't support. + subdir1_func(); + subdir2_func(); + */ + return 0; +} diff --git a/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/prog3.c b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/prog3.c new file mode 100644 index 000000000..34d495ce0 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/prog3.c @@ -0,0 +1,18 @@ +// 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> + +extern void func(void); +extern void subdir1_func(void); +extern void subdir2_func(void); + +int main(void) +{ + printf("Hello from prog3.c\n"); + func(); + subdir1_func(); + subdir2_func(); + return 0; +} diff --git a/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/subdir1/func.c b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/subdir1/func.c new file mode 100644 index 000000000..b73450d10 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/subdir1/func.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +void subdir1_func(void) +{ + printf("Hello %s from subdir1/func.c\n", PROG); +} diff --git a/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/subdir2/func.c b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/subdir2/func.c new file mode 100644 index 000000000..0248b5720 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/same-source-file-name/src/subdir2/func.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +void subdir2_func(void) +{ + printf("Hello %s from subdir2/func.c\n", PROG); +} |