xref: /PHP-7.0/ext/opcache/config.w32 (revision 818e5ea5)
1ARG_ENABLE("opcache", "whether to enable Zend OPcache support", "yes");
2
3ARG_ENABLE("opcache-file", "whether to enable file based caching", "yes");
4
5var PHP_OPCACHE_PGO = false;
6
7if (PHP_OPCACHE != "no") {
8
9	if (PHP_OPCACHE_FILE == "yes") {
10		AC_DEFINE('HAVE_OPCACHE_FILE_CACHE', 1, 'Define to enable file based caching (experimental)');
11	}
12
13	EXTENSION('opcache', "\
14		ZendAccelerator.c \
15		zend_accelerator_blacklist.c \
16		zend_accelerator_debug.c \
17		zend_accelerator_hash.c \
18		zend_accelerator_module.c \
19		zend_accelerator_util_funcs.c \
20		zend_persist.c \
21		zend_persist_calc.c \
22		zend_file_cache.c \
23		zend_shared_alloc.c \
24		shared_alloc_win32.c", true, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
25
26	ADD_SOURCES(configure_module_dirname + "/Optimizer", "zend_optimizer.c pass1_5.c pass2.c pass3.c optimize_func_calls.c block_pass.c optimize_temp_vars_5.c nop_removal.c compact_literals.c", "opcache", "OptimizerObj");
27
28
29	ADD_FLAG('CFLAGS_OPCACHE', "/I " + configure_module_dirname);
30
31}
32