mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-04 06:17:30 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# 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.
|
||||
|
||||
"""
|
||||
Test cases when multiple targets in different directories have the same name.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp(formats=['ninja', 'make'])
|
||||
|
||||
# xcode-ninja fails to generate a project due to id collisions
|
||||
# cf. https://code.google.com/p/gyp/issues/detail?id=461
|
||||
if test.format == 'xcode-ninja':
|
||||
test.skip_test()
|
||||
|
||||
test.run_gyp('subdirs.gyp', chdir='src')
|
||||
|
||||
test.relocate('src', 'relocate/src')
|
||||
|
||||
# Test that we build all targets.
|
||||
test.build('subdirs.gyp', 'target', chdir='relocate/src')
|
||||
test.must_exist('relocate/src/subdir1/action1.txt')
|
||||
test.must_exist('relocate/src/subdir2/action2.txt')
|
||||
|
||||
# Test that we build all targets using the correct actions, even if they have
|
||||
# the same names.
|
||||
test.build('subdirs.gyp', 'target_same_action_name', chdir='relocate/src')
|
||||
test.must_exist('relocate/src/subdir1/action.txt')
|
||||
test.must_exist('relocate/src/subdir2/action.txt')
|
||||
|
||||
# Test that we build all targets using the correct rules, even if they have
|
||||
# the same names.
|
||||
test.build('subdirs.gyp', 'target_same_rule_name', chdir='relocate/src')
|
||||
test.must_exist('relocate/src/subdir1/rule.txt')
|
||||
test.must_exist('relocate/src/subdir2/rule.txt')
|
||||
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
# 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': 'target',
|
||||
'type': 'none',
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'action1',
|
||||
'inputs': [],
|
||||
'outputs': [
|
||||
'action1.txt',
|
||||
],
|
||||
'action': [
|
||||
'python', '../touch.py', '<(_outputs)',
|
||||
],
|
||||
# Allows the test to run without hermetic cygwin on windows.
|
||||
'msvs_cygwin_shell': 0,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'target_same_action_name',
|
||||
'type': 'none',
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'action',
|
||||
'inputs': [],
|
||||
'outputs': [
|
||||
'action.txt',
|
||||
],
|
||||
'action': [
|
||||
'python', '../touch.py', '<(_outputs)',
|
||||
],
|
||||
# Allows the test to run without hermetic cygwin on windows.
|
||||
'msvs_cygwin_shell': 0,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'target_same_rule_name',
|
||||
'type': 'none',
|
||||
'sources': [
|
||||
'../touch.py'
|
||||
],
|
||||
'rules': [
|
||||
{
|
||||
'rule_name': 'rule',
|
||||
'extension': 'py',
|
||||
'inputs': [],
|
||||
'outputs': [
|
||||
'rule.txt',
|
||||
],
|
||||
'action': [
|
||||
'python', '../touch.py', '<(_outputs)',
|
||||
],
|
||||
# Allows the test to run without hermetic cygwin on windows.
|
||||
'msvs_cygwin_shell': 0,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
# 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': 'target',
|
||||
'type': 'none',
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'action2',
|
||||
'inputs': [],
|
||||
'outputs': [
|
||||
'action2.txt',
|
||||
],
|
||||
'action': [
|
||||
'python', '../touch.py', '<(_outputs)',
|
||||
],
|
||||
# Allows the test to run without hermetic cygwin on windows.
|
||||
'msvs_cygwin_shell': 0,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'target_same_action_name',
|
||||
'type': 'none',
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'action',
|
||||
'inputs': [],
|
||||
'outputs': [
|
||||
'action.txt',
|
||||
],
|
||||
'action': [
|
||||
'python', '../touch.py', '<(_outputs)',
|
||||
],
|
||||
# Allows the test to run without hermetic cygwin on windows.
|
||||
'msvs_cygwin_shell': 0,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'target_same_rule_name',
|
||||
'type': 'none',
|
||||
'sources': [
|
||||
'../touch.py'
|
||||
],
|
||||
'rules': [
|
||||
{
|
||||
'rule_name': 'rule',
|
||||
'extension': 'py',
|
||||
'inputs': [],
|
||||
'outputs': [
|
||||
'rule.txt',
|
||||
],
|
||||
'action': [
|
||||
'python', '../touch.py', '<(_outputs)',
|
||||
],
|
||||
# Allows the test to run without hermetic cygwin on windows.
|
||||
'msvs_cygwin_shell': 0,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# Copyright (c) 2010 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': 'subdirs',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'subdir1/subdir1.gyp:*',
|
||||
'subdir2/subdir2.gyp:*',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# 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.
|
||||
|
||||
import sys
|
||||
|
||||
f = open(sys.argv[1], 'w+')
|
||||
f.write('Hello from touch.py\n')
|
||||
f.close()
|
||||
Loading…
Add table
Add a link
Reference in a new issue