diff options
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/home_dot_gyp/src')
-rw-r--r-- | media/webrtc/trunk/tools/gyp/test/home_dot_gyp/src/all.gyp | 22 | ||||
-rw-r--r-- | media/webrtc/trunk/tools/gyp/test/home_dot_gyp/src/printfoo.c | 7 |
2 files changed, 29 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/home_dot_gyp/src/all.gyp b/media/webrtc/trunk/tools/gyp/test/home_dot_gyp/src/all.gyp new file mode 100644 index 000000000..14b6aea28 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/home_dot_gyp/src/all.gyp @@ -0,0 +1,22 @@ +# 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. + +{ + 'variables': { + 'foo%': '"fromdefault"', + }, + 'targets': [ + { + 'target_name': 'printfoo', + 'type': 'executable', + 'sources': [ + 'printfoo.c', + ], + 'defines': [ + 'FOO=<(foo)', + ], + }, + ], +} + diff --git a/media/webrtc/trunk/tools/gyp/test/home_dot_gyp/src/printfoo.c b/media/webrtc/trunk/tools/gyp/test/home_dot_gyp/src/printfoo.c new file mode 100644 index 000000000..9bb67181b --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/home_dot_gyp/src/printfoo.c @@ -0,0 +1,7 @@ +#include <stdio.h> + +int main(void) +{ + printf("FOO is %s\n", FOO); + return 0; +} |