mirror of
https://github.com/php/pecl-web_services-yar.git
synced 2026-03-23 23:02:13 +01:00
fixed config.w32
This commit is contained in:
22
config.w32
22
config.w32
@@ -1,13 +1,23 @@
|
||||
// $Id$
|
||||
// vim:ft=javascript
|
||||
|
||||
// If your extension references something external, use ARG_WITH
|
||||
// ARG_WITH("yar", "for yar support", "no");
|
||||
|
||||
// Otherwise, use ARG_ENABLE
|
||||
// ARG_ENABLE("yar", "enable yar support", "no");
|
||||
ARG_ENABLE("yar", "enable yar support", "no");
|
||||
|
||||
if (PHP_YAR != "no") {
|
||||
EXTENSION("yar", "yar.c");
|
||||
if (CHECK_LIB("libcurl_a.lib;libcurl.lib", "yar") &&
|
||||
CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_YAR")) {
|
||||
|
||||
ADD_EXTENSION_DEP("yar", "json");
|
||||
|
||||
ADD_FLAG("CFLAGS_YAR", "/I " + configure_module_dirname);
|
||||
ADD_FLAG("CFLAGS_YAR", "/D CURL_STATICLIB");
|
||||
|
||||
EXTENSION("yar", "yar.c yar_server.c yar_client.c yar_request.c yar_response.c yar_exception.c yar_packager.c yar_protocol.c yar_transport.c");
|
||||
ADD_SOURCES(configure_module_dirname + "\\packagers", "php.c json.c msgpack.c", "yar");
|
||||
ADD_SOURCES(configure_module_dirname + "\\transports", "curl.c", "yar");
|
||||
|
||||
} else {
|
||||
WARNING("yar not enabled, libs or headers not found");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user