summaryrefslogtreecommitdiffstats
path: root/media/webrtc/trunk/tools/gyp/test/link-objects
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /media/webrtc/trunk/tools/gyp/test/link-objects
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-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/link-objects')
-rw-r--r--media/webrtc/trunk/tools/gyp/test/link-objects/base.c6
-rw-r--r--media/webrtc/trunk/tools/gyp/test/link-objects/extra.c5
-rwxr-xr-xmedia/webrtc/trunk/tools/gyp/test/link-objects/gyptest-all.py28
-rw-r--r--media/webrtc/trunk/tools/gyp/test/link-objects/link-objects.gyp24
4 files changed, 63 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/link-objects/base.c b/media/webrtc/trunk/tools/gyp/test/link-objects/base.c
new file mode 100644
index 000000000..332745920
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/link-objects/base.c
@@ -0,0 +1,6 @@
+void extra();
+
+int main(void) {
+ extra();
+ return 0;
+}
diff --git a/media/webrtc/trunk/tools/gyp/test/link-objects/extra.c b/media/webrtc/trunk/tools/gyp/test/link-objects/extra.c
new file mode 100644
index 000000000..1d7ee09b1
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/link-objects/extra.c
@@ -0,0 +1,5 @@
+#include <stdio.h>
+
+void extra() {
+ printf("PASS\n");
+}
diff --git a/media/webrtc/trunk/tools/gyp/test/link-objects/gyptest-all.py b/media/webrtc/trunk/tools/gyp/test/link-objects/gyptest-all.py
new file mode 100755
index 000000000..45bd6e189
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/link-objects/gyptest-all.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2011 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.
+
+"""
+Put an object file on the sources list.
+Expect the result to link ok.
+"""
+
+import TestGyp
+
+import sys
+
+if sys.platform != 'darwin':
+ # Currently only works under the linux make build.
+ test = TestGyp.TestGyp(formats=['make'])
+
+ test.run_gyp('link-objects.gyp')
+
+ test.build('link-objects.gyp', test.ALL)
+
+ test.run_built_executable('link-objects', stdout="PASS\n")
+
+ test.up_to_date('link-objects.gyp', test.ALL)
+
+ test.pass_test()
diff --git a/media/webrtc/trunk/tools/gyp/test/link-objects/link-objects.gyp b/media/webrtc/trunk/tools/gyp/test/link-objects/link-objects.gyp
new file mode 100644
index 000000000..ab7285553
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/link-objects/link-objects.gyp
@@ -0,0 +1,24 @@
+# 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': 'link-objects',
+ 'type': 'executable',
+ 'actions': [
+ {
+ 'action_name': 'build extra object',
+ 'inputs': ['extra.c'],
+ 'outputs': ['extra.o'],
+ 'action': ['gcc', '-o', 'extra.o', '-c', 'extra.c'],
+ 'process_outputs_as_sources': 1,
+ },
+ ],
+ 'sources': [
+ 'base.c',
+ ],
+ },
+ ],
+}