summaryrefslogtreecommitdiffstats
path: root/media/webrtc/trunk/tools/gyp/test/link-dependency/test.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/link-dependency/test.gyp')
-rw-r--r--media/webrtc/trunk/tools/gyp/test/link-dependency/test.gyp37
1 files changed, 37 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/link-dependency/test.gyp b/media/webrtc/trunk/tools/gyp/test/link-dependency/test.gyp
new file mode 100644
index 000000000..47cec1500
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/link-dependency/test.gyp
@@ -0,0 +1,37 @@
+{
+ 'variables': {
+ 'custom_malloc%' : 1,
+ },
+ 'target_defaults': {
+ 'conditions': [
+ ['custom_malloc==1', {
+ 'dependencies': [
+ 'malloc',
+ ],
+ }],
+ ],
+ },
+ 'targets': [
+ {
+ 'target_name': 'main',
+ 'type': 'none',
+ 'dependencies': [ 'main_initial',],
+ },
+ {
+ 'target_name': 'main_initial',
+ 'type': 'executable',
+ 'product_name': 'main',
+ 'sources': [ 'main.c' ],
+ },
+ {
+ 'target_name': 'malloc',
+ 'type': 'shared_library',
+ 'variables': {
+ 'prune_self_dependency': 1,
+ # Targets with type 'none' won't depend on this target.
+ 'link_dependency': 1,
+ },
+ 'sources': [ 'mymalloc.c' ],
+ },
+ ],
+}