From f3be4240e5da100f7615e6805648ed50485c2ebb Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Thu, 26 May 2016 03:42:56 -0400 Subject: example: initial --- gyp_uv_link | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gyp_uv_link') 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') -- cgit 1.4.1-2-gfad0