forked from kelunik/task
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.w32
122 lines (105 loc) · 2.56 KB
/
config.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
ARG_ENABLE('async', 'async support', 'yes');
X64 = toolset_is_64();
if (PHP_ASYNC != 'no') {
AC_DEFINE('HAVE_ASYNC', 1, 'async support enabled');
ADD_FLAG('CFLAGS', '/I ' + configure_module_dirname);
ADD_FLAG('CFLAGS', '/I ' + configure_module_dirname + '\\include');
ADD_FLAG('LDFLAGS', '/NODEFAULTLIB:LIBCMT');
var async_source_files = [
'php_async.c'
];
var async_src = [
'channel.c',
'console.c',
'context.c',
'deferred.c',
'dns.c',
'event.c',
'fiber\\winfib.c',
'filesystem.c',
'helper.c',
'pipe.c',
'process\\builder.c',
'process\\env.c',
'process\\runner.c',
'socket.c',
'ssl\\api.c',
'ssl\\bio.c',
'ssl\\engine.c',
'stream.c',
'sync.c',
'task.c',
'tcp.c',
'thread.c',
'udp.c',
'watcher\\monitor.c',
'watcher\\poll.c',
'watcher\\signal.c',
'watcher\\timer.c',
'xp\\socket.c',
'xp\\tcp.c',
'xp\\udp.c'
];
for (var i = 0; i < async_src.length; i++) {
async_source_files.push('src\\' + async_src[i]);
}
// Build libuv as part of the extension.
CHECK_LIB("advapi32.lib", 'async');
CHECK_LIB("iphlpapi.lib", 'async');
CHECK_LIB("psapi.lib", 'async');
CHECK_LIB("shell32.lib", 'async');
CHECK_LIB("user32.lib", 'async');
CHECK_LIB("userenv.lib", 'async');
CHECK_LIB("ws2_32.lib", 'async');
ADD_FLAG('CFLAGS', '/I ' + configure_module_dirname + '\\thirdparty\\libuv\\include');
ADD_FLAG('CFLAGS', '/I ' + configure_module_dirname + '\\thirdparty\\libuv\\src');
var uv_src = [
'fs-poll.c',
'idna.c',
'inet.c',
'strscpy.c',
'threadpool.c',
'timer.c',
'uv-data-getter-setters.c',
'uv-common.c',
'version.c'
];
for (var i = 0; i < uv_src.length; i++) {
async_source_files.push('thirdparty\\libuv\\src\\' + uv_src[i]);
}
var uv_win = [
'async.c',
'core.c',
'detect-wakeup.c',
'dl.c',
'error.c',
'fs-event.c',
'fs.c',
'getaddrinfo.c',
'getnameinfo.c',
'handle.c',
'loop-watcher.c',
'pipe.c',
'poll.c',
'process-stdio.c',
'process.c',
'signal.c',
'stream.c',
'tcp.c',
'thread.c',
'tty.c',
'udp.c',
'util.c',
'winapi.c',
'winsock.c'
];
for (var i = 0; i < uv_win.length; i++) {
async_source_files.push('thirdparty\\libuv\\src\\win\\' + uv_win[i]);
}
var ret = SETUP_OPENSSL('async', PHP_ASYNC);
if (ret > 0) {
MESSAGE('Enabling SSL support for ext\\async: ' + ret);
AC_DEFINE("HAVE_ASYNC_SSL", 1);
}
EXTENSION('async', async_source_files.join(' '), PHP_ASYNC_SHARED, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
}