From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../tools/gyp/test/self-dependency/common.gypi | 13 ++++++++++++ .../trunk/tools/gyp/test/self-dependency/dep.gyp | 23 ++++++++++++++++++++++ .../self-dependency/gyptest-self-dependency.py | 19 ++++++++++++++++++ .../gyp/test/self-dependency/self_dependency.gyp | 15 ++++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 media/webrtc/trunk/tools/gyp/test/self-dependency/common.gypi create mode 100644 media/webrtc/trunk/tools/gyp/test/self-dependency/dep.gyp create mode 100755 media/webrtc/trunk/tools/gyp/test/self-dependency/gyptest-self-dependency.py create mode 100644 media/webrtc/trunk/tools/gyp/test/self-dependency/self_dependency.gyp (limited to 'media/webrtc/trunk/tools/gyp/test/self-dependency') 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', + }, + ], +} -- cgit v1.2.3