forked from viest/php-ext-xlswriter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.w32
17 lines (13 loc) · 838 Bytes
/
config.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// vim:ft=javascript
ARG_WITH("xlswriter", "xlswriter support", "no");
if (PHP_XLSWRITER != "no") {
if (CHECK_LIB("xlsxwriter.lib;xlsxwriter_a.lib", "xlswriter", PHP_XLSWRITER) &&
CHECK_HEADER_ADD_INCLUDE("xlsxwriter.h", "CFLAGS_XLSWRITER", PHP_PHP_BUILD + "\\include;" + PHP_XLSWRITER) &&
CHECK_HEADER_ADD_INCLUDE("xlsxwriter/packager.h", "CFLAGS_XLSWRITER", PHP_PHP_BUILD + "\\include;" + PHP_XLSWRITER) &&
CHECK_HEADER_ADD_INCLUDE("xlsxwriter/format.h", "CFLAGS_XLSWRITER", PHP_PHP_BUILD + "\\include;" + PHP_XLSWRITER)) {
EXTENSION("xlswriter", "xls_writer.c")
ADD_SOURCES(configure_module_dirname + "\\kernel", "common.c resource.c exception.c excel.c write.c format.c", "xlswriter");
} else {
WARNING("xlswriter not enabled, xlsxwriter.lib or headers not found");
}
}