mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 14:57: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
24
media/webrtc/trunk/tools/gyp/test/hello/gyptest-all.py
Normal file
24
media/webrtc/trunk/tools/gyp/test/hello/gyptest-all.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2009 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 simplest-possible build of a "Hello, world!" program
|
||||
using an explicit build target of 'all'.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp(workdir='workarea_all')
|
||||
|
||||
test.run_gyp('hello.gyp')
|
||||
|
||||
test.build('hello.gyp', test.ALL)
|
||||
|
||||
test.run_built_executable('hello', stdout="Hello, world!\n")
|
||||
|
||||
test.up_to_date('hello.gyp', test.ALL)
|
||||
|
||||
test.pass_test()
|
||||
24
media/webrtc/trunk/tools/gyp/test/hello/gyptest-default.py
Normal file
24
media/webrtc/trunk/tools/gyp/test/hello/gyptest-default.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2009 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 simplest-possible build of a "Hello, world!" program
|
||||
using the default build target.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp(workdir='workarea_default')
|
||||
|
||||
test.run_gyp('hello.gyp')
|
||||
|
||||
test.build('hello.gyp')
|
||||
|
||||
test.run_built_executable('hello', stdout="Hello, world!\n")
|
||||
|
||||
test.up_to_date('hello.gyp', test.DEFAULT)
|
||||
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2009 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 that Makefiles don't get rebuilt when a source gyp file changes and
|
||||
the disable_regeneration generator flag is set.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
|
||||
test.run_gyp('hello.gyp', '-Gauto_regeneration=0')
|
||||
|
||||
test.build('hello.gyp', test.ALL)
|
||||
|
||||
test.run_built_executable('hello', stdout="Hello, world!\n")
|
||||
|
||||
# Sleep so that the changed gyp file will have a newer timestamp than the
|
||||
# previously generated build files.
|
||||
test.sleep()
|
||||
test.write('hello.gyp', test.read('hello2.gyp'))
|
||||
|
||||
test.build('hello.gyp', test.ALL)
|
||||
|
||||
# Should still be the old executable, as regeneration was disabled.
|
||||
test.run_built_executable('hello', stdout="Hello, world!\n")
|
||||
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2013 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 that Makefiles get rebuilt when a source gyp file changes and
|
||||
--generator-output is used.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
# Regenerating build files when a gyp file changes is currently only supported
|
||||
# by the make generator, and --generator-output is not supported by ninja, so we
|
||||
# can only test for make.
|
||||
test = TestGyp.TestGyp(formats=['make'])
|
||||
|
||||
CHDIR='generator-output'
|
||||
|
||||
test.run_gyp('hello.gyp', '--generator-output=%s' % CHDIR)
|
||||
|
||||
test.build('hello.gyp', test.ALL, chdir=CHDIR)
|
||||
|
||||
test.run_built_executable('hello', stdout="Hello, world!\n", chdir=CHDIR)
|
||||
|
||||
# Sleep so that the changed gyp file will have a newer timestamp than the
|
||||
# previously generated build files.
|
||||
test.sleep()
|
||||
test.write('hello.gyp', test.read('hello2.gyp'))
|
||||
|
||||
test.build('hello.gyp', test.ALL, chdir=CHDIR)
|
||||
|
||||
test.run_built_executable('hello', stdout="Hello, two!\n", chdir=CHDIR)
|
||||
|
||||
test.pass_test()
|
||||
32
media/webrtc/trunk/tools/gyp/test/hello/gyptest-regyp.py
Normal file
32
media/webrtc/trunk/tools/gyp/test/hello/gyptest-regyp.py
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#!/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.
|
||||
|
||||
"""
|
||||
Verifies that Makefiles get rebuilt when a source gyp file changes.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
# Regenerating build files when a gyp file changes is currently only supported
|
||||
# by the make generator.
|
||||
test = TestGyp.TestGyp(formats=['make'])
|
||||
|
||||
test.run_gyp('hello.gyp')
|
||||
|
||||
test.build('hello.gyp', test.ALL)
|
||||
|
||||
test.run_built_executable('hello', stdout="Hello, world!\n")
|
||||
|
||||
# Sleep so that the changed gyp file will have a newer timestamp than the
|
||||
# previously generated build files.
|
||||
test.sleep()
|
||||
test.write('hello.gyp', test.read('hello2.gyp'))
|
||||
|
||||
test.build('hello.gyp', test.ALL)
|
||||
|
||||
test.run_built_executable('hello', stdout="Hello, two!\n")
|
||||
|
||||
test.pass_test()
|
||||
24
media/webrtc/trunk/tools/gyp/test/hello/gyptest-target.py
Normal file
24
media/webrtc/trunk/tools/gyp/test/hello/gyptest-target.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2009 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 simplest-possible build of a "Hello, world!" program
|
||||
using an explicit build target of 'hello'.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp(workdir='workarea_target')
|
||||
|
||||
test.run_gyp('hello.gyp')
|
||||
|
||||
test.build('hello.gyp', 'hello')
|
||||
|
||||
test.run_built_executable('hello', stdout="Hello, world!\n")
|
||||
|
||||
test.up_to_date('hello.gyp', 'hello')
|
||||
|
||||
test.pass_test()
|
||||
11
media/webrtc/trunk/tools/gyp/test/hello/hello.c
Normal file
11
media/webrtc/trunk/tools/gyp/test/hello/hello.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/* Copyright (c) 2009 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. */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("Hello, world!\n");
|
||||
return 0;
|
||||
}
|
||||
15
media/webrtc/trunk/tools/gyp/test/hello/hello.gyp
Normal file
15
media/webrtc/trunk/tools/gyp/test/hello/hello.gyp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright (c) 2009 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': 'hello',
|
||||
'type': 'executable',
|
||||
'sources': [
|
||||
'hello.c',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
11
media/webrtc/trunk/tools/gyp/test/hello/hello2.c
Normal file
11
media/webrtc/trunk/tools/gyp/test/hello/hello2.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/* Copyright (c) 2009 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. */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("Hello, two!\n");
|
||||
return 0;
|
||||
}
|
||||
15
media/webrtc/trunk/tools/gyp/test/hello/hello2.gyp
Normal file
15
media/webrtc/trunk/tools/gyp/test/hello/hello2.gyp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright (c) 2009 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': 'hello',
|
||||
'type': 'executable',
|
||||
'sources': [
|
||||
'hello2.c',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue