diff options
author | 2017-05-19 20:00:06 -0700 | |
---|---|---|
committer | 2017-05-19 20:00:06 -0700 | |
commit | af525b3a2691128323c97ab5fde56ba5ab7198f2 (patch) | |
tree | bfff33fb284875c1b07b3db902a61d0b519c4f62 /templates/config.w32.template | |
parent | 7569676ffe68597201c91ac2f17390ec1c3d7063 (diff) |
PHP: windows config.w32 file
Diffstat (limited to 'templates/config.w32.template')
-rw-r--r-- | templates/config.w32.template | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/config.w32.template b/templates/config.w32.template new file mode 100644 index 0000000000..c822eae097 --- /dev/null +++ b/templates/config.w32.template @@ -0,0 +1,31 @@ +%YAML 1.2 +--- | + // $Id$ + // vim:ft=javascript + + ARG_WITH("grpc", "grpc support", "no"); + + if (PHP_GRPC != "no") { + + grpc_source = + % for source in php_config_m4.src: + "${source.replace('/','\\\\')} " + + % endfor + % for lib in libs: + % if lib.name in php_config_m4.get('deps', []) and lib.name != 'ares': + % for source in lib.src: + "${source.replace('/','\\\\')} " + + % endfor + % endif + % endfor + ""; + + EXTENSION("grpc", grpc_source, null, + "/DOPENSSL_NO_ASM /D_GNU_SOURCE /DWIN32_LEAN_AND_MEAN "+ + "/D_HAS_EXCEPTIONS=0 /DNOMINMAX /DGRPC_ARES=0 /D_WIN32_WINNT=0x600 "+ + "/I"+configure_module_dirname+" "+ + "/I"+configure_module_dirname+"\\include "+ + "/I"+configure_module_dirname+"\\src\\php\\ext\\grpc "+ + "/I"+configure_module_dirname+"\\third_party\\boringssl\\include "+ + "/I"+configure_module_dirname+"\\third_party\\zlib"); + } |