xref: /ext-fiber/config.w32 (revision 324c0e5e)
1ARG_ENABLE('fiber', 'fiber support', 'yes');
2
3if (PHP_FIBER != 'no') {
4	AC_DEFINE('HAVE_FIBER', 1, 'fiber support enabled');
5
6	DEFINE('SRC_DIR', configure_module_dirname);
7
8	var FIBER_ASSEMBLER = X64 ? PATH_PROG('ML64') : PATH_PROG('ML');
9	DEFINE('FIBER_ASSEMBLER', FIBER_ASSEMBLER);
10
11	var FIBER_ASM_ARCH = X64 ? 'x86_64' : 'i386';
12	DEFINE('FIBER_ASM_ARCH', FIBER_ASM_ARCH);
13
14	var FIBER_SOURCES = 'src\\php_fiber.c src\\fiber.c src\\fiber_asm.c src\\fiber_stack.c';
15	EXTENSION('fiber', FIBER_SOURCES, null, '/I. /Iinclude /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1  /DPHP_FIBER_EXPORTS=1');
16
17	ADD_FLAG('LDFLAGS_FIBER', '$(BUILD_DIR)\\src\\jump_' + FIBER_ASM_ARCH + '_ms_pe_masm.obj');
18	ADD_FLAG('LDFLAGS_FIBER', '$(BUILD_DIR)\\src\\make_' + FIBER_ASM_ARCH + '_ms_pe_masm.obj');
19
20	PHP_INSTALL_HEADERS("ext/fiber", "php_fiber.h fiber.h");
21
22	ADD_MAKEFILE_FRAGMENT();
23}
24