diff options
Diffstat (limited to 'uv_link_t.gyp')
-rw-r--r-- | uv_link_t.gyp | 50 |
1 files changed, 44 insertions, 6 deletions
diff --git a/uv_link_t.gyp b/uv_link_t.gyp index 246cc44..1f6294c 100644 --- a/uv_link_t.gyp +++ b/uv_link_t.gyp @@ -1,4 +1,10 @@ { + "variables": { + "gypkg_deps": [ + "git://github.com/libuv/libuv.git@^1.9.0 => uv.gyp:libuv", + ], + }, + "targets": [{ "target_name": "uv_link_t", "type": "<!(gypkg type)", @@ -7,12 +13,6 @@ "include_dirs": [ "include" ], }, - "variables": { - "gypkg_deps": [ - "git://github.com/libuv/libuv.git@^1.9.0 => uv.gyp:libuv", - ], - }, - "dependencies": [ "<!@(gypkg deps <(gypkg_deps))" ], @@ -27,5 +27,43 @@ "src/uv_link_observer_t.c", "src/uv_link_source_t.c", ], + }, { + "target_name": "uv_link_t-test", + "type": "executable", + + "include_dirs": [ + "test/src" + ], + + "dependencies": [ + "<!@(gypkg deps <(gypkg_deps))", + "uv_link_t", + ], + + "sources": [ + "test/src/main.c", + "test/src/test-uv-link-source-t.c", + "test/src/test-uv-link-observer-t.c", + "test/src/test-defaults.c", + "test/src/test-close.c", + "test/src/test-strerror.c", + ], + }, { + "target_name": "uv_link_t-example", + "type": "executable", + + "include_dirs": [ + "example/src" + ], + + "dependencies": [ + "<!@(gypkg deps <(gypkg_deps))", + "uv_link_t", + ], + + "sources": [ + "example/src/main.c", + "example/src/middle.c", + ], }], } |