加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.w32 3.47 KB
一键复制 编辑 原始数据 按行查看 历史
viest 提交于 2021-09-06 01:33 . Feat: rich string
// 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", "\
chart.c \
common.c \
csv.c \
excel.c \
exception.c \
format.c \
help.c \
read.c \
resource.c \
rich_string.c \
validation.c \
write.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 \
metadata.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");
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化