mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-03 22:07: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,32 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2014 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 running gyp in a different directory does not cause actions and
|
||||
rules to rerun.
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp(formats=['ninja'])
|
||||
# The xcode-ninja generator handles gypfiles which are not at the
|
||||
# project root incorrectly.
|
||||
# cf. https://code.google.com/p/gyp/issues/detail?id=460
|
||||
if test.format == 'xcode-ninja':
|
||||
test.skip_test()
|
||||
|
||||
test.run_gyp('subdir/action-rule-hash.gyp')
|
||||
test.build('subdir/action-rule-hash.gyp', test.ALL)
|
||||
test.up_to_date('subdir/action-rule-hash.gyp')
|
||||
|
||||
# Verify that everything is still up-to-date when we re-invoke gyp from a
|
||||
# different directory.
|
||||
test.run_gyp('action-rule-hash.gyp', '--depth=../', chdir='subdir')
|
||||
test.up_to_date('subdir/action-rule-hash.gyp')
|
||||
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
# Copyright (c) 2014 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': 'program',
|
||||
'type': 'executable',
|
||||
'sources': [
|
||||
'<(INTERMEDIATE_DIR)/main.cc',
|
||||
],
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'emit_main_cc',
|
||||
'inputs': ['emit.py'],
|
||||
'outputs': ['<(INTERMEDIATE_DIR)/main.cc'],
|
||||
'action': [
|
||||
'python',
|
||||
'emit.py',
|
||||
'<(INTERMEDIATE_DIR)/main.cc',
|
||||
],
|
||||
# Allows the test to run without hermetic cygwin on windows.
|
||||
'msvs_cygwin_shell': 0,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2014 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], 'wb')
|
||||
f.write('int main() {\n')
|
||||
f.write(' return 0;\n')
|
||||
f.write('}\n')
|
||||
f.close()
|
||||
Loading…
Add table
Add a link
Reference in a new issue