import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo

This commit is contained in:
Roy Tam 2018-01-19 03:59:58 +08:00
commit dcd9973243
150858 changed files with 23884658 additions and 0 deletions

View file

@ -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': [ ]
},
],
},
],
}

View 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.
{
'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',
},
],
}

View file

@ -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()

View file

@ -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()

View file

@ -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()

View file

@ -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()

View file

@ -0,0 +1,5 @@
extern int foo();
int main() {
return foo();
}

View file

@ -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,
}],
},
],
}

View file

@ -0,0 +1,3 @@
#!/usr/bin/env python
print 'Hello World'

View file

@ -0,0 +1,8 @@
#ifdef _MSC_VER
__declspec(dllexport)
#else
__attribute__((visibility("default")))
#endif
int foo() {
return 42;
}

View 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'],
},
}],
],
}