mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 23:07: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
23
media/webrtc/trunk/tools/gyp/test/exclusion/exclusion.gyp
Normal file
23
media/webrtc/trunk/tools/gyp/test/exclusion/exclusion.gyp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Copyright (c) 2010 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',
|
||||
'bogus.c',
|
||||
'also/not/real.c',
|
||||
'also/not/real2.c',
|
||||
],
|
||||
'sources!': [
|
||||
'bogus.c',
|
||||
'also/not/real.c',
|
||||
'also/not/real2.c',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2010 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 exclusions (e.g. sources!) are respected. Excluded sources
|
||||
that do not exist should not prevent the build from succeeding.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
|
||||
test.run_gyp('exclusion.gyp')
|
||||
test.build('exclusion.gyp')
|
||||
|
||||
# executables
|
||||
test.built_file_must_exist('hello' + test._exe, test.EXECUTABLE, bare=True)
|
||||
|
||||
test.pass_test()
|
||||
15
media/webrtc/trunk/tools/gyp/test/exclusion/hello.c
Normal file
15
media/webrtc/trunk/tools/gyp/test/exclusion/hello.c
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/* Copyright (c) 2010 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 func1(void) {
|
||||
return 42;
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
printf("Hello, world!\n");
|
||||
printf("%d\n", func1());
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue