38 Star 259 Fork 47

GVPviest / php-ext-xlswriter

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
config.w32 3.38 KB
Copy Edit Web IDE Raw Blame History
viest authored 2020-06-08 12:01 . Merge pull request #249 from viest/bundle
// vim:ft=javascript
ARG_WITH("xlswriter", "xlswriter support", "no");
if (PHP_XLSWRITER != "no") {
if (
CHECK_HEADER_ADD_INCLUDE("minizip/zip.h", "CFLAGS_XLSWRITER", configure_module_dirname + "\\library\\libxlsxwriter\\third_party;" + PHP_EXTRA_INCLUDES) &&
CHECK_HEADER_ADD_INCLUDE("xlsxwriter.h", "CFLAGS_XLSWRITER", configure_module_dirname + "\\library\\libxlsxwriter\\include;" + PHP_EXTRA_INCLUDES) &&
CHECK_HEADER_ADD_INCLUDE("expat.h", "CFLAGS_XLSWRITER", configure_module_dirname + "\\library\\libexpat\\expat\\lib;" + PHP_EXTRA_INCLUDES) &&
CHECK_HEADER_ADD_INCLUDE("xlsxio_read.h", "CFLAGS_XLSWRITER", configure_module_dirname + "\\library\\libxlsxio\\include;" + PHP_EXTRA_INCLUDES) &&
CHECK_HEADER_ADD_INCLUDE("xlswriter.h", "CFLAGS_XLSWRITER", configure_module_dirname + "\\include;" + PHP_EXTRA_INCLUDES)
) {
EXTENSION("xlswriter", "xlswriter.c")
ADD_FLAG("CFLAGS_XLSWRITER", ' /D ENABLE_READER /D USE_SYSTEM_MINIZIP /D USE_MINIZIP /I "' + configure_module_dirname + '" ');
AC_DEFINE("HAVE_LXW_VERSION", 1, "lxw_version available in 0.7.7");
ADD_SOURCES(configure_module_dirname + "\\kernel", "\
exception.c \
resource.c \
common.c \
excel.c \
write.c \
format.c \
chart.c \
read.c \
csv.c \
help.c \
", "xlswriter");
ADD_SOURCES(configure_module_dirname + "\\library\\libxlsxwriter\\third_party\\minizip", "\
ioapi.c \
iowin32.c \
mztools.c \
unzip.c \
zip.c \
", "xlswriter", "libxlsxwriter");
ADD_SOURCES(configure_module_dirname + "\\library\\libxlsxwriter\\third_party\\tmpfileplus", "\
tmpfileplus.c \
", "xlswriter", "libxlsxwriter");
ADD_SOURCES(configure_module_dirname + "\\library\\libxlsxwriter\\third_party\\md5", "\
md5.c \
", "xlswriter", "libxlsxwriter");
ADD_SOURCES(configure_module_dirname + "\\library\\libxlsxwriter\\src", "\
app.c \
chart.c \
chartsheet.c \
comment.c \
content_types.c \
core.c \
custom.c \
drawing.c \
format.c \
hash_table.c \
packager.c \
relationships.c \
shared_strings.c \
styles.c \
theme.c \
utility.c \
vml.c \
workbook.c \
worksheet.c \
xmlwriter.c \
", "xlswriter", "libxlsxwriter");
ADD_SOURCES(configure_module_dirname + "\\library\\libexpat\\expat\\lib", "\
loadlibrary.c \
xmlparse.c \
xmlrole.c \
xmltok.c \
xmltok_impl.c \
xmltok_ns.c \
", "xlswriter", "libexpat");
ADD_SOURCES(configure_module_dirname + "\\library\\libxlsxio\\lib", "\
xlsxio_read.c \
xlsxio_read_sharedstrings.c \
", "xlswriter", "libxlsxio");
} else {
WARNING("xlswriter not enabled, xlsxwriter.lib or headers not found");
}
}

Comment ( 0 )

Sign in for post a comment

C
1
https://gitee.com/viest/php-ext-xlswriter.git
git@gitee.com:viest/php-ext-xlswriter.git
viest
php-ext-xlswriter
php-ext-xlswriter
master

Search