Skip to content
Newer
Older
100644 44 lines (43 sloc) 1 KB
a41b3a9 @japj Tentative Windows support
japj authored May 8, 2012
1 {
2 'targets': [
3 {
1760f9a @laverdet Distinct binaries for v8 versions
authored Jun 24, 2012
4 'target_name': 'fibers',
a41b3a9 @japj Tentative Windows support
japj authored May 8, 2012
5 'sources': [
6 'src/fibers.cc',
7 'src/coroutine.cc',
8 'src/libcoro/coro.c',
9d9efdd @laverdet Port build to gyp + setup for binary distribution
authored May 9, 2012
9 # Rebuild on header changes
a41b3a9 @japj Tentative Windows support
japj authored May 8, 2012
10 'src/coroutine.h',
11 'src/libcoro/coro.h',
12 ],
9d9efdd @laverdet Port build to gyp + setup for binary distribution
authored May 9, 2012
13 'cflags!': ['-ansi'],
a41b3a9 @japj Tentative Windows support
japj authored May 8, 2012
14 'conditions': [
9d9efdd @laverdet Port build to gyp + setup for binary distribution
authored May 9, 2012
15 ['OS == "win"',
16 {'defines': ['USE_WINFIBER']},
17 # else
18 {
19 'cflags': ['-Wno-deprecated-declarations'],
20 'defines': ['USE_CORO'],
21 'ldflags': ['-pthread'],
22 }
a41b3a9 @japj Tentative Windows support
japj authored May 8, 2012
23 ],
9d9efdd @laverdet Port build to gyp + setup for binary distribution
authored May 9, 2012
24 ['OS == "linux" or OS == "solaris" or OS == "freebsd"', {'defines': ['CORO_UCONTEXT']}],
25 ['OS == "mac"', {
26 'defines': ['CORO_SJLJ'],
27 'xcode_settings': {
28 'GCC_OPTIMIZATION_LEVEL': '3',
29 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO',
30 },
31 }],
32 ['OS == "openbsd"', {'defines': ['CORO_ASM']}],
33 ['target_arch == "arm"',
34 {
35 # There's been problems getting real fibers working on arm
36 'defines': ['CORO_PTHREAD'],
37 'defines!': ['CORO_UCONTEXT', 'CORO_SJLJ', 'CORO_ASM'],
38 },
39 ],
40 ],
a41b3a9 @japj Tentative Windows support
japj authored May 8, 2012
41 },
9d9efdd @laverdet Port build to gyp + setup for binary distribution
authored May 9, 2012
42 ],
a41b3a9 @japj Tentative Windows support
japj authored May 8, 2012
43 }
Something went wrong with that request. Please try again.