@@ -4,16 +4,7 @@ ARG_ENABLE('async', 'Enable True Async', 'no');
44
55if ( PHP_ASYNC == "yes" ) {
66
7- if ( typeof PHP_ASYNC_API == "undefined" && typeof PHP_EXPERIMENTAL_ASYNC_API != "undefined" ) {
8- var PHP_ASYNC_API = PHP_EXPERIMENTAL_ASYNC_API ;
9- }
10-
11- if ( ! PHP_ASYNC_API || PHP_ASYNC_API != "yes" ) {
12- ERROR ( "PHP TRUE ASYNC API is required. Please configure PHP with --with-async-api." ) ;
13- }
14-
15- EXTENSION ( "async" , "async.c coroutine.c scope.c scheduler.c exceptions.c iterator.c async_API.c" ) ;
16- ADD_SOURCES ( "ext/async" , "zend_common.c context.c" ) ;
7+ EXTENSION ( "async" , "async.c coroutine.c scope.c scheduler.c exceptions.c iterator.c async_API.c zend_common.c context.c libuv_reactor.c" ) ;
178 ADD_SOURCES ( "ext/async/internal" , "allocator.c circular_buffer.c" ) ;
189
1910 ADD_FLAG ( "CFLAGS" , "/D PHP_ASYNC" ) ;
@@ -27,17 +18,14 @@ if (PHP_ASYNC == "yes") {
2718 PHP_INSTALL_HEADERS ( "ext/async" , "iterator.h" ) ;
2819 PHP_INSTALL_HEADERS ( "ext/async" , "async_API.h" ) ;
2920 PHP_INSTALL_HEADERS ( "ext/async" , "context.h" ) ;
21+ PHP_INSTALL_HEADERS ( "ext/async" , "libuv_reactor.h" ) ;
3022
3123 if ( CHECK_HEADER_ADD_INCLUDE ( "libuv/uv.h" , "CFLAGS_UV" , PHP_PHP_BUILD + "\\include" )
3224 && CHECK_LIB ( "libuv.lib" , "libuv" ) ) {
3325
3426 // Note: libuv >= 1.44.0 is required for UV_RUN_ONCE busy loop fix
3527 // For Windows builds, manually verify libuv version meets requirements
36-
37- PHP_INSTALL_HEADERS ( "ext/async" , "libuv_reactor.h" ) ;
3828
39- ADD_SOURCES ( "ext/async" , "libuv_reactor.c" ) ;
40- ADD_FLAG ( "CFLAGS" , "/D PHP_ASYNC_LIBUV" ) ;
4129 ADD_FLAG ( "LIBS" , "libuv.lib Dbghelp.lib Userenv.lib" ) ;
4230 } else {
4331 ERROR ( "Libuv components are not found. The search was performed in the directory: '" + PHP_PHP_BUILD +
0 commit comments