about summary refs log tree commit diff stats
path: root/gyp_uv_link
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2016-05-26 03:42:56 -0400
committerFedor Indutny <fedor@indutny.com>2016-05-26 03:42:56 -0400
commitf3be4240e5da100f7615e6805648ed50485c2ebb (patch)
tree1ab9b525bdf3f47a53d49602a0383548861906b6 /gyp_uv_link
parente6061e7dbcc1ac16222f2c44c467cf5e7a3f31ad (diff)
downloaduv_link_t-f3be4240e5da100f7615e6805648ed50485c2ebb.tar.gz
example: initial
Diffstat (limited to 'gyp_uv_link')
-rwxr-xr-xgyp_uv_link9
1 files changed, 6 insertions, 3 deletions
diff --git a/gyp_uv_link b/gyp_uv_link
index 73251d6..35ae446 100755
--- a/gyp_uv_link
+++ b/gyp_uv_link
@@ -52,11 +52,14 @@ def run_gyp(args):
 if __name__ == '__main__':
   args = sys.argv[1:]
 
-  if 'test' not in args:
-    args.append(os.path.join(os.path.abspath(root), 'uv_link_t.gyp'))
-  else:
+  if 'test' in args:
     args.append(os.path.join(os.path.abspath(root), 'test/test.gyp'))
     args = filter(lambda arg: arg != 'test', args)
+  elif 'example' in args:
+    args.append(os.path.join(os.path.abspath(root), 'example/example.gyp'))
+    args = filter(lambda arg: arg != 'example', args)
+  else:
+    args.append(os.path.join(os.path.abspath(root), 'uv_link_t.gyp'))
 
   common_fn  = os.path.join(os.path.abspath(root), 'common.gypi')
   options_fn = os.path.join(os.path.abspath(root), 'options.gypi')