forked from snowflakedb/pdo_snowflake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.w32
26 lines (21 loc) · 2.07 KB
/
config.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// $Id$
// vim:ft=javascript
// If your extension references something external, use arg_with
ARG_WITH("pdo_snowflake", "for pdo_snowflake support", "no");
if (PHP_PDO_SNOWFLAKE != "no") {
pdo_snowflake_src_files = " pdo_snowflake.c snowflake_driver.c snowflake_stmt.c snowflake_paramstore.c snowflake_arraylist.c snowflake_treemap.c snowflake_rbtree.c ";
if (CHECK_LIB('libsnowflakeclient_a.lib', 'pdo_snowflake') && CHECK_LIB('libcurl_a.lib', 'pdo_snowflake') &&
CHECK_LIB('libssl_a.lib', 'pdo_snowflake') && CHECK_LIB('libcrypto_a.lib', 'pdo_snowflake') && CHECK_LIB('zlib_a.lib', 'pdo_snowflake') && CHECK_LIB('libtelemetry_a.lib', 'pdo_snowflake') &&
CHECK_LIB('arrow.lib', 'pdo_snowflake') && CHECK_LIB('boost_filesystem-vc140-mt.lib', 'pdo_snowflake') && CHECK_LIB('boost_regex-vc140-mt.lib', 'pdo_snowflake') && CHECK_LIB('boost_system-vc140-mt.lib', 'pdo_snowflake') &&
CHECK_LIB('brotlicommon-static.lib', 'pdo_snowflake') && CHECK_LIB('brotlidec-static.lib', 'pdo_snowflake') && CHECK_LIB('brotlienc-static.lib', 'pdo_snowflake') && CHECK_LIB('bz2.lib', 'pdo_snowflake') &&
CHECK_LIB('double-conversion.lib', 'pdo_snowflake') && CHECK_LIB('event.lib', 'pdo_snowflake') && CHECK_LIB('event_core.lib', 'pdo_snowflake') && CHECK_LIB('event_extra.lib', 'pdo_snowflake') &&
CHECK_LIB('flatbuffers.lib', 'pdo_snowflake') && CHECK_LIB('gflags_static.lib', 'pdo_snowflake') && CHECK_LIB('glog.lib', 'pdo_snowflake') && CHECK_LIB('lz4.lib', 'pdo_snowflake') &&
CHECK_LIB('snappy.lib', 'pdo_snowflake') && CHECK_LIB('zstd.lib', 'pdo_snowflake') &&
CHECK_HEADER_ADD_INCLUDE('snowflake\\client.h', 'CFLAGS_PDO_SNOWFLAKE', configure_module_dirname + '\\libsnowflakeclient\\include')) {
STDOUT.WriteLine("INFO: Snowflake PDO Configuration");
ADD_EXTENSION_DEP('pdo_snowflake', 'pdo');
EXTENSION("pdo_snowflake", pdo_snowflake_src_files, PHP_PDO_SNOWFLAKE_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
} else {
WARNING("pdo_snowflake not enabled; libraries and headers not found");
}
}