mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-06 15:27: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,30 @@
|
|||
#!/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.
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
|
||||
test.run_gyp('multiple.gyp', chdir='src')
|
||||
|
||||
test.relocate('src', 'relocate/src')
|
||||
|
||||
test.build('multiple.gyp', test.ALL, chdir='relocate/src', stderr=None)
|
||||
|
||||
expect1 = """\
|
||||
hello from prog1.c
|
||||
hello from common.c
|
||||
"""
|
||||
|
||||
expect2 = """\
|
||||
hello from prog2.c
|
||||
hello from common.c
|
||||
"""
|
||||
|
||||
test.run_built_executable('prog1', stdout=expect1, chdir='relocate/src')
|
||||
test.run_built_executable('prog2', stdout=expect2, chdir='relocate/src')
|
||||
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
#!/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.
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
|
||||
test.run_gyp('multiple.gyp', chdir='src')
|
||||
|
||||
test.relocate('src', 'relocate/src')
|
||||
|
||||
test.build('multiple.gyp', chdir='relocate/src')
|
||||
|
||||
expect1 = """\
|
||||
hello from prog1.c
|
||||
hello from common.c
|
||||
"""
|
||||
|
||||
expect2 = """\
|
||||
hello from prog2.c
|
||||
hello from common.c
|
||||
"""
|
||||
|
||||
test.run_built_executable('prog1', stdout=expect1, chdir='relocate/src')
|
||||
test.run_built_executable('prog2', stdout=expect2, chdir='relocate/src')
|
||||
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
void common(void)
|
||||
{
|
||||
printf("hello from common.c\n");
|
||||
return;
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
# 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': 'prog1',
|
||||
'type': 'executable',
|
||||
'sources': [
|
||||
'prog1.c',
|
||||
'common.c',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'prog2',
|
||||
'type': 'executable',
|
||||
'sources': [
|
||||
'prog2.c',
|
||||
'common.c',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#include <stdio.h>
|
||||
|
||||
extern void common(void);
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("hello from prog1.c\n");
|
||||
common();
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#include <stdio.h>
|
||||
|
||||
extern void common(void);
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("hello from prog2.c\n");
|
||||
common();
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue