mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-06 23:37:31 +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,38 @@
|
|||
#!/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.
|
||||
|
||||
"""
|
||||
Build a .gyp that depends on 2 gyp files with the same name.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
|
||||
test.run_gyp('all.gyp', chdir='src')
|
||||
|
||||
test.relocate('src', 'relocate/src')
|
||||
|
||||
test.build('all.gyp', test.ALL, chdir='relocate/src')
|
||||
|
||||
expect1 = """\
|
||||
Hello from main1.cc
|
||||
"""
|
||||
|
||||
expect2 = """\
|
||||
Hello from main2.cc
|
||||
"""
|
||||
|
||||
if test.format == 'xcode':
|
||||
chdir1 = 'relocate/src/subdir1'
|
||||
chdir2 = 'relocate/src/subdir2'
|
||||
else:
|
||||
chdir1 = chdir2 = 'relocate/src'
|
||||
|
||||
test.run_built_executable('program1', chdir=chdir1, stdout=expect1)
|
||||
test.run_built_executable('program2', chdir=chdir2, stdout=expect2)
|
||||
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
#!/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.
|
||||
|
||||
"""
|
||||
Build a .gyp that depends on 2 gyp files with the same name.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
|
||||
test.run_gyp('all.gyp', chdir='src')
|
||||
|
||||
test.relocate('src', 'relocate/src')
|
||||
|
||||
test.build('all.gyp', chdir='relocate/src')
|
||||
|
||||
expect1 = """\
|
||||
Hello from main1.cc
|
||||
"""
|
||||
|
||||
expect2 = """\
|
||||
Hello from main2.cc
|
||||
"""
|
||||
|
||||
if test.format == 'xcode':
|
||||
chdir1 = 'relocate/src/subdir1'
|
||||
chdir2 = 'relocate/src/subdir2'
|
||||
else:
|
||||
chdir1 = chdir2 = 'relocate/src'
|
||||
|
||||
test.run_built_executable('program1', chdir=chdir1, stdout=expect1)
|
||||
test.run_built_executable('program2', chdir=chdir2, stdout=expect2)
|
||||
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
#!/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 a dependency on two gyp files with the same name do not create a
|
||||
uid collision in the resulting generated xcode file.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
import sys
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
|
||||
test.run_gyp('test.gyp', chdir='library')
|
||||
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# 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': 'one',
|
||||
'type': 'static_library',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
# 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': 'duplicate_names',
|
||||
'type': 'shared_library',
|
||||
'dependencies': [
|
||||
'one/sub.gyp:one',
|
||||
'two/sub.gyp:two',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# 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': 'two',
|
||||
'type': 'static_library',
|
||||
},
|
||||
],
|
||||
}
|
||||
16
media/webrtc/trunk/tools/gyp/test/same-gyp-name/src/all.gyp
Normal file
16
media/webrtc/trunk/tools/gyp/test/same-gyp-name/src/all.gyp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# 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': 'all_exes',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'subdir1/executable.gyp:*',
|
||||
'subdir2/executable.gyp:*',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -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': 'program1',
|
||||
'type': 'executable',
|
||||
'sources': [
|
||||
'main1.cc',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
printf("Hello from main1.cc\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -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': 'program2',
|
||||
'type': 'executable',
|
||||
'sources': [
|
||||
'main2.cc',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
printf("Hello from main2.cc\n");
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue