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
|
|
@ -0,0 +1,66 @@
|
|||
#!/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 --root-target removes the unnecessary targets.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
# The xcode-ninja generator has its own logic for which targets to include
|
||||
if test.format == 'xcode-ninja':
|
||||
test.skip_test()
|
||||
|
||||
build_error_code = {
|
||||
'cmake': 1,
|
||||
'make': 2,
|
||||
'msvs': 1,
|
||||
'ninja': 1,
|
||||
'xcode': 65,
|
||||
}[test.format]
|
||||
|
||||
# By default, everything will be included.
|
||||
test.run_gyp('test1.gyp')
|
||||
test.build('test2.gyp', 'lib1')
|
||||
test.build('test2.gyp', 'lib2')
|
||||
test.build('test2.gyp', 'lib3')
|
||||
test.build('test2.gyp', 'lib_indirect')
|
||||
test.build('test1.gyp', 'program1')
|
||||
test.build('test1.gyp', 'program2')
|
||||
test.build('test1.gyp', 'program3')
|
||||
|
||||
# With deep dependencies of program1 only.
|
||||
test.run_gyp('test1.gyp', '--root-target=program1')
|
||||
test.build('test2.gyp', 'lib1')
|
||||
test.build('test2.gyp', 'lib2', status=build_error_code, stderr=None)
|
||||
test.build('test2.gyp', 'lib3', status=build_error_code, stderr=None)
|
||||
test.build('test2.gyp', 'lib_indirect')
|
||||
test.build('test1.gyp', 'program1')
|
||||
test.build('test1.gyp', 'program2', status=build_error_code, stderr=None)
|
||||
test.build('test1.gyp', 'program3', status=build_error_code, stderr=None)
|
||||
|
||||
# With deep dependencies of program2 only.
|
||||
test.run_gyp('test1.gyp', '--root-target=program2')
|
||||
test.build('test2.gyp', 'lib1', status=build_error_code, stderr=None)
|
||||
test.build('test2.gyp', 'lib2')
|
||||
test.build('test2.gyp', 'lib3', status=build_error_code, stderr=None)
|
||||
test.build('test2.gyp', 'lib_indirect')
|
||||
test.build('test1.gyp', 'program1', status=build_error_code, stderr=None)
|
||||
test.build('test1.gyp', 'program2')
|
||||
test.build('test1.gyp', 'program3', status=build_error_code, stderr=None)
|
||||
|
||||
# With deep dependencies of program1 and program2.
|
||||
test.run_gyp('test1.gyp', '--root-target=program1', '--root-target=program2')
|
||||
test.build('test2.gyp', 'lib1')
|
||||
test.build('test2.gyp', 'lib2')
|
||||
test.build('test2.gyp', 'lib3', status=build_error_code, stderr=None)
|
||||
test.build('test2.gyp', 'lib_indirect')
|
||||
test.build('test1.gyp', 'program1')
|
||||
test.build('test1.gyp', 'program2')
|
||||
test.build('test1.gyp', 'program3', status=build_error_code, stderr=None)
|
||||
|
||||
test.pass_test()
|
||||
6
media/webrtc/trunk/tools/gyp/test/prune_targets/lib1.cc
Normal file
6
media/webrtc/trunk/tools/gyp/test/prune_targets/lib1.cc
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// 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.
|
||||
|
||||
void libfunc1() {
|
||||
}
|
||||
6
media/webrtc/trunk/tools/gyp/test/prune_targets/lib2.cc
Normal file
6
media/webrtc/trunk/tools/gyp/test/prune_targets/lib2.cc
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// 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.
|
||||
|
||||
void libfunc2() {
|
||||
}
|
||||
6
media/webrtc/trunk/tools/gyp/test/prune_targets/lib3.cc
Normal file
6
media/webrtc/trunk/tools/gyp/test/prune_targets/lib3.cc
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// 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.
|
||||
|
||||
void libfunc3() {
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
// 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.
|
||||
|
||||
void libfunc_indirect() {
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
// 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.
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
||||
26
media/webrtc/trunk/tools/gyp/test/prune_targets/test1.gyp
Normal file
26
media/webrtc/trunk/tools/gyp/test/prune_targets/test1.gyp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# 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.
|
||||
|
||||
{
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'program1',
|
||||
'type': 'executable',
|
||||
'sources': [ 'program.cc' ],
|
||||
'dependencies': [ 'test2.gyp:lib1' ],
|
||||
},
|
||||
{
|
||||
'target_name': 'program2',
|
||||
'type': 'executable',
|
||||
'sources': [ 'program.cc' ],
|
||||
'dependencies': [ 'test2.gyp:lib2' ],
|
||||
},
|
||||
{
|
||||
'target_name': 'program3',
|
||||
'type': 'executable',
|
||||
'sources': [ 'program.cc' ],
|
||||
'dependencies': [ 'test2.gyp:lib3' ],
|
||||
},
|
||||
],
|
||||
}
|
||||
30
media/webrtc/trunk/tools/gyp/test/prune_targets/test2.gyp
Normal file
30
media/webrtc/trunk/tools/gyp/test/prune_targets/test2.gyp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# 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.
|
||||
|
||||
{
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'lib1',
|
||||
'type': 'static_library',
|
||||
'sources': [ 'lib1.cc' ],
|
||||
'dependencies': [ 'lib_indirect' ],
|
||||
},
|
||||
{
|
||||
'target_name': 'lib2',
|
||||
'type': 'static_library',
|
||||
'sources': [ 'lib2.cc' ],
|
||||
'dependencies': [ 'lib_indirect' ],
|
||||
},
|
||||
{
|
||||
'target_name': 'lib3',
|
||||
'type': 'static_library',
|
||||
'sources': [ 'lib3.cc' ],
|
||||
},
|
||||
{
|
||||
'target_name': 'lib_indirect',
|
||||
'type': 'static_library',
|
||||
'sources': [ 'lib_indirect.cc' ],
|
||||
},
|
||||
],
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue