forked from php-ds/ext-ds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.w32
78 lines (69 loc) · 1.7 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
var DS_EXT_NAME="ds";
var DS_EXT_DIR="ext/ds/src";
var DS_EXT_API="php_ds.c";
var DS_EXT_FLAGS="/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /I" + configure_module_dirname;
function ds_src(dir, files) {
return ADD_SOURCES(
DS_EXT_DIR + dir,
files.join(" "),
DS_EXT_NAME
);
}
////////////////////////////////////
ARG_ENABLE("ds", "enable ds support", "no");
if (PHP_DS != "no") {
EXTENSION(DS_EXT_NAME, DS_EXT_API, PHP_DS_SHARED, DS_EXT_FLAGS);
ds_src("/",
[
"common.c"
]);
ds_src("/internal",
[
"php_deque.c",
"php_vector.c",
"php_htable.c",
"php_set.c",
"php_map.c",
"php_stack.c",
"php_pair.c",
"php_priority_queue.c",
"php_queue.c",
]);
ds_src("/iterators",
[
"php_vector_iterator.c",
"php_deque_iterator.c",
"php_set_iterator.c",
"php_map_iterator.c",
"php_stack_iterator.c",
"php_htable_iterator.c",
"php_priority_queue_iterator.c",
"php_queue_iterator.c",
]);
ds_src("/handlers",
[
"php_vector_handlers.c",
"php_deque_handlers.c",
"php_set_handlers.c",
"php_map_handlers.c",
"php_stack_handlers.c",
"php_pair_handlers.c",
"php_priority_queue_handlers.c",
"php_queue_handlers.c",
]);
ds_src("/classes",
[
"php_ce_hashable.c",
"php_ce_collection.c",
"php_ce_sequence.c",
"php_ce_vector.c",
"php_ce_deque.c",
"php_ce_set.c",
"php_ce_map.c",
"php_ce_stack.c",
"php_ce_pair.c",
"php_ce_priority_queue.c",
"php_ce_queue.c",
"php_ce_ds.c",
]);
}