mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 03:47: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,29 @@
|
|||
#!/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 .hpp files are ignored when included in the source list on all
|
||||
platforms.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
|
||||
test.run_gyp('headers.gyp', chdir='src')
|
||||
|
||||
test.relocate('src', 'relocate/src')
|
||||
|
||||
test.build('headers.gyp', test.ALL, chdir='relocate/src')
|
||||
|
||||
expect = """\
|
||||
Hello from program.c
|
||||
Hello from lib1.c
|
||||
"""
|
||||
test.run_built_executable('program', chdir='relocate/src', stdout=expect)
|
||||
|
||||
|
||||
test.pass_test()
|
||||
26
media/webrtc/trunk/tools/gyp/test/compilable/src/headers.gyp
Normal file
26
media/webrtc/trunk/tools/gyp/test/compilable/src/headers.gyp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# 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': 'program',
|
||||
'type': 'executable',
|
||||
'dependencies': [
|
||||
'lib1'
|
||||
],
|
||||
'sources': [
|
||||
'program.cpp',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'lib1',
|
||||
'type': 'static_library',
|
||||
'sources': [
|
||||
'lib1.hpp',
|
||||
'lib1.cpp',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#include <stdio.h>
|
||||
#include "lib1.hpp"
|
||||
|
||||
void lib1_function(void) {
|
||||
fprintf(stdout, "Hello from lib1.c\n");
|
||||
fflush(stdout);
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef _lib1_hpp
|
||||
#define _lib1_hpp
|
||||
|
||||
extern void lib1_function(void);
|
||||
|
||||
#endif
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
#include <stdio.h>
|
||||
#include "lib1.hpp"
|
||||
|
||||
int main(void) {
|
||||
fprintf(stdout, "Hello from program.c\n");
|
||||
fflush(stdout);
|
||||
lib1_function();
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue