diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /media/webrtc/trunk/tools/gyp/test/msvs/uldi2010 | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/msvs/uldi2010')
4 files changed, 69 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/msvs/uldi2010/gyptest-all.py b/media/webrtc/trunk/tools/gyp/test/msvs/uldi2010/gyptest-all.py new file mode 100644 index 000000000..cc248fbd6 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/msvs/uldi2010/gyptest-all.py @@ -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 uldi can be disabled on a per-project-reference basis in vs2010. +""" + +import TestGyp + +test = TestGyp.TestGyp(formats=['msvs'], workdir='workarea_all') + +test.run_gyp('hello.gyp') + +if test.uses_msbuild: + test.must_contain('hello.vcxproj', '<UseLibraryDependencyInputs>false') + +test.pass_test() diff --git a/media/webrtc/trunk/tools/gyp/test/msvs/uldi2010/hello.c b/media/webrtc/trunk/tools/gyp/test/msvs/uldi2010/hello.c new file mode 100644 index 000000000..06e6a0290 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/msvs/uldi2010/hello.c @@ -0,0 +1,13 @@ +/* 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. */ + +#include <stdio.h> + +extern int hello2(); + +int main(void) { + printf("Hello, world!\n"); + hello2(); + return 0; +} diff --git a/media/webrtc/trunk/tools/gyp/test/msvs/uldi2010/hello.gyp b/media/webrtc/trunk/tools/gyp/test/msvs/uldi2010/hello.gyp new file mode 100644 index 000000000..a2bf2badb --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/msvs/uldi2010/hello.gyp @@ -0,0 +1,26 @@ +# 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': 'hello', + 'type': 'executable', + 'sources': [ + 'hello.c', + ], + 'dependencies': [ + 'hellolib', + ] + }, + { + 'target_name': 'hellolib', + 'type': 'static_library', + 'sources': [ + 'hello2.c', + ], + 'msvs_2010_disable_uldi_when_referenced': 1, + }, + ], +} diff --git a/media/webrtc/trunk/tools/gyp/test/msvs/uldi2010/hello2.c b/media/webrtc/trunk/tools/gyp/test/msvs/uldi2010/hello2.c new file mode 100644 index 000000000..e2f23238d --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/msvs/uldi2010/hello2.c @@ -0,0 +1,10 @@ +/* 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. */ + +#include <stdio.h> + +int hello2() { + printf("Hello, two!\n"); + return 0; +} |