summaryrefslogtreecommitdiffstats
path: root/media/webrtc/trunk/tools/gyp/test/self-dependency
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/self-dependency
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/self-dependency')
-rw-r--r--media/webrtc/trunk/tools/gyp/test/self-dependency/common.gypi13
-rw-r--r--media/webrtc/trunk/tools/gyp/test/self-dependency/dep.gyp23
-rwxr-xr-xmedia/webrtc/trunk/tools/gyp/test/self-dependency/gyptest-self-dependency.py19
-rw-r--r--media/webrtc/trunk/tools/gyp/test/self-dependency/self_dependency.gyp15
4 files changed, 70 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/self-dependency/common.gypi b/media/webrtc/trunk/tools/gyp/test/self-dependency/common.gypi
new file mode 100644
index 000000000..aae221a5d
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/self-dependency/common.gypi
@@ -0,0 +1,13 @@
+# 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.
+
+# A common file that other .gyp files include.
+# Makes every target in the project depend on dep.gyp:dep.
+{
+ 'target_defaults': {
+ 'dependencies': [
+ 'dep.gyp:dep',
+ ],
+ },
+}
diff --git a/media/webrtc/trunk/tools/gyp/test/self-dependency/dep.gyp b/media/webrtc/trunk/tools/gyp/test/self-dependency/dep.gyp
new file mode 100644
index 000000000..2b6c9dda8
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/self-dependency/dep.gyp
@@ -0,0 +1,23 @@
+# 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.
+
+# dep.gyp contains a target dep, on which all the targets in the project
+# depend. This means there's a self-dependency of dep on itself, which is
+# pruned by setting prune_self_dependency to 1.
+
+{
+ 'includes': [
+ 'common.gypi',
+ ],
+ 'targets': [
+ {
+ 'target_name': 'dep',
+ 'type': 'none',
+ 'variables': {
+ # Without this GYP will report a cycle in dependency graph.
+ 'prune_self_dependency': 1,
+ },
+ },
+ ],
+}
diff --git a/media/webrtc/trunk/tools/gyp/test/self-dependency/gyptest-self-dependency.py b/media/webrtc/trunk/tools/gyp/test/self-dependency/gyptest-self-dependency.py
new file mode 100755
index 000000000..82fab271c
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/self-dependency/gyptest-self-dependency.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+
+# 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.
+
+"""
+Verify that pulling in a dependency a second time in a conditional works for
+shared_library targets. Regression test for http://crbug.com/122588
+"""
+
+import TestGyp
+
+test = TestGyp.TestGyp()
+
+test.run_gyp('self_dependency.gyp')
+
+# If running gyp worked, all is well.
+test.pass_test()
diff --git a/media/webrtc/trunk/tools/gyp/test/self-dependency/self_dependency.gyp b/media/webrtc/trunk/tools/gyp/test/self-dependency/self_dependency.gyp
new file mode 100644
index 000000000..0ca76c669
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/self-dependency/self_dependency.gyp
@@ -0,0 +1,15 @@
+# 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.
+
+{
+ 'includes': [
+ 'common.gypi',
+ ],
+ 'targets': [
+ {
+ 'target_name': 'a',
+ 'type': 'none',
+ },
+ ],
+}