summaryrefslogtreecommitdiffstats
path: root/media/webrtc/trunk/tools/gyp/test/xcode-ninja
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/xcode-ninja
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/xcode-ninja')
-rw-r--r--media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/gyptest-all.py49
-rw-r--r--media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/hello.cpp7
-rw-r--r--media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/hello_exclude.gyp19
-rw-r--r--media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/hello_excluded.cpp7
4 files changed, 82 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/gyptest-all.py b/media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/gyptest-all.py
new file mode 100644
index 000000000..2d6378a7a
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/gyptest-all.py
@@ -0,0 +1,49 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""
+Verifies that excluded files are listed in sources_for_indexing.xcodeproj by
+default, and that the generator flag xcode_ninja_list_excluded_files can be
+used to override the default behavior.
+"""
+
+import os
+import TestGyp
+
+
+test = TestGyp.TestGyp()
+
+if test.format != 'xcode-ninja':
+ test.skip_test()
+
+
+# With the generator flag not set.
+test.run_gyp('hello_exclude.gyp')
+test.must_contain(
+ 'sources_for_indexing.xcodeproj/project.pbxproj', 'hello_excluded.cpp')
+
+
+# With the generator flag set to 0.
+try:
+ os.environ['GYP_GENERATOR_FLAGS'] = 'xcode_ninja_list_excluded_files=0'
+ test.run_gyp('hello_exclude.gyp')
+finally:
+ del os.environ['GYP_GENERATOR_FLAGS']
+test.must_not_contain(
+ 'sources_for_indexing.xcodeproj/project.pbxproj', 'hello_excluded.cpp')
+
+
+# With the generator flag explicitly set to 1.
+try:
+ os.environ['GYP_GENERATOR_FLAGS'] = 'xcode_ninja_list_excluded_files=1'
+ test.run_gyp('hello_exclude.gyp')
+finally:
+ del os.environ['GYP_GENERATOR_FLAGS']
+test.must_contain(
+ 'sources_for_indexing.xcodeproj/project.pbxproj', 'hello_excluded.cpp')
+
+
+test.pass_test()
diff --git a/media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/hello.cpp b/media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/hello.cpp
new file mode 100644
index 000000000..cd409dabf
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/hello.cpp
@@ -0,0 +1,7 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+int main() {
+ return 0;
+}
diff --git a/media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/hello_exclude.gyp b/media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/hello_exclude.gyp
new file mode 100644
index 000000000..f5f0e8eaf
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/hello_exclude.gyp
@@ -0,0 +1,19 @@
+# Copyright (c) 2016 The Chromium Authors. 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': 'hello',
+ 'type': 'executable',
+ 'sources': [
+ 'hello.cpp',
+ 'hello_excluded.cpp',
+ ],
+ 'sources!': [
+ 'hello_excluded.cpp',
+ ],
+ },
+ ],
+}
diff --git a/media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/hello_excluded.cpp b/media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/hello_excluded.cpp
new file mode 100644
index 000000000..211552954
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/xcode-ninja/list_excluded/hello_excluded.cpp
@@ -0,0 +1,7 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+int main() {
+ return 42;
+}