forked from jmcnamara/libxlsxwriter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libxlsxwriter.podspec
52 lines (47 loc) · 2.81 KB
/
libxlsxwriter.podspec
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Pod::Spec.new do |s|
s.name = "libxlsxwriter"
s.version = "1.1.7"
s.summary = "Libxlsxwriter: A C library for creating Excel XLSX files."
s.ios.deployment_target = "12.0"
s.osx.deployment_target = "10.13"
s.description = <<-DESC
Libxlsxwriter is a C library that can be used to write text, numbers, formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.
It supports features such as:
* 100% compatible Excel XLSX files.
* Full Excel formatting.
* Merged cells.
* Defined names.
* Autofilters.
* Charts.
* Data validation and drop down lists.
* Conditional formatting.
* Worksheet PNG/JPEG/GIF images.
* Cell comments.
* Support for adding Macros.
* Memory optimisation mode for writing large files.
* Source code available on [GitHub](https://github.com/jmcnamara/libxlsxwriter).
* FreeBSD license.
* ANSI C.
* Works with GCC, Clang, Xcode, MSVC 2015, ICC, TCC, MinGW, MingGW-w64/32.
* Works on Linux, FreeBSD, OpenBSD, OS X, iOS and Windows. Also works on MSYS/MSYS2 and Cygwin.
* Compiles for 32 and 64 bit.
* Compiles and works on big and little endian systems.
* The only dependency is on `zlib`.
DESC
s.homepage = "http://libxlsxwriter.github.io"
s.documentation_url = "http://libxlsxwriter.github.io"
s.license = "FreeBSD"
s.author = { "John McNamara" => "[email protected]" }
s.source = { :git => "https://github.com/jmcnamara/libxlsxwriter.git", :tag => "RELEASE_" + s.version.to_s }
s.source_files = "src/*.c", "third_party/**/{zip.c,ioapi.c,tmpfileplus.c,md5.c}", "include/**/*.h"
s.preserve_paths = [ 'third_party/**/*.h' ]
s.header_dir = "xlsxwriter"
s.header_mappings_dir = "include"
s.library = "z"
s.compiler_flags = "-DNOCRYPT=1", "-DNOUNCRYPT=1"
s.pod_target_xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '${PODS_ROOT}/libxlsxwriter/include' }
s.module_map = "cocoapods/libxlsxwriter.modulemap"
s.prepare_command = <<-CMD
cp cocoapods/libxlsxwriter-umbrella.h include/xlsxwriter/libxlsxwriter-umbrella.h
CMD
end