mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-03 05:47:29 +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,59 @@
|
|||
# Copyright (c) 2015 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': 'determinism',
|
||||
'type': 'none',
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'depfile_action',
|
||||
'inputs': [
|
||||
'input.txt',
|
||||
],
|
||||
'outputs': [
|
||||
'output.txt',
|
||||
],
|
||||
'depfile': 'depfile.d',
|
||||
'action': [ ]
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'determinism2',
|
||||
'type': 'none',
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'depfile_action',
|
||||
'inputs': [
|
||||
'input.txt',
|
||||
],
|
||||
'outputs': [
|
||||
'output.txt',
|
||||
],
|
||||
'depfile': 'depfile.d',
|
||||
'action': [ ]
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'determinism3',
|
||||
'type': 'none',
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'depfile_action',
|
||||
'inputs': [
|
||||
'input.txt',
|
||||
],
|
||||
'outputs': [
|
||||
'output.txt',
|
||||
],
|
||||
'depfile': 'depfile.d',
|
||||
'action': [ ]
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
# Copyright (c) 2015 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': 'empty_target1',
|
||||
'type': 'none',
|
||||
},
|
||||
{
|
||||
'target_name': 'empty_target2',
|
||||
'type': 'none',
|
||||
},
|
||||
{
|
||||
'target_name': 'empty_target3',
|
||||
'type': 'none',
|
||||
},
|
||||
{
|
||||
'target_name': 'empty_target4',
|
||||
'type': 'none',
|
||||
},
|
||||
{
|
||||
'target_name': 'empty_target5',
|
||||
'type': 'none',
|
||||
},
|
||||
{
|
||||
'target_name': 'empty_target6',
|
||||
'type': 'none',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2015 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.
|
||||
|
||||
"""
|
||||
Verifies builds are the same even with different PYTHONHASHSEEDs.
|
||||
Tests target_short_names and FlattenToList.
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
if test.format == 'ninja':
|
||||
os.environ["PYTHONHASHSEED"] = "1"
|
||||
test.run_gyp('determinism.gyp')
|
||||
base = open(test.built_file_path('build.ninja')).read()
|
||||
|
||||
for i in range(1,5):
|
||||
os.environ["PYTHONHASHSEED"] = str(i)
|
||||
test.run_gyp('determinism.gyp')
|
||||
contents = open(test.built_file_path('build.ninja')).read()
|
||||
if base != contents:
|
||||
test.fail_test()
|
||||
|
||||
del os.environ["PYTHONHASHSEED"]
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2015 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.
|
||||
|
||||
"""
|
||||
Verifies builds are the same even with different PYTHONHASHSEEDs.
|
||||
Tests both solibs and implicit_deps.
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
if test.format == 'ninja':
|
||||
os.environ["PYTHONHASHSEED"] = "1"
|
||||
test.run_gyp('empty-targets.gyp')
|
||||
base = open(test.built_file_path('build.ninja')).read()
|
||||
|
||||
for i in range(1,5):
|
||||
os.environ["PYTHONHASHSEED"] = str(i)
|
||||
test.run_gyp('empty-targets.gyp')
|
||||
contents = open(test.built_file_path('build.ninja')).read()
|
||||
if base != contents:
|
||||
test.fail_test()
|
||||
|
||||
del os.environ["PYTHONHASHSEED"]
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2015 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.
|
||||
|
||||
"""
|
||||
Verifies builds are the same even with different PYTHONHASHSEEDs.
|
||||
Tests needed_variables.
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
if test.format == 'ninja':
|
||||
os.environ["PYTHONHASHSEED"] = "1"
|
||||
test.run_gyp('needed-variables.gyp')
|
||||
base = open(test.built_file_path('test.ninja', subdir='obj')).read()
|
||||
|
||||
for i in range(1,5):
|
||||
os.environ["PYTHONHASHSEED"] = str(i)
|
||||
test.run_gyp('needed-variables.gyp')
|
||||
contents = open(test.built_file_path('test.ninja', subdir='obj')).read()
|
||||
if base != contents:
|
||||
test.fail_test()
|
||||
|
||||
del os.environ["PYTHONHASHSEED"]
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2015 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.
|
||||
|
||||
"""
|
||||
Verifies builds are the same even with different PYTHONHASHSEEDs.
|
||||
Tests all_targets, implicit_deps and solibs.
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
if test.format == 'ninja':
|
||||
os.environ["PYTHONHASHSEED"] = "1"
|
||||
test.run_gyp('solibs.gyp')
|
||||
base1 = open(test.built_file_path('c.ninja', subdir='obj')).read()
|
||||
base2 = open(test.built_file_path('build.ninja')).read()
|
||||
|
||||
for i in range(1,5):
|
||||
os.environ["PYTHONHASHSEED"] = str(i)
|
||||
test.run_gyp('solibs.gyp')
|
||||
contents1 = open(test.built_file_path('c.ninja', subdir='obj')).read()
|
||||
contents2 = open(test.built_file_path('build.ninja')).read()
|
||||
if base1 != contents1:
|
||||
test.fail_test()
|
||||
if base2 != contents2:
|
||||
print base2
|
||||
test.fail_test()
|
||||
|
||||
del os.environ["PYTHONHASHSEED"]
|
||||
test.pass_test()
|
||||
5
media/webrtc/trunk/tools/gyp/test/determinism/main.cc
Normal file
5
media/webrtc/trunk/tools/gyp/test/determinism/main.cc
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
extern int foo();
|
||||
|
||||
int main() {
|
||||
return foo();
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
# Copyright (c) 2015 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': 'test',
|
||||
'type': 'executable',
|
||||
'sources': ['rule.ext'],
|
||||
'rules': [{
|
||||
'rule_name': 'rule',
|
||||
'extension': 'ext',
|
||||
'inputs': [ 'rule.py', ],
|
||||
'action': [
|
||||
'python',
|
||||
'rule.py',
|
||||
'<(RULE_INPUT_ROOT)',
|
||||
'<(RULE_INPUT_EXT)',
|
||||
'<(RULE_INPUT_DIRNAME)',
|
||||
'<(RULE_INPUT_NAME)',
|
||||
'<(RULE_INPUT_PATH)',
|
||||
],
|
||||
'outputs': [ 'hello_world.txt' ],
|
||||
'sources': ['rule.ext'],
|
||||
'message': 'Processing <(RULE_INPUT_PATH)',
|
||||
'process_outputs_as_sources': 1,
|
||||
# Allows the test to run without hermetic cygwin on windows.
|
||||
'msvs_cygwin_shell': 0,
|
||||
}],
|
||||
},
|
||||
],
|
||||
}
|
||||
3
media/webrtc/trunk/tools/gyp/test/determinism/rule.py
Normal file
3
media/webrtc/trunk/tools/gyp/test/determinism/rule.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
print 'Hello World'
|
||||
8
media/webrtc/trunk/tools/gyp/test/determinism/solib.cc
Normal file
8
media/webrtc/trunk/tools/gyp/test/determinism/solib.cc
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifdef _MSC_VER
|
||||
__declspec(dllexport)
|
||||
#else
|
||||
__attribute__((visibility("default")))
|
||||
#endif
|
||||
int foo() {
|
||||
return 42;
|
||||
}
|
||||
32
media/webrtc/trunk/tools/gyp/test/determinism/solibs.gyp
Normal file
32
media/webrtc/trunk/tools/gyp/test/determinism/solibs.gyp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Copyright (c) 2015 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.
|
||||
|
||||
# This test both tests solibs and implicit_deps.
|
||||
{
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'a',
|
||||
'type': 'shared_library',
|
||||
'sources': [ 'solib.cc' ],
|
||||
},
|
||||
{
|
||||
'target_name': 'b',
|
||||
'type': 'shared_library',
|
||||
'sources': [ 'solib.cc' ],
|
||||
},
|
||||
{
|
||||
'target_name': 'c',
|
||||
'type': 'executable',
|
||||
'sources': [ 'main.cc' ],
|
||||
'dependencies': [ 'a', 'b' ],
|
||||
},
|
||||
],
|
||||
'conditions': [
|
||||
['OS=="linux"', {
|
||||
'target_defaults': {
|
||||
'cflags': ['-fPIC'],
|
||||
},
|
||||
}],
|
||||
],
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue