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/props | |
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/props')
5 files changed, 80 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/msvs/props/AppName.props b/media/webrtc/trunk/tools/gyp/test/msvs/props/AppName.props new file mode 100644 index 000000000..b688f663d --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/msvs/props/AppName.props @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup Label="UserMacros"> + <AppName>Greet</AppName> + </PropertyGroup> + <PropertyGroup> + <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion> + </PropertyGroup> + <ItemGroup> + <BuildMacro Include="AppName"> + <Value>$(AppName)</Value> + </BuildMacro> + </ItemGroup> +</Project> diff --git a/media/webrtc/trunk/tools/gyp/test/msvs/props/AppName.vsprops b/media/webrtc/trunk/tools/gyp/test/msvs/props/AppName.vsprops new file mode 100644 index 000000000..84b9af380 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/msvs/props/AppName.vsprops @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioPropertySheet + ProjectType="Visual C++" + Version="8.00" + Name="Common" + > + <UserMacro + Name="AppName" + Value="Greet" + /> +</VisualStudioPropertySheet> diff --git a/media/webrtc/trunk/tools/gyp/test/msvs/props/gyptest-props.py b/media/webrtc/trunk/tools/gyp/test/msvs/props/gyptest-props.py new file mode 100644 index 000000000..abd4df224 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/msvs/props/gyptest-props.py @@ -0,0 +1,22 @@ +#!/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 props files are added by using a +props file to set the name of the built executable. +""" + +import TestGyp + +test = TestGyp.TestGyp(workdir='workarea_all', formats=['msvs']) + +test.run_gyp('hello.gyp') + +test.build('hello.gyp') + +test.built_file_must_exist('Greet.exe') + +test.pass_test() diff --git a/media/webrtc/trunk/tools/gyp/test/msvs/props/hello.c b/media/webrtc/trunk/tools/gyp/test/msvs/props/hello.c new file mode 100644 index 000000000..faadc75e2 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/msvs/props/hello.c @@ -0,0 +1,11 @@ +/* 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 main(void) +{ + printf("Hello, world!\n"); + return 0; +} diff --git a/media/webrtc/trunk/tools/gyp/test/msvs/props/hello.gyp b/media/webrtc/trunk/tools/gyp/test/msvs/props/hello.gyp new file mode 100644 index 000000000..5a58317fa --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/msvs/props/hello.gyp @@ -0,0 +1,22 @@ +# 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', + 'product_name': '$(AppName)', + 'type': 'executable', + 'sources': [ + 'hello.c', + ], + 'msvs_props': [ + '$(SolutionDir)AppName.vsprops' + ], + 'msbuild_props': [ + '$(SolutionDir)AppName.props' + ], + }, + ], +} + |